-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
59 lines (59 loc) · 1.48 KB
/
.eslintrc.cjs
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
58
59
module.exports = {
plugins: ["@typescript-eslint", "prettier"],
extends: [
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"prettier",
"react-app",
],
settings: {
"import/extensions": [".js", ".ts", ".d.ts"],
"import/parsers": {
"@typescript-eslint/parser": [".js", ".ts", ".jsx", ".tsx"],
},
"import/resolver": {
node: {
extensions: [".js", ".ts", ".jsx", ".tsx"],
},
},
},
rules: {
"prettier/prettier": "error",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"no-unused-vars": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off",
"no-bitwise": "off",
"no-undef": "off",
camelcase: "off",
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"no-param-reassign": "off",
"no-shadow": "off", // disable to remove bug.
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-inferrable-types": "off",
},
ignorePatterns: [
"node_modules",
"dist",
"*.config.js",
"*.config.cjs",
"*.config.mjs",
"esbuild.*",
"setup.js",
],
};