This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc.json
102 lines (102 loc) · 3.84 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"jquery": true
},
"globals": {
"mediaWiki": false,
"OO": false,
"require": false,
"util": false
},
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"block-spacing": "error",
"brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
"camelcase": [ "error", { "properties": "always" } ],
"comma-dangle": [ "error", "never" ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"comma-style": [ "error", "last" ],
"computed-property-spacing": [ "error", "always" ],
"curly": [ "error", "all" ],
"dot-location": [ "error", "property" ],
"dot-notation": [ "error" ],
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
"keyword-spacing": "error",
"linebreak-style": [ "error", "unix" ],
"new-cap": [ "error", { "newIsCap": true, "capIsNew": false, "properties": true } ],
"new-parens": "error",
"no-alert": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-catch-shadow": "error",
"no-constant-condition": [ "error", { "checkLoops": false } ],
"no-empty": [ "error", { "allowEmptyCatch": true } ],
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": [ "error", { "string": true, "boolean": false, "number": false } ],
"no-implicit-globals": "off",
"no-implied-eval": "error",
"no-label-var": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": [ "error", { "max": 1, "maxBOF": 0, "maxEOF": 0 } ],
"no-native-reassign": "error",
"no-negated-in-lhs": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": [ "error", { "defaultAssignment": false } ],
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-void": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"object-curly-spacing": [ "error", "always" ],
"one-var": [ "error", "always" ],
"operator-linebreak": [ "error", "after" ],
"prefer-numeric-literals": "error",
"quote-props": [ "error", "as-needed", { "keywords": true } ],
"quotes": [ "error", "single" ],
"semi": [ "error", "always" ],
"semi-spacing": [ "error", { "before": false, "after": true } ],
"space-before-blocks": [ "error", "always" ],
"space-before-function-paren": [ "error", { "anonymous": "always", "named": "never" } ],
"space-in-parens": [ "error", "always", { "exceptions": [ "empty" ] } ],
"space-infix-ops": "error",
"space-unary-ops": [ "error", { "words": true, "nonwords": false } ],
"spaced-comment": [ "error", "always", { "exceptions": [ "*", "!" ] } ],
"unicode-bom": [ "error" ],
"valid-jsdoc": [ "error", { "requireParamDescription": false, "requireReturnDescription": false, "requireReturn": false } ],
"vars-on-top": "error",
"wrap-iife": "error",
"yoda": [ "error", "never" ]
}
}