feat: Add autoformat and lint for ts/tsx files (#26453)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Dariusz Niemczyk 2024-07-30 16:55:34 +02:00 committed by GitHub
parent c9aa0ceb00
commit 03a6b59eb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 266 additions and 5 deletions

7
.lintstagedrc Normal file
View file

@ -0,0 +1,7 @@
{
"*": "prettier --write",
"src/**/*.(ts|tsx)": ["eslint --fix"],
"scripts/**/*.(ts|tsx)": ["eslint --fix"],
"module_system/**/*.(ts|tsx)": ["eslint --fix --config .eslintrc-module_system.js module_system"],
"*.pcss": ["stylelint --fix"]
}