@xylabs/eslint-config-flat 7.0.0-rc.9 → 7.0.0

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.
Files changed (45) hide show
  1. package/dist/neutral/ignores.d.ts +2 -0
  2. package/dist/neutral/ignores.d.ts.map +1 -0
  3. package/dist/neutral/import/index.d.ts +3 -0
  4. package/dist/neutral/import/index.d.ts.map +1 -0
  5. package/dist/neutral/index.d.ts +11 -23
  6. package/dist/neutral/index.d.ts.map +1 -0
  7. package/dist/neutral/index.mjs +416 -137
  8. package/dist/neutral/index.mjs.map +1 -1
  9. package/dist/neutral/json/index.d.ts +5 -0
  10. package/dist/neutral/json/index.d.ts.map +1 -0
  11. package/dist/neutral/markdown/index.d.ts +3 -0
  12. package/dist/neutral/markdown/index.d.ts.map +1 -0
  13. package/dist/neutral/rules/index.d.ts +3 -0
  14. package/dist/neutral/rules/index.d.ts.map +1 -0
  15. package/dist/neutral/sonar/index.d.ts +3 -0
  16. package/dist/neutral/sonar/index.d.ts.map +1 -0
  17. package/dist/neutral/typescript/index.d.ts +3 -0
  18. package/dist/neutral/typescript/index.d.ts.map +1 -0
  19. package/dist/neutral/unicorn/index.d.ts +3 -0
  20. package/dist/neutral/unicorn/index.d.ts.map +1 -0
  21. package/dist/neutral/workspaces/index.d.ts +3 -0
  22. package/dist/neutral/workspaces/index.d.ts.map +1 -0
  23. package/dist/node/ignores.d.ts +2 -0
  24. package/dist/node/ignores.d.ts.map +1 -0
  25. package/dist/node/import/index.d.ts +3 -0
  26. package/dist/node/import/index.d.ts.map +1 -0
  27. package/dist/node/index.d.ts +11 -23
  28. package/dist/node/index.d.ts.map +1 -0
  29. package/dist/node/index.mjs +416 -137
  30. package/dist/node/index.mjs.map +1 -1
  31. package/dist/node/json/index.d.ts +5 -0
  32. package/dist/node/json/index.d.ts.map +1 -0
  33. package/dist/node/markdown/index.d.ts +3 -0
  34. package/dist/node/markdown/index.d.ts.map +1 -0
  35. package/dist/node/rules/index.d.ts +3 -0
  36. package/dist/node/rules/index.d.ts.map +1 -0
  37. package/dist/node/sonar/index.d.ts +3 -0
  38. package/dist/node/sonar/index.d.ts.map +1 -0
  39. package/dist/node/typescript/index.d.ts +3 -0
  40. package/dist/node/typescript/index.d.ts.map +1 -0
  41. package/dist/node/unicorn/index.d.ts +3 -0
  42. package/dist/node/unicorn/index.d.ts.map +1 -0
  43. package/dist/node/workspaces/index.d.ts +3 -0
  44. package/dist/node/workspaces/index.d.ts.map +1 -0
  45. package/package.json +9 -10
