linted 21.0.0-rc.11 → 21.0.0-rc.12

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.
@@ -1,6 +1,351 @@
1
- declare const _default: (readonly ["enable-extend", {
1
+ declare const _default: (readonly ["enable", {
2
+ readonly "array-callback-return": readonly ["error", {
3
+ readonly allowImplicit: false;
4
+ readonly checkForEach: true;
5
+ readonly allowVoid: true;
6
+ }];
7
+ readonly "constructor-super": "error";
8
+ readonly "for-direction": "error";
9
+ readonly "getter-return": readonly ["error", {
10
+ readonly allowImplicit: false;
11
+ }];
12
+ readonly "no-async-promise-executor": "error";
13
+ readonly "no-await-in-loop": "error";
14
+ readonly "no-class-assign": "error";
15
+ readonly "no-compare-neg-zero": "error";
16
+ readonly "no-cond-assign": readonly ["error", "always"];
17
+ readonly "no-const-assign": "error";
18
+ readonly "no-constant-binary-expression": "error";
19
+ readonly "no-constant-condition": readonly ["error", {
20
+ readonly checkLoops: true;
21
+ }];
22
+ readonly "no-constructor-return": "error";
23
+ readonly "no-control-regex": "error";
24
+ readonly "no-debugger": "error";
25
+ readonly "no-dupe-args": "error";
26
+ readonly "no-dupe-class-members": "error";
27
+ readonly "no-dupe-else-if": "error";
28
+ readonly "no-dupe-keys": "error";
29
+ readonly "no-duplicate-case": "error";
30
+ readonly "no-duplicate-imports": "off";
31
+ readonly "no-empty-character-class": "error";
32
+ readonly "no-empty-pattern": readonly ["error", {
33
+ readonly allowObjectPatternsAsParameters: false;
34
+ }];
35
+ readonly "no-ex-assign": "error";
36
+ readonly "no-fallthrough": readonly ["error", {
37
+ readonly allowEmptyCase: true;
38
+ readonly reportUnusedFallthroughComment: true;
39
+ }];
40
+ readonly "no-func-assign": "error";
41
+ readonly "no-import-assign": "error";
42
+ readonly "no-inner-declarations": readonly ["error", "both", {
43
+ readonly blockScopedFunctions: "allow";
44
+ }];
45
+ readonly "no-invalid-regexp": readonly ["error", {
46
+ readonly allowConstructorFlags: readonly [];
47
+ }];
48
+ readonly "no-irregular-whitespace": readonly ["error", {
49
+ readonly skipStrings: true;
50
+ readonly skipComments: true;
51
+ readonly skipRegExps: true;
52
+ readonly skipTemplates: true;
53
+ readonly skipJSXText: true;
54
+ }];
55
+ readonly "no-loss-of-precision": "error";
56
+ readonly "no-misleading-character-class": "error";
57
+ readonly "no-new-native-nonconstructor": "error";
58
+ readonly "no-obj-calls": "error";
59
+ readonly "no-promise-executor-return": readonly ["error", {
60
+ readonly allowVoid: true;
61
+ }];
62
+ readonly "no-prototype-builtins": "error";
63
+ readonly "no-self-assign": readonly ["error", {
64
+ readonly props: true;
65
+ }];
66
+ readonly "no-self-compare": "error";
67
+ readonly "no-setter-return": "error";
68
+ readonly "no-sparse-arrays": "error";
69
+ readonly "no-template-curly-in-string": "error";
70
+ readonly "no-this-before-super": "error";
71
+ readonly "no-undef": "error";
72
+ readonly "no-unexpected-multiline": "error";
73
+ readonly "no-unmodified-loop-condition": "error";
74
+ readonly "no-unreachable": "error";
75
+ readonly "no-unreachable-loop": readonly ["error", {
76
+ readonly ignore: readonly [];
77
+ }];
78
+ readonly "no-unsafe-finally": "error";
79
+ readonly "no-unsafe-negation": readonly ["error", {
80
+ readonly enforceForOrderingRelations: true;
81
+ }];
82
+ readonly "no-unsafe-optional-chaining": readonly ["error", {
83
+ readonly disallowArithmeticOperators: true;
84
+ }];
85
+ readonly "no-unused-private-class-members": "error";
86
+ readonly "no-unused-vars": readonly ["error", {
87
+ readonly vars: "all";
88
+ readonly args: "all";
89
+ readonly caughtErrors: "all";
90
+ readonly ignoreRestSiblings: false;
91
+ readonly ignoreClassWithStaticInitBlock: false;
92
+ readonly reportUsedIgnorePattern: true;
93
+ }];
94
+ readonly "no-use-before-define": readonly ["error", {
95
+ readonly functions: true;
96
+ readonly classes: true;
97
+ readonly variables: true;
98
+ readonly allowNamedExports: false;
99
+ }];
100
+ readonly "no-useless-assignment": "error";
101
+ readonly "no-useless-backreference": "error";
102
+ readonly "require-atomic-updates": readonly ["error", {
103
+ readonly allowProperties: false;
104
+ }];
105
+ readonly "use-isnan": readonly ["error", {
106
+ readonly enforceForSwitchCase: true;
107
+ readonly enforceForIndexOf: true;
108
+ }];
109
+ readonly "valid-typeof": readonly ["error", {
110
+ readonly requireStringLiterals: true;
111
+ }];
112
+ readonly "accessor-pairs": readonly ["error", {
113
+ readonly setWithoutGet: true;
114
+ readonly getWithoutSet: false;
115
+ readonly enforceForClassMembers: true;
116
+ }];
117
+ readonly "arrow-body-style": readonly ["error", "as-needed", {
118
+ readonly requireReturnForObjectLiteral: true;
119
+ }];
120
+ readonly "block-scoped-var": "error";
121
+ readonly camelcase: "off";
122
+ readonly "capitalized-comments": "off";
123
+ readonly "class-methods-use-this": "off";
124
+ readonly complexity: "off";
125
+ readonly "consistent-return": readonly ["error", {
126
+ readonly treatUndefinedAsUnspecified: false;
127
+ }];
128
+ readonly "consistent-this": "error";
129
+ readonly curly: readonly ["error", "multi"];
130
+ readonly "default-case": "off";
131
+ readonly "default-case-last": "error";
132
+ readonly "default-param-last": "error";
133
+ readonly "dot-notation": readonly ["error", {
134
+ readonly allowKeywords: true;
135
+ }];
136
+ readonly eqeqeq: readonly ["error", "always"];
137
+ readonly "func-name-matching": "off";
138
+ readonly "func-names": "off";
139
+ readonly "func-style": "off";
140
+ readonly "grouped-accessor-pairs": "off";
141
+ readonly "guard-for-in": "off";
142
+ readonly "id-denylist": "off";
143
+ readonly "id-length": "off";
144
+ readonly "id-match": "off";
145
+ readonly "init-declarations": readonly ["error", "always"];
146
+ readonly "logical-assignment-operators": readonly ["error", "always", {
147
+ readonly enforceForIfStatements: true;
148
+ }];
149
+ readonly "max-classes-per-file": "off";
150
+ readonly "max-depth": "off";
151
+ readonly "max-lines": "off";
152
+ readonly "max-lines-per-function": "off";
153
+ readonly "max-nested-callbacks": "off";
154
+ readonly "max-params": "off";
155
+ readonly "max-statements": "off";
156
+ readonly "multiline-comment-style": "off";
157
+ readonly "new-cap": "off";
158
+ readonly "no-alert": "error";
159
+ readonly "no-array-constructor": "error";
160
+ readonly "no-bitwise": readonly ["error", {
161
+ readonly allow: readonly [];
162
+ readonly int32Hint: true;
163
+ }];
164
+ readonly "no-caller": "error";
165
+ readonly "no-case-declarations": "error";
166
+ readonly "no-console": "off";
167
+ readonly "no-continue": "error";
168
+ readonly "no-delete-var": "error";
169
+ readonly "no-div-regex": "error";
170
+ readonly "no-else-return": "off";
171
+ readonly "no-empty": readonly ["error", {
172
+ readonly allowEmptyCatch: false;
173
+ }];
174
+ readonly "no-empty-function": readonly ["error", {
175
+ readonly allow: readonly ["constructors"];
176
+ }];
177
+ readonly "no-empty-static-block": "error";
178
+ readonly "no-eq-null": "error";
179
+ readonly "no-eval": readonly ["error", {
180
+ readonly allowIndirect: false;
181
+ }];
182
+ readonly "no-extend-native": readonly ["error", {
183
+ readonly exceptions: readonly [];
184
+ }];
185
+ readonly "no-extra-bind": "error";
186
+ readonly "no-extra-boolean-cast": readonly ["error", {
187
+ readonly enforceForLogicalOperands: true;
188
+ }];
189
+ readonly "no-extra-label": "error";
190
+ readonly "no-global-assign": readonly ["error", {
191
+ readonly exceptions: readonly [];
192
+ }];
193
+ readonly "no-implicit-coercion": readonly ["error", {
194
+ readonly boolean: true;
195
+ readonly number: true;
196
+ readonly string: true;
197
+ readonly disallowTemplateShorthand: true;
198
+ readonly allow: readonly [];
199
+ }];
200
+ readonly "no-implicit-globals": "off";
201
+ readonly "no-implied-eval": "error";
202
+ readonly "no-inline-comments": "off";
203
+ readonly "no-invalid-this": readonly ["error", {
204
+ readonly capIsConstructor: false;
205
+ }];
206
+ readonly "no-iterator": "error";
207
+ readonly "no-label-var": "error";
208
+ readonly "no-lone-blocks": "error";
209
+ readonly "no-lonely-if": "off";
210
+ readonly "no-loop-func": "error";
211
+ readonly "no-magic-numbers": "off";
212
+ readonly "no-multi-assign": readonly ["error", {
213
+ readonly ignoreNonDeclaration: false;
214
+ }];
215
+ readonly "no-multi-str": "error";
216
+ readonly "no-negated-condition": "off";
217
+ readonly "no-nested-ternary": "off";
218
+ readonly "no-new": "error";
219
+ readonly "no-new-func": "error";
220
+ readonly "no-new-wrappers": "error";
221
+ readonly "no-nonoctal-decimal-escape": "error";
222
+ readonly "no-object-constructor": "error";
223
+ readonly "no-octal": "error";
224
+ readonly "no-octal-escape": "error";
225
+ readonly "no-param-reassign": readonly ["error", {
226
+ readonly props: true;
227
+ readonly ignorePropertyModificationsFor: readonly [];
228
+ readonly ignorePropertyModificationsForRegex: readonly [];
229
+ }];
230
+ readonly "no-plusplus": readonly ["error", {
231
+ readonly allowForLoopAfterthoughts: true;
232
+ }];
233
+ readonly "no-proto": "error";
234
+ readonly "no-redeclare": readonly ["error", {
235
+ readonly builtinGlobals: true;
236
+ }];
237
+ readonly "no-regex-spaces": "off";
238
+ readonly "no-restricted-exports": "off";
239
+ readonly "no-restricted-globals": "off";
240
+ readonly "no-restricted-imports": "off";
241
+ readonly "no-restricted-properties": "off";
242
+ readonly "no-restricted-syntax": "off";
243
+ readonly "no-return-assign": readonly ["error", "always"];
244
+ readonly "no-script-url": "error";
245
+ readonly "no-sequences": readonly ["error", {
246
+ readonly allowInParentheses: true;
247
+ }];
248
+ readonly "no-shadow": "off";
249
+ readonly "no-shadow-restricted-names": "error";
250
+ readonly "no-ternary": "off";
251
+ readonly "no-throw-literal": "error";
252
+ readonly "no-undef-init": "error";
253
+ readonly "no-undefined": "off";
254
+ readonly "no-underscore-dangle": "off";
255
+ readonly "no-unneeded-ternary": readonly ["error", {
256
+ readonly defaultAssignment: false;
257
+ }];
258
+ readonly "no-unused-expressions": readonly ["error", {
259
+ readonly allowShortCircuit: true;
260
+ readonly allowTernary: true;
261
+ readonly allowTaggedTemplates: true;
262
+ readonly enforceForJSX: false;
263
+ }];
264
+ readonly "no-unused-labels": "error";
265
+ readonly "no-useless-call": "error";
266
+ readonly "no-useless-catch": "error";
267
+ readonly "no-useless-computed-key": readonly ["error", {
268
+ readonly enforceForClassMembers: true;
269
+ }];
270
+ readonly "no-useless-concat": "error";
271
+ readonly "no-useless-constructor": "error";
272
+ readonly "no-useless-escape": "error";
273
+ readonly "no-useless-rename": readonly ["error", {
274
+ readonly ignoreImport: false;
275
+ readonly ignoreExport: false;
276
+ readonly ignoreDestructuring: false;
277
+ }];
278
+ readonly "no-useless-return": "error";
279
+ readonly "no-var": "error";
280
+ readonly "no-void": readonly ["error", {
281
+ readonly allowAsStatement: true;
282
+ }];
283
+ readonly "no-warning-comments": "off";
284
+ readonly "no-with": "error";
285
+ readonly "object-shorthand": readonly ["error", "always", {
286
+ readonly avoidQuotes: true;
287
+ readonly ignoreConstructors: false;
288
+ readonly avoidExplicitReturnArrows: false;
289
+ }];
290
+ readonly "one-var": readonly ["error", {
291
+ readonly var: "consecutive";
292
+ readonly let: "consecutive";
293
+ readonly const: "consecutive";
294
+ readonly separateRequires: true;
295
+ }];
296
+ readonly "operator-assignment": readonly ["error", "always"];
297
+ readonly "prefer-arrow-callback": readonly ["error", {
298
+ readonly allowNamedFunctions: false;
299
+ readonly allowUnboundThis: true;
300
+ }];
301
+ readonly "prefer-const": readonly ["error", {
302
+ readonly destructuring: "all";
303
+ readonly ignoreReadBeforeAssign: false;
304
+ }];
305
+ readonly "prefer-destructuring": readonly ["error", {
306
+ readonly VariableDeclarator: {
307
+ readonly array: true;
308
+ readonly object: true;
309
+ };
310
+ readonly AssignmentExpression: {
311
+ readonly array: false;
312
+ readonly object: false;
313
+ };
314
+ }, {
315
+ readonly enforceForRenamedProperties: true;
316
+ }];
317
+ readonly "prefer-exponentiation-operator": "error";
318
+ readonly "prefer-named-capture-group": "off";
319
+ readonly "prefer-numeric-literals": "error";
320
+ readonly "prefer-object-has-own": "error";
321
+ readonly "prefer-object-spread": "error";
322
+ readonly "prefer-promise-reject-errors": readonly ["error", {
323
+ readonly allowEmptyReject: false;
324
+ }];
325
+ readonly "prefer-regex-literals": readonly ["error", {
326
+ readonly disallowRedundantWrapping: true;
327
+ }];
328
+ readonly "prefer-rest-params": "error";
329
+ readonly "prefer-spread": "error";
330
+ readonly "prefer-template": "error";
331
+ readonly radix: readonly ["error", "as-needed"];
332
+ readonly "require-await": "error";
333
+ readonly "require-unicode-regexp": "error";
334
+ readonly "require-yield": "error";
335
+ readonly "sort-imports": "off";
336
+ readonly "sort-keys": "off";
337
+ readonly "sort-vars": "off";
338
+ readonly strict: "off";
339
+ readonly "symbol-description": "off";
340
+ readonly "vars-on-top": "error";
341
+ readonly yoda: readonly ["error", "never", {
342
+ readonly exceptRange: false;
343
+ readonly onlyEquality: false;
344
+ }];
345
+ readonly "unicode-bom": "off";
346
+ }] | readonly ["enable-extend", {
2
347
  readonly "json/no-duplicate-keys": "error";
3
348
  readonly "json/no-empty-keys": "off";
4
- }] | readonly ["enable", {}])[];
349
+ }])[];
5
350
  export default _default;
