Skip to content

Commit

Permalink
переделал конфигурацию eslint в json
Browse files Browse the repository at this point in the history
  • Loading branch information
semant1cs committed Dec 13, 2023
1 parent 4360b1b commit 6a3eb0d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
18 changes: 0 additions & 18 deletions frontend/.eslintrc.cjs

This file was deleted.

28 changes: 28 additions & 0 deletions frontend/.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"root": true,
"env": {
"browser": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"ignorePatterns": [
"dist",
".eslintrc.cjs"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"react-refresh"
],
"rules": {
"react-refresh/only-export-components": [
"warn",
{
"allowConstantExport": true
}
]
}
}
3 changes: 2 additions & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true
},
"include": [
"src"
Expand Down

0 comments on commit 6a3eb0d

Please sign in to comment.