From 400438da1afba425737030f56359c1bdac18e274 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 31 May 2024 14:12:09 +0000 Subject: [PATCH] fix configs --- .eslintrc.json | 27 ++++++++++++++++++++------- .prettierignore | 1 + tsconfig.json | 19 +++++++++++++++---- 3 files changed, 36 insertions(+), 11 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8a5a313..794922c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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": [ @@ -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." } ] @@ -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 } } ] -} +} \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index adcd65b..148ca07 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,3 +3,4 @@ **/*.yml **/*.code-workspace **/*.code-snippets +**/*.md diff --git a/tsconfig.json b/tsconfig.json index dedb7b8..c5262ac 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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, @@ -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" + } + ] +} \ No newline at end of file