-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc
71 lines (71 loc) · 1.63 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"airbnb-base"
],
"ignorePatterns": [
"webpack.*.js"
],
"globals": {
"window": true,
"document": true
},
"rules": {
"comma-dangle": "off",
"implicit-arrow-linebreak": "off",
"no-console": 1,
"no-underscore-dangle": "off",
"no-duplicate-imports": 2,
"indent": "off",
"function-paren-newline": "off",
"no-confusing-arrow": "off",
"no-extra-boolean-cast": "off",
"no-undef": "off",
"no-unused-vars": "off",
"operator-linebreak": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"object-curly-newline": "off",
"no-shadow": "off",
"prefer-const": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/comma-spacing": 2,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": "error",
// come back and make this an error
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/array-type": [
2,
{
"default": "array"
}
],
"eqeqeq": 2,
"quotes": [
2,
"single"
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
}