-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslintrc.json
81 lines (81 loc) · 2.75 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
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
76
77
78
79
80
81
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"ecmaFeatures": {"blockBindings": true},
"rules": {
"indent": ["warn", 4],
"no-unused-vars": ["error", { "argsIgnorePattern": "_" }],
"linebreak-style": ["error", "unix"],
"quotes": ["warn", "single"],
"strict": ["error", "safe"],
"no-dupe-keys": "error",
"one-var": ["error", {
"var": "always",
"let": "never",
"const": "never"
}],
"space-before-function-paren": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-infix-ops": "error",
"key-spacing": ["error", {
"afterColon": true,
"mode": "strict"
}],
"func-style": ["error", "expression"],
"eqeqeq": "error",
"dot-notation": "error",
"no-redeclare": "error",
"no-undef": "error",
"no-undefined": "error",
"radix": "error",
"vars-on-top": "error",
"no-trailing-spaces": "error",
"no-mixed-spaces-and-tabs": "error",
"one-var-declaration-per-line": ["error", "always"],
"newline-per-chained-call": ["error", {"ignoreChainWithDepth": 3}],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-debugger": "error",
"no-use-before-define": "error",
"array-callback-return": "error",
"curly": ["error", "all"],
"no-eval": "error",
"no-extend-native": "error",
"no-multi-spaces": "error",
"no-new-func": "error",
"no-unused-expressions": "error",
"no-useless-escape": "error",
"no-cond-assign": ["error", "always"],
"no-extra-boolean-cast": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"valid-typeof": "error",
"brace-style": ["error", "1tbs"],
"no-global-assign": "error",
"no-template-curly-in-string": "error",
"func-call-spacing": ["error", "never"],
"no-unsafe-negation": "off",
"linebreak-style": ["error", "unix"],
"new-parens": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-unneeded-ternary": "error",
"operator-assignment": ["error", "always"],
"space-in-parens": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"no-confusing-arrow": ["error", {"allowParens": true}],
"prefer-spread": "error",
"require-yield": "error"
},
"globals": {
"it": true,
"describe": true
}
}