-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
96 lines (96 loc) · 2.79 KB
/
.eslintrc.json
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true,
"arrowFunctions": true
}
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx", ".js", ".jsx"],
"paths": ["./src", "./scripts"]
},
"alias": {
"map": [
["~", "./src"],
["@", "./src"]
],
"extensions": [".ts", ".tsx", ".js", ".jsx"]
}
}
},
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"object-curly-spacing": ["warn", "always"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"react/jsx-key": "error",
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
"react/jsx-boolean-value": "off",
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "warn",
"react/require-default-props": "off",
"no-extra-boolean-cast": "warn",
"no-constant-condition": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"react/jsx-closing-bracket-location": "off",
"@typescript-eslint/ban-types": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/react-in-jsx-scope": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/naming-convention": "off",
"react/jsx-curly-newline": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-param-reassign": "off",
"prefer-promise-reject-errors": "off",
"consistent-return": "off",
"no-await-in-loop": "off",
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "@/**",
"group": "parent",
"position": "before"
}
]
}
],
"@typescript-eslint/no-explicit-any": "off" // Temporary until all types fixed,
}
}