-
Notifications
You must be signed in to change notification settings - Fork 194
/
Copy patheslint.config.mjs
43 lines (42 loc) · 1.17 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
// @ts-check
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
// import prettierConfig from "eslint-config-prettier";
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-unused-vars": ["error", { ignoreRestSiblings: true }],
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-object-type": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
semi: 2,
"no-console": "off",
"no-empty-pattern": "off",
"no-control-regex": "off",
"prefer-const": "off",
"react/prop-types": 0,
"react/no-unescaped-entities": "off",
"no-unused-vars": "off",
"max-lines": ["warn", { max: 500 }],
"react/display-name": 0,
"@typescript-eslint/ban-ts-comment": "off"
}
},
{
ignores: [
"src/libs/polyfills.js",
"tailwind.config.js",
"**/*.d.ts",
"scripts/**/*",
"node_modules/**/*",
"config/**/*",
"build/**/*",
"public/**/*"
]
},
// prettierConfig
);