-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.eslintrc.json
48 lines (48 loc) · 1.51 KB
/
common.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
{
"rules": {
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "ignore"
}],
"quotes": ["error", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"max-len": ["error", 120],
"linebreak-style": "off",
"brace-style": ["error", "1tbs"],
"camelcase": "warn",
"no-var": "error",
"jsdoc/require-jsdoc": "off",
"block-spacing": ["warn", "always"],
"space-before-function-paren": [ "warn", "never"],
"eol-last": ["warn", "always"],
"no-multi-spaces": "warn",
"spaced-comment": ["warn" ,"always"],
"func-call-spacing": ["warn", "never"],
"keyword-spacing": "warn",
"key-spacing": "warn",
"quote-props": "warn",
"comma-spacing": "warn",
"no-unused-vars": "warn",
"no-invalid-this": "off",
"indent": ["warn", 2],
"semi": ["warn", "never"],
"object-curly-spacing": ["warn", "always"],
"space-infix-ops": "warn",
"max-depth": ["warn", { "max": 8 }],
"max-nested-callbacks": ["warn", { "max": 3 }],
"object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": false }],
"newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 3 }],
"object-curly-newline": ["warn", {
"ObjectExpression": { "minProperties": 1, "consistent": true },
"ObjectPattern": { "minProperties": 1, "consistent": true },
"ImportDeclaration": "never"
}
]
}
}