@@ -34,11 +34,22 @@ var ignores = [
34
34
  // src/import/index.ts
35
35
  var importConfig = {
36
36
  ignores,
37
- files: ["**/*.ts", "**/*.d.ts", "**/*.tsx", "**/*.d.tsx", "**/*.ts", "**/*.d.ts", "**/*.jsx", "**/*.d.jsx"],
37
+ files: [
38
+ "**/*.ts",
39
+ "**/*.d.ts",
40
+ "**/*.tsx",
41
+ "**/*.d.tsx",
42
+ "**/*.ts",
43
+ "**/*.d.ts",
44
+ "**/*.jsx",
45
+ "**/*.d.jsx"
46
+ ],
38
47
  languageOptions: {
39
48
  parser: tsParser,
40
49
  parserOptions: {
41
- ecmaFeatures: { modules: true },
50
+ ecmaFeatures: {
51
+ modules: true
52
+ },
42
53
  ecmaVersion: "latest",
43
54
  project: "./tsconfig.json"
44
55
  }
@@ -47,28 +58,48 @@ var importConfig = {
47
58
  "import-x": importPlugin,
48
59
  "simple-import-sort": simpleImportSort
49
60
  },
50
- settings: { "import-x/resolver": { typescript: { project: "./tsconfig.json" } } },
61
+ settings: {
62
+ "import-x/resolver": {
63
+ typescript: {
64
+ project: "./tsconfig.json"
65
+ }
66
+ }
67
+ },
51
68
  rules: {
52
69
  ...importPlugin.configs.recommended.rules,
53
- "simple-import-sort/imports": ["warn"],
54
- "simple-import-sort/exports": ["warn"],
55
- "import-x/default": ["off"],
56
- "import-x/named": ["off"],
57
- "import-x/namespace": ["off"],
58
- "import-x/no-absolute-path": ["warn"],
70
+ "simple-import-sort/imports": [
71
+ "warn"
72
+ ],
73
+ "simple-import-sort/exports": [
74
+ "warn"
75
+ ],
76
+ "import-x/default": [
77
+ "off"
78
+ ],
79
+ "import-x/named": [
80
+ "off"
81
+ ],
82
+ "import-x/namespace": [
83
+ "off"
84
+ ],
85
+ "import-x/no-absolute-path": [
86
+ "warn"
87
+ ],
59
88
  "import-x/no-cycle": [
60
89
  "warn",
61
- { maxDepth: 2 }
90
+ {
91
+ maxDepth: 2
92
+ }
93
+ ],
94
+ "import-x/no-deprecated": [
95
+ "off"
62
96
  ],
63
- "import-x/no-deprecated": ["off"],
64
97
  "import-x/no-internal-modules": [
65
98
  "warn",
66
99
  {
67
100
  allow: [
68
101
  "vitest/*",
69
- // Allow imports from vitest
70
102
  "@*/**",
71
- // Allow imports from any @scoped package
72
103
  // Allow imports to any index.js file
73
104
  "**/index.js",
74
105
  "**/index.ts",
@@ -77,11 +108,21 @@ var importConfig = {
77
108
  ]
78
109
  }
79
110
  ],
80
- "import-x/no-named-as-default-member": ["off"],
81
- "import-x/no-named-as-default": ["off"],
82
- "import-x/no-restricted-paths": ["warn"],
83
- "import-x/no-self-import": ["warn"],
84
- "import-x/no-useless-path-segments": ["warn"]
111
+ "import-x/no-named-as-default-member": [
112
+ "off"
113
+ ],
114
+ "import-x/no-named-as-default": [
115
+ "off"
116
+ ],
117
+ "import-x/no-restricted-paths": [
118
+ "warn"
119
+ ],
120
+ "import-x/no-self-import": [
121
+ "warn"
122
+ ],
123
+ "import-x/no-useless-path-segments": [
124
+ "warn"
125
+ ]
85
126
  }
86
127
  };
87
128
 
@@ -89,8 +130,12 @@ var importConfig = {
89
130
  import markdown from "eslint-plugin-markdown";
90
131
  var markdownConfig = {
91
132
  ignores,
92
- plugins: { markdown },
93
- files: ["**/*.md"],
133
+ plugins: {
134
+ markdown
135
+ },
136
+ files: [
137
+ "**/*.md"
138
+ ],
94
139
  processor: "markdown/markdown"
95
140
  };
96
141
 
@@ -98,8 +143,14 @@ var markdownConfig = {
98
143
  var rulesConfig = {
99
144
  ignores,
100
145
  rules: {
101
- "complexity": ["error", 18],
102
- "max-depth": ["error", 6],
146
+ "complexity": [
147
+ "error",
148
+ 18
149
+ ],
150
+ "max-depth": [
151
+ "error",
152
+ 6
153
+ ],
103
154
  "max-lines": [
104
155
  "error",
105
156
  {
@@ -107,9 +158,18 @@ var rulesConfig = {
107
158
  skipBlankLines: true
108
159
  }
109
160
  ],
110
- "array-element-newline": ["warn", "consistent"],
111
- "max-nested-callbacks": ["error", 6],
112
- "max-statements": ["error", 32],
161
+ "array-element-newline": [
162
+ "warn",
163
+ "consistent"
164
+ ],
165
+ "max-nested-callbacks": [
166
+ "error",
167
+ 6
168
+ ],
169
+ "max-statements": [
170
+ "error",
171
+ 32
172
+ ],
113
173
  "no-restricted-imports": [
114
174
  "error",
115
175
  {
@@ -126,47 +186,101 @@ var rulesConfig = {
126
186
  }
127
187
  ],
128
188
  // 'no-secrets/no-secrets': ['off'],
129
- "no-tabs": ["error"],
189
+ "no-tabs": [
190
+ "error"
191
+ ],
130
192
  "no-unused-vars": "off",
131
193
  "no-useless-escape": "off",
132
- "quotes": [2, "single", "avoid-escape"],
194
+ "quotes": [
195
+ 2,
196
+ "single",
197
+ "avoid-escape"
198
+ ],
133
199
  "require-await": "error",
134
- "semi": ["warn", "never"]
135
- // 'sort-keys-fix/sort-keys-fix': 'warn',
200
+ "semi": [
201
+ "warn",
202
+ "never"
203
+ ]
136
204
  }
137
205
  };
138
206
 
139
207
  // src/sonar/index.ts
140
208
  import sonarjs from "eslint-plugin-sonarjs";
141
209
  var sonarConfig = {
142
- plugins: { sonarjs },
210
+ plugins: {
211
+ sonarjs
212
+ },
143
213
  ignores,
144
214
  rules: {
145
215
  // ...sonarjs.configs.recommended.rules,
146
- "sonarjs/no-small-switch": ["off"],
147
- "sonarjs/os-command": ["off"],
148
- "sonarjs/no-os-command-from-path": ["off"],
149
- "sonarjs/no-nested-conditional": ["off"],
150
- "sonarjs/todo-tag": ["off"],
151
- "sonarjs/deprecation": ["warn"],
152
- "sonarjs/no-nested-functions": ["off"],
153
- "sonarjs/function-return-type": ["off"],
154
- "sonarjs/pseudo-random": ["off"],
155
- "sonarjs/public-static-readonly": ["warn"],
156
- "sonarjs/post-message": ["off"],
157
- "sonarjs/different-types-comparison": ["off"],
158
- "sonarjs/no-alphabetical-sort": ["warn"],
159
- "sonarjs/no-identical-functions": ["warn"],
160
- "sonarjs/no-empty-test-file": ["off"],
161
- "sonarjs/no-dead-store": ["warn"],
162
- "sonarjs/no-redundant-jump": ["warn"],
163
- "sonarjs/void-use": ["off"],
216
+ "sonarjs/no-small-switch": [
217
+ "off"
218
+ ],
219
+ "sonarjs/os-command": [
220
+ "off"
221
+ ],
222
+ "sonarjs/no-os-command-from-path": [
223
+ "off"
224
+ ],
225
+ "sonarjs/no-nested-conditional": [
226
+ "off"
227
+ ],
228
+ "sonarjs/todo-tag": [
229
+ "off"
230
+ ],
231
+ "sonarjs/deprecation": [
232
+ "warn"
233
+ ],
234
+ "sonarjs/no-nested-functions": [
235
+ "off"
236
+ ],
237
+ "sonarjs/function-return-type": [
238
+ "off"
239
+ ],
240
+ "sonarjs/pseudo-random": [
241
+ "off"
242
+ ],
243
+ "sonarjs/public-static-readonly": [
244
+ "warn"
245
+ ],
246
+ "sonarjs/post-message": [
247
+ "off"
248
+ ],
249
+ "sonarjs/different-types-comparison": [
250
+ "off"
251
+ ],
252
+ "sonarjs/no-alphabetical-sort": [
253
+ "warn"
254
+ ],
255
+ "sonarjs/no-identical-functions": [
256
+ "warn"
257
+ ],
258
+ "sonarjs/no-empty-test-file": [
259
+ "off"
260
+ ],
261
+ "sonarjs/no-dead-store": [
262
+ "warn"
263
+ ],
264
+ "sonarjs/no-redundant-jump": [
265
+ "warn"
266
+ ],
267
+ "sonarjs/void-use": [
268
+ "off"
269
+ ],
164
270
  // handled by eslint
165
- "sonarjs/cognitive-complexity": ["off"],
166
- "sonarjs/unused-import": ["off"],
271
+ "sonarjs/cognitive-complexity": [
272
+ "off"
273
+ ],
274
+ "sonarjs/unused-import": [
275
+ "off"
276
+ ],
167
277
  // handled by typescript-eslint
168
- "sonarjs/no-unused-vars": ["off"],
169
- "sonarjs/no-commented-code": ["off"]
278
+ "sonarjs/no-unused-vars": [
279
+ "off"
280
+ ],
281
+ "sonarjs/no-commented-code": [
282
+ "off"
283
+ ]
170
284
  }
171
285
  };
172
286
 
@@ -192,7 +306,9 @@ var typescriptConfig = {
192
306
  languageOptions: {
193
307
  parser: tsParser2,
194
308
  parserOptions: {
195
- ecmaFeatures: { modules: true },
309
+ ecmaFeatures: {
310
+ modules: true
311
+ },
196
312
  ecmaVersion: "latest",
197
313
  project: "./tsconfig.json"
198
314
  }
@@ -204,15 +320,54 @@ var typescriptConfig = {
204
320
  rules: {
205
321
  ...tsPlugin.configs.recommended.rules,
206
322
  ...esStylistic.configs["recommended"].rules,
207
- "@typescript-eslint/no-empty-object-type": ["off"],
208
- "@typescript-eslint/explicit-member-accessibility": ["warn", { accessibility: "no-public" }],
323
+ "@typescript-eslint/no-empty-object-type": [
324
+ "off"
325
+ ],
326
+ "@typescript-eslint/explicit-member-accessibility": [
327
+ "warn",
328
+ {
329
+ accessibility: "no-public"
330
+ }
331
+ ],
209
332
  "@typescript-eslint/explicit-module-boundary-types": "off",
210
- "@stylistic/brace-style": ["warn", "1tbs", { allowSingleLine: true }],
211
- "@stylistic/quotes": ["warn", "single", { avoidEscape: true }],
212
- "@typescript-eslint/consistent-type-imports": ["warn", { fixStyle: "separate-type-imports", prefer: "type-imports" }],
213
- "@stylistic/object-property-newline": ["warn", { allowAllPropertiesOnSameLine: true }],
214
- "@stylistic/function-call-argument-newline": ["warn", "consistent"],
215
- "@stylistic/function-paren-newline": ["warn", "multiline-arguments"],
333
+ "@stylistic/brace-style": [
334
+ "warn",
335
+ "1tbs",
336
+ {
337
+ allowSingleLine: true
338
+ }
339
+ ],
340
+ "@stylistic/quotes": [
341
+ "warn",
342
+ "single",
343
+ {
344
+ avoidEscape: true
345
+ }
346
+ ],
347
+ "@typescript-eslint/consistent-type-imports": [
348
+ "warn",
349
+ {
350
+ fixStyle: "separate-type-imports",
351
+ prefer: "type-imports"
352
+ }
353
+ ],
354
+ "@stylistic/object-property-newline": [
355
+ "warn",
356
+ {
357
+ allowAllPropertiesOnSameLine: true
358
+ }
359
+ ],
360
+ "@stylistic/function-call-argument-newline": [
361
+ "warn",
362
+ "consistent"
363
+ ],
364
+ "@stylistic/function-paren-newline": [
365
+ "warn",
366
+ "multiline-arguments"
367
+ ],
368
+ "@typescript-eslint/triple-slash-reference": [
369
+ "off"
370
+ ],
216
371
  "@stylistic/member-delimiter-style": [
217
372
  "error",
218
373
  {
@@ -226,29 +381,37 @@ var typescriptConfig = {
226
381
  }
227
382
  }
228
383
  ],
229
- "@stylistic/object-curly-newline": ["warn", {
230
- ObjectExpression: {
231
- multiline: true,
232
- minProperties: 3,
233
- consistent: false
234
- },
235
- ObjectPattern: {
236
- multiline: true,
237
- minProperties: 3,
238
- consistent: false
239
- },
240
- ImportDeclaration: {
241
- multiline: true,
242
- minProperties: 3,
243
- consistent: false
244
- },
245
- ExportDeclaration: {
246
- multiline: true,
247
- minProperties: 3,
248
- consistent: false
384
+ "@stylistic/object-curly-newline": [
385
+ "warn",
386
+ {
387
+ ObjectExpression: {
388
+ multiline: true,
389
+ minProperties: 3,
390
+ consistent: false
391
+ },
392
+ ObjectPattern: {
393
+ multiline: true,
394
+ minProperties: 3,
395
+ consistent: false
396
+ },
397
+ ImportDeclaration: {
398
+ multiline: true,
399
+ minProperties: 3,
400
+ consistent: false
401
+ },
402
+ ExportDeclaration: {
403
+ multiline: true,
404
+ minProperties: 3,
405
+ consistent: false
406
+ }
407
+ }
408
+ ],
409
+ "@stylistic/max-len": [
410
+ "warn",
411
+ {
412
+ code: 160
249
413
  }
250
- }],
251
- "@stylistic/max-len": ["warn", { code: 160 }],
414
+ ],
252
415
  "no-restricted-syntax": [
253
416
  "warn",
254
417
  {
@@ -286,24 +449,78 @@ var typescriptConfig = {
286
449
  "protected-constructor",
287
450
  "private-constructor",
288
451
  "constructor",
289
- ["public-static-get", "public-static-set"],
290
- ["protected-static-get", "protected-static-set"],
291
- ["private-static-get", "private-static-set"],
292
- ["public-decorated-get", "public-decorated-set"],
293
- ["protected-decorated-get", "protected-decorated-set"],
294
- ["private-decorated-get", "private-decorated-set"],
295
- ["public-instance-get", "public-instance-set"],
296
- ["protected-instance-get", "protected-instance-set"],
297
- ["private-instance-get", "private-instance-set"],
298
- ["public-abstract-get", "public-abstract-set"],
299
- ["protected-abstract-get", "protected-abstract-set"],
300
- ["public-get", "public-set"],
301
- ["protected-get", "protected-set"],
302
- ["private-get", "private-set"],
303
- ["static-get", "static-set"],
304
- ["instance-get", "instance-set"],
305
- ["abstract-get", "abstract-set"],
306
- ["decorated-get", "decorated-set"],
452
+ [
453
+ "public-static-get",
454
+ "public-static-set"
455
+ ],
456
+ [
457
+ "protected-static-get",
458
+ "protected-static-set"
459
+ ],
460
+ [
461
+ "private-static-get",
462
+ "private-static-set"
463
+ ],
464
+ [
465
+ "public-decorated-get",
466
+ "public-decorated-set"
467
+ ],
468
+ [
469
+ "protected-decorated-get",
470
+ "protected-decorated-set"
471
+ ],
472
+ [
473
+ "private-decorated-get",
474
+ "private-decorated-set"
475
+ ],
476
+ [
477
+ "public-instance-get",
478
+ "public-instance-set"
479
+ ],
480
+ [
481
+ "protected-instance-get",
482
+ "protected-instance-set"
483
+ ],
484
+ [
485
+ "private-instance-get",
486
+ "private-instance-set"
487
+ ],
488
+ [
489
+ "public-abstract-get",
490
+ "public-abstract-set"
491
+ ],
492
+ [
493
+ "protected-abstract-get",
494
+ "protected-abstract-set"
495
+ ],
496
+ [
497
+ "public-get",
498
+ "public-set"
499
+ ],
500
+ [
501
+ "protected-get",
502
+ "protected-set"
503
+ ],
504
+ [
505
+ "private-get",
506
+ "private-set"
507
+ ],
508
+ [
509
+ "static-get",
510
+ "static-set"
511
+ ],
512
+ [
513
+ "instance-get",
514
+ "instance-set"
515
+ ],
516
+ [
517
+ "abstract-get",
518
+ "abstract-set"
519
+ ],
520
+ [
521
+ "decorated-get",
522
+ "decorated-set"
523
+ ],
307
524
  "get",
308
525
  "set",
309
526
  "public-static-method",
@@ -332,7 +549,10 @@ var typescriptConfig = {
332
549
  ],
333
550
  "@typescript-eslint/no-floating-promises": "error",
334
551
  "@typescript-eslint/no-misused-promises": "error",
335
- "semi": ["warn", "never"],
552
+ "semi": [
553
+ "warn",
554
+ "never"
555
+ ],
336
556
  "@typescript-eslint/no-unused-vars": [
337
557
  "warn",
338
558
  {
@@ -341,48 +561,83 @@ var typescriptConfig = {
341
561
  ignoreRestSiblings: true
342
562
  }
343
563
  ],
344
- "@typescript-eslint/strict-boolean-expressions": ["warn", {
345
- allowAny: true,
346
- allowNullableBoolean: true,
347
- allowNullableEnum: false,
348
- allowNullableNumber: false,
349
- allowNullableObject: true,
350
- allowNullableString: false,
351
- allowNumber: false,
352
- allowString: false
353
- }]
564
+ "@typescript-eslint/strict-boolean-expressions": [
565
+ "warn",
566
+ {
567
+ allowAny: true,
568
+ allowNullableBoolean: true,
569
+ allowNullableEnum: false,
570
+ allowNullableNumber: false,
571
+ allowNullableObject: true,
572
+ allowNullableString: false,
573
+ allowNumber: false,
574
+ allowString: false
575
+ }
576
+ ]
354
577
  }
355
578
  };
356
579
 
357
580
  // src/unicorn/index.ts
358
581
  import unicornPlugin from "eslint-plugin-unicorn";
359
582
  var unicornConfig = {
360
- plugins: { unicorn: unicornPlugin },
583
+ plugins: {
584
+ unicorn: unicornPlugin
585
+ },
361
586
  rules: {
362
587
  ...unicornPlugin.configs["flat/recommended"].rules,
363
- "unicorn/catch-error-name": ["off"],
364
- "unicorn/consistent-function-scoping": ["off"],
365
- "unicorn/filename-case": ["off"],
366
- "unicorn/new-for-builtins": ["off"],
367
- "unicorn/no-array-callback-reference": ["off"],
368
- "unicorn/no-await-expression-member": ["off"],
369
- "unicorn/no-nested-ternary": ["off"],
370
- "unicorn/no-null": ["off"],
371
- "unicorn/number-literal-case": ["off"],
372
- "unicorn/prefer-module": ["off"],
373
- "unicorn/prefer-top-level-await": ["off"],
374
- "unicorn/prevent-abbreviations": ["off"]
588
+ "unicorn/catch-error-name": [
589
+ "off"
590
+ ],
591
+ "unicorn/consistent-function-scoping": [
592
+ "off"
593
+ ],
594
+ "unicorn/filename-case": [
595
+ "off"
596
+ ],
597
+ "unicorn/new-for-builtins": [
598
+ "off"
599
+ ],
600
+ "unicorn/no-array-callback-reference": [
601
+ "off"
602
+ ],
603
+ "unicorn/no-await-expression-member": [
604
+ "off"
605
+ ],
606
+ "unicorn/no-nested-ternary": [
607
+ "off"
608
+ ],
609
+ "unicorn/no-null": [
610
+ "off"
611
+ ],
612
+ "unicorn/number-literal-case": [
613
+ "off"
614
+ ],
615
+ "unicorn/prefer-module": [
616
+ "off"
617
+ ],
618
+ "unicorn/prefer-top-level-await": [
619
+ "off"
620
+ ],
621
+ "unicorn/prevent-abbreviations": [
622
+ "off"
623
+ ]
375
624
  }
376
625
  };
377
626
 
378
627
  // src/workspaces/index.ts
379
628
  import workspacesPlugin from "eslint-plugin-workspaces";
380
629
  var workspacesConfig = {
381
- plugins: { workspaces: workspacesPlugin },
630
+ plugins: {
631
+ workspaces: workspacesPlugin
632
+ },
382
633
  rules: {
383
634
  ...workspacesPlugin.configs.recommended.rules,
384
- "workspaces/no-relative-imports": ["off"],
385
- "workspaces/require-dependency": ["off"]
635
+ "workspaces/no-relative-imports": [
636
+ "off"
637
+ ],
638
+ "workspaces/require-dependency": [
639
+ "off"
640
+ ]
386
641
  }
387
642
  };
388
643
 
@@ -390,24 +645,48 @@ var workspacesConfig = {
390
645
  import json from "@eslint/json";
391
646
  var jsonConfig = {
392
647
  ignores,
393
- files: ["**/*.json"],
394
- plugins: { json },
648
+ files: [
649
+ "**/*.json"
650
+ ],
651
+ plugins: {
652
+ json
653
+ },
395
654
  language: "json/json",
396
- rules: { "json/no-duplicate-keys": ["error"] }
655
+ rules: {
656
+ "json/no-duplicate-keys": [
657
+ "error"
658
+ ]
659
+ }
397
660
  };
398
661
  var jsoncConfig = {
399
662
  ignores,
400
- files: ["**/*.jsonc"],
401
- plugins: { json },
663
+ files: [
664
+ "**/*.jsonc"
665
+ ],
666
+ plugins: {
667
+ json
668
+ },
402
669
  language: "json/jsonc",
403
- rules: { "json/no-duplicate-keys": ["error"] }
670
+ rules: {
671
+ "json/no-duplicate-keys": [
672
+ "error"
673
+ ]
674
+ }
404
675
  };
405
676
  var json5Config = {
406
677
  ignores,
407
- files: ["**/*.json5"],
408
- plugins: { json },
678
+ files: [
679
+ "**/*.json5"
680
+ ],
681
+ plugins: {
682
+ json
683
+ },
409
684
  language: "json/json5",
410
- rules: { "json/no-duplicate-keys": ["error"] }
685
+ rules: {
686
+ "json/no-duplicate-keys": [
687
+ "error"
688
+ ]
689
+ }
411
690
  };
412
691
 
413
692
  // src/index.ts