@pumpn/eslint-config 10.4.2 → 11.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rules/style.cjs DELETED
@@ -1,225 +0,0 @@
1
- const maxDepth = 10;
2
- const maxNestedCallbacks = 10;
3
- const maxParams = 6;
4
-
5
- module.exports = {
6
- extends: [
7
- "./style/array.cjs",
8
- "./style/function.cjs",
9
- "./style/object.cjs",
10
- "./style/whitespace.cjs"
11
- ],
12
- rules: {
13
- "block-spacing": ["error", "always"],
14
- "brace-style": ["error", "stroustrup"],
15
- camelcase: [
16
- "error",
17
- {
18
- ignoreDestructuring: false,
19
- properties: "never"
20
- }
21
- ],
22
- "comma-dangle": ["error", "never"],
23
- "comma-spacing": [
24
- "error",
25
- {
26
- after: true,
27
- before: false
28
- }
29
- ],
30
- "comma-style": [
31
- "error",
32
- "last",
33
- {
34
- exceptions: {
35
- ArrayExpression: false,
36
- ArrayPattern: false,
37
- ArrowFunctionExpression: false,
38
- CallExpression: false,
39
- FunctionDeclaration: false,
40
- FunctionExpression: false,
41
- ImportDeclaration: false,
42
- NewExpression: false,
43
- ObjectExpression: false,
44
- ObjectPattern: false,
45
- VariableDeclaration: false
46
- }
47
- }
48
- ],
49
- "consistent-this": "off",
50
- "eol-last": ["error", "always"],
51
- "id-blacklist": "off",
52
- "id-length": [
53
- "error",
54
- {
55
- exceptions: [
56
- "x",
57
- "y",
58
- "z",
59
- "_"
60
- ],
61
- max: 35,
62
- min: 2
63
- }
64
- ],
65
- "id-match": "off",
66
- "jsx-quotes": ["error", "prefer-double"],
67
- "max-depth": ["error", maxDepth],
68
- "max-len": [
69
- "warn",
70
- {
71
- code: 100,
72
- comments: 100,
73
- ignoreRegExpLiterals: true,
74
- ignoreStrings: true,
75
- ignoreTemplateLiterals: true,
76
- ignoreUrls: true,
77
- tabWidth: 4
78
- }
79
- ],
80
- "max-lines": [
81
- "error",
82
- {
83
- max: 300,
84
- skipBlankLines: true,
85
- skipComments: true
86
- }
87
- ],
88
- "max-nested-callbacks": ["error", maxNestedCallbacks],
89
- "max-params": ["error", maxParams],
90
- "max-statements": [
91
- "error",
92
- {
93
- max: 15
94
- }
95
- ],
96
- "max-statements-per-line": [
97
- "error",
98
- {
99
- max: 1
100
- }
101
- ],
102
- "multiline-ternary": ["error", "always-multiline"],
103
- "new-cap": [
104
- "error",
105
- {
106
- capIsNew: false,
107
- capIsNewExceptions: [
108
- "Immutable.Map",
109
- "Immutable.Set",
110
- "Immutable.List"
111
- ],
112
- newIsCap: true,
113
- newIsCapExceptions: []
114
- }
115
- ],
116
- "new-parens": "error",
117
- "no-bitwise": "off",
118
- "no-continue": "error",
119
- "no-lonely-if": "error",
120
- "no-mixed-operators": [
121
- "error",
122
- {
123
- allowSamePrecedence: false,
124
- groups: [
125
- ["%", "**"],
126
- ["%", "+"],
127
- ["%", "-"],
128
- ["%", "*"],
129
- ["%", "/"],
130
- ["/", "*"],
131
- [
132
- "&",
133
- "|",
134
- "<<",
135
- ">>",
136
- ">>>"
137
- ],
138
- [
139
- "==",
140
- "!=",
141
- "===",
142
- "!=="
143
- ],
144
- ["&&", "||"]
145
- ]
146
- }
147
- ],
148
- "no-mixed-spaces-and-tabs": "error",
149
- "no-multi-assign": "error",
150
- "no-negated-condition": "error",
151
- "no-nested-ternary": "error",
152
- "no-plusplus": [
153
- "error",
154
- {
155
- allowForLoopAfterthoughts: true
156
- }
157
- ],
158
- "no-restricted-syntax": [
159
- "error",
160
- {
161
- message: "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
162
- selector: "WithStatement"
163
- }
164
- ],
165
- "no-ternary": "off",
166
- "no-trailing-spaces": [
167
- "error",
168
- {
169
- ignoreComments: false,
170
- skipBlankLines: false
171
- }
172
- ],
173
- "no-underscore-dangle": [
174
- "error",
175
- {
176
- allow: [],
177
- allowAfterSuper: false,
178
- allowAfterThis: false,
179
- enforceInMethodNames: true
180
- }
181
- ],
182
- "no-unneeded-ternary": [
183
- "error",
184
- {
185
- defaultAssignment: false
186
- }
187
- ],
188
- "nonblock-statement-body-position": [
189
- "error",
190
- "beside",
191
- {
192
- overrides: {}
193
- }
194
- ],
195
- "one-var": ["error", "never"],
196
- "one-var-declaration-per-line": ["error", "always"],
197
- "operator-assignment": ["error", "always"],
198
- "prefer-exponentiation-operator": "error",
199
- quotes: ["error", "double"],
200
- "require-jsdoc": "off",
201
- semi: ["error", "always"],
202
- "semi-spacing": [
203
- "error",
204
- {
205
- after: true,
206
- before: false
207
- }
208
- ],
209
- "semi-style": ["error", "last"],
210
- "sort-vars": "error",
211
- "space-before-blocks": "error",
212
- "space-in-parens": ["error", "never"],
213
- "space-infix-ops": "error",
214
- "space-unary-ops": [
215
- "error",
216
- {
217
- nonwords: false,
218
- overrides: {},
219
- words: true
220
- }
221
- ],
222
- "unicode-bom": ["error", "never"],
223
- "wrap-regex": "error"
224
- }
225
- };
@@ -1,35 +0,0 @@
1
- const confusingBrowserGlobals = require("confusing-browser-globals");
2
-
3
- module.exports = {
4
- rules: {
5
- "init-declarations": ["error", "always"],
6
- "no-delete-var": "error",
7
- "no-label-var": "error",
8
- "no-restricted-globals": [
9
- "error",
10
- "isFinite",
11
- "isNaN"
12
- ].concat(confusingBrowserGlobals),
13
- "no-shadow": "error",
14
- "no-shadow-restricted-names": "error",
15
- "no-undef": "error",
16
- "no-undef-init": "error",
17
- "no-undefined": "off",
18
- "no-unused-vars": [
19
- "error",
20
- {
21
- args: "after-used",
22
- ignoreRestSiblings: true,
23
- vars: "all"
24
- }
25
- ],
26
- "no-use-before-define": [
27
- "error",
28
- {
29
- classes: true,
30
- functions: true,
31
- variables: true
32
- }
33
- ]
34
- }
35
- };