-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc
104 lines (104 loc) · 2.55 KB
/
.eslintrc
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
97
98
99
100
101
102
103
104
{
"plugins": ["@typescript-eslint", "import"],
"extends": ["airbnb-typescript", "plugin:react/recommended"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["src/test"],
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"settings": {
"import/resolver": "node"
},
"rules": {
"indent": [
"error",
4,
{ "SwitchCase": 1 }
],
"linebreak-style": [
2,
"unix"
],
"quotes": [
2,
"single"
],
"semi": [
2,
"always"
],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
"no-console": "off",
"no-prototype-builtins": "off",
"object-curly-spacing": ["warn", "always"],
"no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
}
],
"@typescript-eslint/no-explicit-any": [
"off",
{
"ignoreRestArgs": true
}
],
"@typescript-eslint/indent": [
"error",
4,
{ "SwitchCase": 1 }
],
"react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }],
"max-len": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.js",
"**/*.test.ts",
"src/tests/**/*"
]
}
],
"import/prefer-default-export": "off",
"spaced-comment": ["error", "always", { "exceptions": ["*"] }],
"@typescript-eslint/keyword-spacing": ["error", { "overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false }
} }],
"arrow-parens": ["error", "as-needed"],
"import/extensions": [
"error",
{
"js": "never",
"ts": "never",
"json": "ignore"
}
],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-shadow": "off",
"react/prop-types": "off",
"react/no-direct-mutation-state": "off",
"react/jsx-key": "off",
"@typescript-eslint/space-before-blocks": "off",
"react/no-string-refs": "off",
"react/react-in-jsx-scope": "off"
}
}