-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
44 lines (44 loc) · 1.59 KB
/
.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
{
"extends": ["eslint:recommended", "airbnb-base"],
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"arrow-parens": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"class-methods-use-this": "warn",
"comma-dangle": "off",
"curly": ["error", "all"],
"eqeqeq": "error",
"global-strict": ["off", "always"],
"import/no-extraneous-dependencies": ["error", {"optionalDependencies": true}],
"indent": ["error", 2, { "SwitchCase": 1, "ArrayExpression": 1, "ObjectExpression": 1 }],
"key-spacing": ["error", { "align": "value" }],
"max-statements-per-line": "error",
"new-cap": ["error", {
"newIsCap": true,
"capIsNew": true,
"newIsCapExceptions": [],
"capIsNewExceptions": []
}],
"newline-before-return": "error",
"no-bitwise": ["error", { "int32Hint": true }],
"no-console": "off",
"no-multi-spaces": ["error", {"exceptions": { "ImportDeclaration": true }}],
"no-param-reassign": "warn",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"no-warning-comments": ["warn", { "terms": ["todo", "fixme", "urgent", "fix"], "location": "anywhere"}],
"nonblock-statement-body-position": ["warn", "below"],
"quotes": ["error", "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"space-before-function-paren": ["error", "never"],
"strict": ["off", "global"]
}
}