Update ESLint rules

This commit is contained in:
MathieuG-P
2024-02-03 16:03:37 +01:00
parent 5f94190b68
commit c540308c2c
+8 -5
View File
@@ -47,11 +47,13 @@ module.exports = {
"import/no-cycle": "off",
"prefer-promise-reject-errors": "off",
"react/jsx-no-target-blank": "off",
"@typescript-eslint/ban-types": ["error", {
types: {
Function: false,
}
}]
"import/extensions": "off",
"lines-between-class-members": "off",
"no-throw-literal": "warn",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error"
},
parserOptions: {
ecmaVersion: 2020,
@@ -73,4 +75,5 @@ module.exports = {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
},
"plugins": ["@typescript-eslint"]
};