forked from jimp-dev/jimp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
138 lines (137 loc) · 4.79 KB
/
.eslintrc.js
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
module.exports = {
"extends": "standard",
"globals": {
"Float32Array": true,
"Float64Array": true,
"Uint8Array": true
},
"env": {
"mocha": true
},
"rules": {
// Overload "standard" rules
"arrow-spacing": ["error", { "before": false, "after": true }],
"curly": "off",
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-labels": ["error", { "allowLoop": true, "allowSwitch": true }],
"no-multi-spaces": ["off", {
"exceptions": { "BinaryExpression": true, "VariableDeclarator": true }
}],
"no-new": "warn",
"padded-blocks": "off",
"quotes": "off",
"semi": "off",
"space-infix-ops": "off",
"standard/array-bracket-even-spacing": "off", // allow matrix alignment
"comma-spacing": "warn", // allow matrix alignment
"one-var": "off",
"spaced-comment": ["error", "always", { "exceptions": ["*"] }],
// extends unset "standard" rules
"array-bracket-spacing": "off", // allow matrix alignment
"array-callback-return": "error",
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": "error",
"block-scoped-var": "off",
"callback-return": "off",
"capitalized-comments": "off",
"class-methods-use-this": "error",
"complexity": "off",
"computed-property-spacing": "off",
"consistent-return": "off",
"consistent-this": "off",
"default-case": "off",
"dot-notation": "error",
"func-name-matching": "error",
//"func-names": ["error", "as-needed"], //TODO: enable on the next refactoring
"func-style": "off",
"global-require": "off",
"guard-for-in": "error",
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
"init-declarations": "off",
"jsx-quotes": "error",
"linebreak-style": ["warn", "unix"],
"line-comment-position": "off",
"lines-around-directive": "error",
"max-depth": ["error", 6],
"max-len": "off",
"max-lines": "off",
"max-nested-callbacks": "error",
"max-params": "off",
"max-statements": "off",
"max-statements-per-line": "error",
"multiline-ternary": "off",
"newline-after-var": "off",
"newline-before-return": "off",
"newline-per-chained-call": "off",
"no-alert": "error",
"no-await-in-loop": "error",
"no-bitwise": "off",
"no-catch-shadow": "error",
"no-confusing-arrow": "error",
"no-continue": "error",
"no-div-regex": "error",
"no-else-return": "off",
"no-empty-function": "off",
"no-eq-null": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "off",
"no-mixed-requires": "error",
"no-multi-assign": "off",
"no-native-reassign": "error",
"no-negated-condition": "error",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-process-env": "off",
"no-process-exit": "error",
"no-prototype-builtins": "error",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-properties": "error",
"no-restricted-syntax": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-shadow": "off",
"no-spaced-func": "off",
"no-sync": "off",
"no-ternary": "off",
"no-undefined": "error",
"no-underscore-dangle": "off",
"no-useless-concat": "error",
"no-var": "off",
"no-void": "error",
"no-warning-comments": "warn",
"object-curly-newline": "error",
"object-curly-spacing": "off",
"object-shorthand": "off",
"one-var-declaration-per-line": "off",
"operator-assignment": "off",
"prefer-arrow-callback": "off",
"prefer-const": "off",
"prefer-destructuring": ["error", {"array": false, "object": false}],
"prefer-numeric-literals": "error",
"prefer-reflect": "off",
"prefer-rest-params": "off",
"prefer-spread": "error",
"prefer-template": "off",
"quote-props": "off",
"radix": ["error", "always"],
"require-await": "error",
"require-jsdoc": "off",
"sort-imports": "error",
"sort-keys": "off",
"sort-vars": "off",
"strict": "error",
"valid-jsdoc": "off",
"vars-on-top": "off",
"wrap-regex": "error"
}
};