summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 50146fe7b..5e5424b09 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,18 +1,29 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
- plugins: ["@typescript-eslint"],
+ plugins: ["import", "@typescript-eslint",
+ "react",
+ "react-hooks",
+ ],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
- "preact",
+ "plugin:react/recommended",
+ "plugin:react-hooks/recommended",
],
+ settings: {
+ react: {
+ pragma: 'h',
+ version: '16.0'
+ }
+ },
rules: {
"no-constant-condition": ["error", { "checkLoops": false }],
"prefer-const": ["warn", { destructuring: "all" }],
"no-prototype-builtins": "off",
"@typescript-eslint/camelcase": "off",
+ "@typescript-eslint/no-namespace": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
@@ -25,5 +36,9 @@ module.exports = {
"error",
{ functions: false, classes: false },
],
+ "import/extensions": ["error", "ignorePackages"],
+ "react/no-unknown-property": 0,
+ "react/prop-types": 0,
+
},
};