6
351
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -1,7 +1,7 @@
1
- import enable from "./enable.js";
1
+ import enable from "../js/enable.js";
2
2
  import enable_x from "./enable_x.js";
3
3
  export default [
4
- enable_x,
5
4
  enable,
5
+ enable_x,
6
6
  ];
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe;IACb,QAAQ;IACR,MAAM;CACP,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe;IACb,MAAM;IACN,QAAQ;CACT,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "linted",
4
- "version": "21.0.0-rc.11",
4
+ "version": "21.0.0-rc.12",
5
5
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
6
  "keywords": [
7
7
  "eslint",
@@ -1,10 +1,185 @@
1
1
  import {
2
2
  enable,
3
+ ERROR,
4
+ AlwaysMultiline,
5
+ Always,
6
+ Last,
7
+ Never,
8
+ Strict,
3
9
  } from "../../_strings";
4
10
 
5
11
  export default [
6
12
  enable,
7
13
  {
8
14
  // https://eslint.org/docs/latest/rules/#deprecated
15
+ "array-bracket-newline": [
16
+ ERROR,
17
+ {
18
+ multiline: true,
19
+ minItems: null,
20
+ },
21
+ ],
22
+ "array-bracket-spacing": [
23
+ ERROR,
24
+ Never,
25
+ {
26
+ singleValue: false,
27
+ objectsInArrays: false,
28
+ arraysInArrays: false,
29
+ },
30
+ ],
31
+ "array-element-newline": [
32
+ ERROR,
33
+ {
34
+ ArrayExpression: {
35
+ consistent: true,
36
+ multiline: true,
37
+ minItems: 4,
38
+ },
39
+ ArrayPattern: {
40
+ consistent: true,
41
+ multiline: true,
42
+ minItems: 4,
43
+ },
44
+ },
45
+ ],
46
+ "brace-style": [
47
+ ERROR,
48
+ "stroustrup",
49
+ {
50
+ allowSingleLine: true,
51
+ },
52
+ ],
53
+ "comma-dangle": [ERROR, AlwaysMultiline],
54
+ "comma-spacing": [
55
+ ERROR,
56
+ {
57
+ before: false,
58
+ after: true,
59
+ },
60
+ ],
61
+ "comma-style": [
62
+ ERROR,
63
+ Last,
64
+ {
65
+ exceptions: {
66
+ ArrayExpression: false,
67
+ ArrayPattern: false,
68
+ ArrowFunctionExpression: false,
69
+ CallExpression: false,
70
+ FunctionDeclaration: false,
71
+ FunctionExpression: false,
72
+ ImportDeclaration: false,
73
+ ObjectExpression: false,
74
+ ObjectPattern: false,
75
+ VariableDeclaration: false,
76
+ NewExpression: false,
77
+ },
78
+ },
79
+ ],
80
+ "eol-last": [ERROR, Always],
81
+ "key-spacing": [
82
+ ERROR,
83
+ {
84
+ beforeColon: false,
85
+ afterColon: true,
86
+ mode: Strict,
87
+ },
88
+ ],
89
+ indent: [
90
+ ERROR,
91
+ 2,
92
+ {
93
+ ignoredNodes: [],
94
+ SwitchCase: 1,
95
+ VariableDeclarator: { "var": 0, let: 0, "const": 0 },
96
+ outerIIFEBody: 0,
97
+ MemberExpression: 1,
98
+ FunctionDeclaration: { parameters: 1, body: 1 },
99
+ FunctionExpression: { parameters: 1, body: 1 },
100
+ StaticBlock: { body: 1 },
101
+ CallExpression: { arguments: 1 },
102
+ ArrayExpression: 1,
103
+ ObjectExpression: 1,
104
+ ImportDeclaration: 1,
105
+ flatTernaryExpressions: false,
106
+ offsetTernaryExpressions: true,
107
+ ignoreComments: false,
108
+ },
109
+ ],
110
+ "no-mixed-spaces-and-tabs": ERROR,
111
+ "no-multi-spaces": [
112
+ ERROR,
113
+ {
114
+ ignoreEOLComments: false,
115
+ exceptions: {
116
+ Property: false,
117
+ ImportAttributes: false,
118
+ },
119
+ includeTabs: true,
120
+ },
121
+ ],
122
+ "no-multiple-empty-lines": [
123
+ ERROR,
124
+ {
125
+ max: 1,
126
+ maxEOF: 1,
127
+ maxBOF: 0,
128
+ },
129
+ ],
130
+ "no-tabs": [
131
+ ERROR,
132
+ {
133
+ allowIndentationTabs: false,
134
+ },
135
+ ],
136
+ "no-trailing-spaces": [
137
+ ERROR,
138
+ {
139
+ skipBlankLines: false,
140
+ ignoreComments: false,
141
+ },
142
+ ],
143
+ "no-whitespace-before-property": ERROR,
144
+ "object-curly-newline": [
145
+ ERROR,
146
+ {
147
+ ObjectExpression: {
148
+ consistent: true,
149
+ multiline: true,
150
+ minProperties: 4,
151
+ },
152
+ ObjectPattern: {
153
+ consistent: true,
154
+ multiline: true,
155
+ minProperties: 4,
156
+ },
157
+ ImportDeclaration: {
158
+ consistent: true,
159
+ multiline: true,
160
+ minProperties: 4,
161
+ },
162
+ ExportDeclaration: {
163
+ consistent: true,
164
+ multiline: true,
165
+ minProperties: 4,
166
+ },
167
+ },
168
+ ],
169
+ "object-curly-spacing": [
170
+ ERROR,
171
+ Always,
172
+ {
173
+ arraysInObjects: true,
174
+ objectsInObjects: true,
175
+ },
176
+ ],
177
+ "object-property-newline": [
178
+ ERROR,
179
+ {
180
+ allowAllPropertiesOnSameLine: true,
181
+ },
182
+ ],
183
+ "spaced-comment": [ERROR, Always],
9
184
  },
10
185
  ] as const;
@@ -1,7 +1,7 @@
1
- import enable from "./enable";
1
+ import enable from "../js/enable";
2
2
  import enable_x from "./enable_x";
3
3
 
4
4
  export default [
5
- enable_x,
6
5
  enable,
6
+ enable_x,
7
7
  ];