-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
75 lines (75 loc) · 1.71 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"extends": [
"prettier/@typescript-eslint",
"airbnb-base",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"import/prefer-default-export": 0,
"import/extensions": 0,
"no-useless-constructor": 0,
"max-classes-per-file": 0,
"lines-between-class-members": 0,
"no-confusing-arrow": "off",
"function-paren-newline": "off",
"comma-dangle": [
"error",
{
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}
],
"spaced-comment": [2, "always"],
"indent": ["error", 2],
"quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"camelcase": "off",
"guard-for-in": "off",
"linebreak-style": "off",
"max-len": [
"error",
{
"code": 120
}
],
"implicit-arrow-linebreak": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-empty-interface": "off",
"class-methods-use-this": "off",
"no-throw-literal": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["warn"]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts"]
}
}
}
}