Skip to content

Commit

Permalink
fix configs
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed May 31, 2024
1 parent 416a3f3 commit 400438d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
27 changes: 20 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@
"project": true,
"tsconfigRootDir": "./"
},
"plugins": ["@typescript-eslint"],
"plugins": [
"@typescript-eslint"
],
"root": true,
"ignorePatterns": ["dist"],
"ignorePatterns": [
"dist"
],
"rules": {
"@typescript-eslint/consistent-type-imports": [
2,
{
"fixStyle": "separate-type-imports"
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/no-restricted-imports": [
Expand All @@ -26,7 +30,11 @@
"paths": [
{
"name": "react-redux",
"importNames": ["useSelector", "useStore", "useDispatch"],
"importNames": [
"useSelector",
"useStore",
"useDispatch"
],
"message": "Please use pre-typed versions from `src/app/hooks.ts` instead."
}
]
Expand All @@ -35,13 +43,18 @@
},
"overrides": [
{
"files": ["*.{c,m,}{t,j}s", "*.{t,j}sx"]
"files": [
"*.{c,m,}{t,j}s",
"*.{t,j}sx"
]
},
{
"files": ["*{test,spec}.{t,j}s?(x)"],
"files": [
"*{test,spec}.{t,j}s?(x)"
],
"env": {
"jest": true
}
}
]
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
**/*.yml
**/*.code-workspace
**/*.code-snippets
**/*.md
19 changes: 15 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
Expand All @@ -14,7 +18,14 @@
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["vitest/globals"]
"types": [
"vitest/globals"
]
},
"references": [{ "path": "./tsconfig.node.json" }]
}
"include": [],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}

0 comments on commit 400438d

Please sign in to comment.