More eslint fixes

This commit is contained in:
Gregory Schier
2023-04-01 15:48:37 -07:00
parent 49856bb6f7
commit 03b35beae4
8 changed files with 34 additions and 20 deletions

View File

@@ -8,6 +8,10 @@ module.exports = {
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier"
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
},
ignorePatterns: ["src-tauri/**/*"],
settings: {
react: {
@@ -16,13 +20,14 @@ module.exports = {
"import/resolver": {
node: {
paths: ["src-web"],
extensions: [".js", ".jsx", ".ts", ".tsx"]
extensions: [".ts", ".tsx"]
}
}
},
rules: {
"jsx-a11y/no-autofocus": "warn",
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"@typescript-eslint/consistent-type-imports": ["error", {
prefer: "type-imports",
disallowTypeAnnotations: true,