aboutsummaryrefslogtreecommitdiffstats
path: root/tooling/eslint
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-13 22:37:41 +0000
committerMohamed Bassem <me@mbassem.com>2024-03-14 16:40:45 +0000
commita03f1dc2ac25579df30e8cb59d2703110c3e564d (patch)
tree59315e73cd83dc391660071c70752cf23989b3da /tooling/eslint
parent04572a8e5081b1e4871e273cde9dbaaa44c52fe0 (diff)
downloadkarakeep-a03f1dc2ac25579df30e8cb59d2703110c3e564d.tar.zst
lint: Lint and format the entire repo with the new configs
Diffstat (limited to 'tooling/eslint')
-rw-r--r--tooling/eslint/base.js2
-rw-r--r--tooling/eslint/package.json2
-rw-r--r--tooling/eslint/react.js3
3 files changed, 6 insertions, 1 deletions
diff --git a/tooling/eslint/base.js b/tooling/eslint/base.js
index d1f6296c..2bc62548 100644
--- a/tooling/eslint/base.js
+++ b/tooling/eslint/base.js
@@ -28,6 +28,8 @@ const config = {
{ checksVoidReturn: { attributes: false } },
],
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
+ "@typescript-eslint/no-floating-promises": "off",
+ "@typescript-eslint/unbound-method": "off",
},
ignorePatterns: [
"**/*.config.js",
diff --git a/tooling/eslint/package.json b/tooling/eslint/package.json
index 5329f6d2..6b156d5d 100644
--- a/tooling/eslint/package.json
+++ b/tooling/eslint/package.json
@@ -39,4 +39,4 @@
]
},
"prettier": "@hoarder/prettier-config"
-} \ No newline at end of file
+}
diff --git a/tooling/eslint/react.js b/tooling/eslint/react.js
index 618e1816..38b735b9 100644
--- a/tooling/eslint/react.js
+++ b/tooling/eslint/react.js
@@ -7,6 +7,9 @@ const config = {
],
rules: {
"react/prop-types": "off",
+ "jsx-a11y/no-autofocus": "off",
+ "jsx-a11y/label-has-associated-control": "off",
+ "react-hooks/exhaustive-deps": "off",
},
globals: {
React: "writable",