-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
64 lines (64 loc) · 2.31 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
{
"extends": ["airbnb"],
"env": {
"browser": true
},
"root": true,
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"no-restricted-imports": 0,
"no-param-reassign": ["error", { "ignorePropertyModificationsForRegex": ["^acc$"] }],
"max-len": ["error", { "code": 130, "ignoreStrings": true, "ignoreRegExpLiterals": true }],
"prettier/prettier": ["off"],
"quotes": ["error", "single"],
"import/extensions": ["off"],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": true, "optionalDependencies": false, "peerDependencies": false }
],
"import/prefer-default-export": ["off"],
"import/no-unresolved": ["off"],
"no-duplicate-imports": [
"error",
{ "includeExports": true }
],
// no-unused-vars doesn't work with typescript
"no-unused-vars": "off",
// We use a lot of snake case variables in code interacting with API
"camelcase": ["off"],
// It's more convinient to declare big helpers functions below the main method
"no-use-before-define": ["off"],
"no-dupe-args": ["error"],
"no-new-object": ["error"],
"no-inline-comments": ["error"],
// "no-magic-numbers": ["error"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "import", "next": "*" },
{ "blankLine": "any", "prev": "import", "next": "import" },
{ "blankLine": "always", "prev": "function", "next": "*" },
{ "blankLine": "always", "prev": "if", "next": "*" },
{ "blankLine": "always", "prev": "for", "next": "*" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] }
],
// "no-inline-styles/no-inline-styles": [2],
// ENABLE LATER
"max-classes-per-file": ["off"],
"no-shadow": ["off"],
// enable it later, it happens because null coalesion operator
"no-unused-expressions": ["off"],
"class-methods-use-this": ["off"],
"no-continue": ["off"]
}
}