aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/.eslintrc.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/.eslintrc.cjs')
-rw-r--r--FrontEnd/.eslintrc.cjs27
1 files changed, 6 insertions, 21 deletions
diff --git a/FrontEnd/.eslintrc.cjs b/FrontEnd/.eslintrc.cjs
index 62490975..a9cd8e03 100644
--- a/FrontEnd/.eslintrc.cjs
+++ b/FrontEnd/.eslintrc.cjs
@@ -1,39 +1,24 @@
module.exports = {
root: true,
- env: {
- browser: true,
- es2022: true,
- },
extends: [
"eslint:recommended",
"plugin:react/recommended",
+ "plugin:react-hooks/recommended",
+ "plugin:react/jsx-runtime",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
- "plugin:prettier/recommended",
- "plugin:react-hooks/recommended",
+ "prettier",
],
+ plugins: ["@typescript-eslint", "prettier", "react", "react-hooks"],
parser: "@typescript-eslint/parser",
parserOptions: {
- tsconfigRootDir: __dirname,
- project: ["./tsconfig.json"],
+ project: true,
+ tsconfigRootDir: __dirname
},
- plugins: ["react", "@typescript-eslint", "react-hooks"],
settings: {
react: {
version: "detect",
},
},
- rules: {
- "react/prop-types": "off",
- "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
- "@typescript-eslint/explicit-function-return-type": [
- "warn",
- {
- allowExpressions: true,
- allowTypedFunctionExpressions: true,
- allowHigherOrderFunctions: true,
- },
- ],
- },
};