-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
53 lines (53 loc) · 1.46 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
{
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"curly": "error",
"import/no-unresolved": 0,
"import/no-default-export": 1,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-use-before-define": ["error", { "classes": false, "functions": false }],
"no-console": "warn",
"@typescript-eslint/no-shadow": ["error"],
"semi": ["error", "always"],
"react/jsx-max-props-per-line": ["warn", { "maximum": 2, "when": "multiline" }],
"react/jsx-first-prop-new-line": ["error", "multiline"],
"@typescript-eslint/no-unused-expressions": "error",
"arrow-parens": "error",
"react/react-in-jsx-scope": 0,
"import/named": 0,
"import/no-named-as-default-member": 0,
"react/prop-types": 0,
"no-mixed-spaces-and-tabs": 0,
"react/display-name": 0,
"@typescript-eslint/no-explicit-any": 0
}
}