-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
eslint.config.mjs
57 lines (55 loc) · 1.5 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import pluginJs from "@eslint/js";
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
import reactRuntimeconfig from "eslint-plugin-react/configs/jsx-runtime.js";
import reactHooks from "eslint-plugin-react-hooks";
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
{
ignores: [
"**/node_modules/",
"**/.cache/",
"**/browser/",
"**/build/",
"**/dist/",
"**/api/",
"**/.react-router/",
// "test-app/remix-validated-form",
// "sample-app/build",
// "sample-app/remix-validated-form",
],
},
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
plugins: { "react-hooks": reactHooks },
rules: {
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
},
},
pluginReactConfig,
reactRuntimeconfig,
{
rules: {
"@typescript-eslint/no-explicit-any": "off",
"no-useless-escape": "off",
"no-undef": "off",
"@typescript-eslint/no-unused-vars": [
"off",
{
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-var-requires": "off",
"react/no-unescaped-entities": "off",
// Turn this on eventually
"@typescript-eslint/ban-ts-comment": "off",
"prefer-const": "off",
"react/no-deprecated": "off",
"react/display-name": "off",
"react/prop-types": "off",
},
},
];