@useinsider/eslint-config 1.9.2 → 1.10.0-beta.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.
Files changed (88) hide show
  1. package/README.md +5 -4
  2. package/dist/base.d.ts +2 -2
  3. package/dist/configs/config/index.d.ts +1 -1
  4. package/dist/configs/javascript/index.d.ts +2 -1
  5. package/dist/configs/javascript-dom/index.d.ts +1 -1
  6. package/dist/configs/javascript-node/index.d.ts +1 -1
  7. package/dist/configs/jest/index.d.ts +1 -1
  8. package/dist/configs/jsdoc-based-ts/index.d.ts +1 -1
  9. package/dist/configs/typescript/index.d.ts +1 -1
  10. package/dist/configs/typescript-dom/index.d.ts +1 -1
  11. package/dist/configs/typescript-node/index.d.ts +2 -2
  12. package/dist/configs/vue2/index.d.ts +1 -1
  13. package/dist/configs/vue2-typescript/index.d.ts +3 -0
  14. package/dist/configs/vue3/index.d.ts +1 -1
  15. package/dist/configs/vue3-typescript/index.d.ts +1 -1
  16. package/dist/index-5XpuN8zJ.js +36 -0
  17. package/dist/index-AoIfKLih.cjs +1 -0
  18. package/dist/index-BbY-DzQZ.js +23 -0
  19. package/dist/index-BcXPdx1B.cjs +1 -0
  20. package/dist/index-BfVokhiU.js +50 -0
  21. package/dist/index-BmBugWe4.cjs +1 -0
  22. package/dist/{index-UyB1dQmr.cjs → index-BmEpUwjI.cjs} +1 -1
  23. package/dist/index-C2ejyG13.js +43 -0
  24. package/dist/index-C2p6z9H4.js +9 -0
  25. package/dist/{index-CCc7nS-L.cjs → index-C8Fyv8dX.cjs} +1 -1
  26. package/dist/{index-Dz51pbFA.js → index-C9C56Sak.js} +1 -1
  27. package/dist/{index-BsEDEtyS.js → index-C__itRdP.js} +1 -1
  28. package/dist/{index-Cjyj5Al1.cjs → index-Ce8VTxdD.cjs} +1 -1
  29. package/dist/index-Chj1r0fO.cjs +1 -0
  30. package/dist/index-CluTLBWw.cjs +1 -0
  31. package/dist/{index-DWdvFLYP.js → index-Cy4JQvOe.js} +3 -3
  32. package/dist/index-D33jOlli.cjs +1 -0
  33. package/dist/index-DEn6q6Nn.cjs +1 -0
  34. package/dist/index-DhhGuad5.cjs +1 -0
  35. package/dist/index-PPmRJNMx.js +50 -0
  36. package/dist/{index-E3Dvq2rq.js → index-kDh8-AEb.js} +1 -1
  37. package/dist/index-uJNHwtXG.js +43 -0
  38. package/dist/main.cjs +2 -2
  39. package/dist/main.d.ts +3 -2
  40. package/dist/main.js +57 -55
  41. package/dist/rules/core.d.ts +1 -1
  42. package/dist/rules/cspell.d.ts +1 -1
  43. package/dist/rules/importRules.d.ts +1 -1
  44. package/dist/rules/jsdoc.d.ts +1 -1
  45. package/dist/rules/stylistic.d.ts +1 -1
  46. package/dist/rules/typescript.d.ts +1 -1
  47. package/dist/rules/vue.d.ts +1 -1
  48. package/dist/rules/vue2.d.ts +2 -2
  49. package/dist/stylistic-D3KEBmIv.cjs +1 -0
  50. package/dist/stylistic-DSE4g5OV.js +419 -0
  51. package/dist/{rules/typescript.cjs → typescript-BvnP4VCM.cjs} +1 -1
  52. package/dist/{rules/typescript.js → typescript-Dg4zKuYI.js} +1 -1
  53. package/dist/utils/compat.d.ts +4 -4
  54. package/dist/utils/mergeAllConfig.d.ts +1 -1
  55. package/dist/{rules/vue.js → vue-5XWMLJUh.js} +3 -3
  56. package/dist/vue-D2lo_IGG.cjs +1 -0
  57. package/dist/{rules/vue2.js → vue2-7aDd9M-9.js} +8 -3
  58. package/dist/vue2-CpDCkxcX.cjs +1 -0
  59. package/package.json +32 -39
  60. package/dist/base-C2fq_o3u.cjs +0 -1
  61. package/dist/base-DhxoXy40.js +0 -29
  62. package/dist/compat-DfBTP0AK.js +0 -15
  63. package/dist/compat-S2mgbwTA.cjs +0 -1
  64. package/dist/index-BSFKHRiy.js +0 -33
  65. package/dist/index-BUOro8yS.js +0 -54
  66. package/dist/index-BX0PuY7X.cjs +0 -1
  67. package/dist/index-BYXlsowx.cjs +0 -1
  68. package/dist/index-BcjSGMc4.cjs +0 -1
  69. package/dist/index-C743UfJX.cjs +0 -1
  70. package/dist/index-CAuGyIr4.cjs +0 -1
  71. package/dist/index-CcvN-eiV.cjs +0 -1
  72. package/dist/index-CixUmpPQ.js +0 -9
  73. package/dist/index-CydLRA6p.js +0 -34
  74. package/dist/index-DIhDmtxO.js +0 -17
  75. package/dist/index-D_iZLt4b.js +0 -34
  76. package/dist/index-Dgx6nuN5.cjs +0 -1
  77. package/dist/rules/core.cjs +0 -1
  78. package/dist/rules/core.js +0 -101
  79. package/dist/rules/cspell.cjs +0 -1
  80. package/dist/rules/cspell.js +0 -10
  81. package/dist/rules/importRules.cjs +0 -1
  82. package/dist/rules/importRules.js +0 -33
  83. package/dist/rules/jsdoc.cjs +0 -1
  84. package/dist/rules/jsdoc.js +0 -74
  85. package/dist/rules/stylistic.cjs +0 -1
  86. package/dist/rules/stylistic.js +0 -182
  87. package/dist/rules/vue.cjs +0 -1
  88. package/dist/rules/vue2.cjs +0 -1
@@ -0,0 +1,419 @@
1
+ import { dirname as s } from "node:path";
2
+ import { fileURLToPath as o } from "node:url";
3
+ import t from "@cspell/eslint-plugin/recommended";
4
+ import { FlatCompat as n } from "@eslint/eslintrc";
5
+ import i from "@eslint/js";
6
+ import { merge as r, mergeAll as a } from "./main.js";
7
+ const l = new n({
8
+ baseDirectory: s(o(import.meta.url))
9
+ });
10
+ function g(e = []) {
11
+ return r(i.configs.recommended, t, e && a(l.plugins(...e)));
12
+ }
13
+ function w() {
14
+ return r({
15
+ languageOptions: {
16
+ ecmaVersion: 2022,
17
+ parserOptions: {
18
+ ecmaVersion: 2022
19
+ }
20
+ },
21
+ rules: {
22
+ "jsdoc/require-param": "off",
23
+ "jsdoc/require-jsdoc": "off",
24
+ "jsdoc/require-returns": "off",
25
+ "jsdoc/require-param-type": "off",
26
+ "jsdoc/check-param-names": "off"
27
+ }
28
+ });
29
+ }
30
+ const c = {
31
+ // https://eslint.style/rules/js/function-call-spacing
32
+ "no-spaced-func": "off"
33
+ }, b = {
34
+ rules: {
35
+ ...c,
36
+ "arrow-parens": "off",
37
+ camelcase: ["error", {
38
+ allow: ["^\\$_"]
39
+ }],
40
+ "class-methods-use-this": "off",
41
+ "comma-dangle": "off",
42
+ "consistent-return": ["error"],
43
+ curly: ["error", "all"],
44
+ "dot-notation": ["error"],
45
+ "function-paren-newline": "off",
46
+ "guard-for-in": "error",
47
+ "handle-callback-err": ["error"],
48
+ indent: "off",
49
+ "max-len": "off",
50
+ "new-cap": ["error"],
51
+ "no-alert": ["error"],
52
+ "no-bitwise": ["error", {
53
+ allow: ["~"]
54
+ }],
55
+ "no-caller": ["error"],
56
+ "no-case-declarations": ["error"],
57
+ "no-confusing-arrow": ["error", {
58
+ allowParens: !0
59
+ }],
60
+ "no-console": ["error"],
61
+ "no-debugger": ["error"],
62
+ "no-div-regex": ["error"],
63
+ "no-dupe-args": ["error"],
64
+ "no-dupe-keys": ["error"],
65
+ "no-duplicate-case": ["error"],
66
+ "no-else-return": ["error"],
67
+ "no-empty": ["error"],
68
+ "no-extra-bind": ["error"],
69
+ "no-extra-boolean-cast": "error",
70
+ "no-fallthrough": ["error"],
71
+ "no-implicit-coercion": ["error", {
72
+ boolean: !0,
73
+ number: !0,
74
+ string: !0
75
+ }],
76
+ "implicit-arrow-linebreak": "off",
77
+ "no-invalid-regexp": ["error"],
78
+ "no-iterator": ["error"],
79
+ "no-mixed-operators": "off",
80
+ "no-multi-spaces": "off",
81
+ "no-multi-str": ["error"],
82
+ "no-multiple-empty-lines": "off",
83
+ "no-native-reassign": "error",
84
+ "no-nested-ternary": ["error"],
85
+ "no-new": "off",
86
+ "no-new-object": ["error"],
87
+ "no-new-require": ["error"],
88
+ "no-param-reassign": ["error", {
89
+ props: !1
90
+ }],
91
+ "no-plusplus": "off",
92
+ "no-process-exit": ["error"],
93
+ "no-promise-executor-return": ["error", {
94
+ allowVoid: !0
95
+ }],
96
+ "no-return-assign": ["error", "except-parens"],
97
+ "no-self-compare": ["error"],
98
+ "no-sequences": ["error"],
99
+ "no-shadow": ["error", {
100
+ allow: ["state"]
101
+ }],
102
+ "no-undef": ["error"],
103
+ "no-underscore-dangle": "off",
104
+ "no-unexpected-multiline": ["error"],
105
+ "no-unreachable": ["error"],
106
+ "no-unused-vars": ["error"],
107
+ "no-use-before-define": "error",
108
+ "no-useless-call": ["error"],
109
+ "no-void": "off",
110
+ "no-with": ["error"],
111
+ "object-curly-newline": "off",
112
+ "object-shorthand": ["error", "always"],
113
+ "padded-blocks": "off",
114
+ "prefer-const": ["error", {
115
+ destructuring: "all"
116
+ }],
117
+ "prefer-destructuring": ["error"],
118
+ radix: ["error", "as-needed"],
119
+ semi: "off",
120
+ "space-before-function-paren": "off",
121
+ "space-in-parens": "off",
122
+ strict: ["error", "never"],
123
+ "use-isnan": ["error"],
124
+ "valid-typeof": ["error"],
125
+ "no-trailing-spaces": "off"
126
+ }
127
+ }, x = {
128
+ rules: {
129
+ "@cspell/spellchecker": ["error", {
130
+ customWordListFile: "./cspell.json"
131
+ }]
132
+ }
133
+ }, v = {
134
+ rules: {
135
+ "import-x/extensions": ["error", {
136
+ css: "always",
137
+ js: "never",
138
+ json: "always",
139
+ jsx: "never",
140
+ sass: "always",
141
+ scss: "always",
142
+ svg: "always",
143
+ ts: "never",
144
+ tsx: "never",
145
+ vue: "always"
146
+ }],
147
+ "import-x/no-cycle": "off",
148
+ "import-x/no-unresolved": "off",
149
+ "import-x/order": ["error", {
150
+ alphabetize: {
151
+ caseInsensitive: !0,
152
+ order: "asc"
153
+ },
154
+ groups: ["index", "builtin", "object", "type", "external", "parent", "internal", "sibling"],
155
+ pathGroups: [{
156
+ group: "internal",
157
+ pattern: "@/**"
158
+ }]
159
+ }],
160
+ "import-x/prefer-default-export": "off"
161
+ }
162
+ }, j = {
163
+ rules: {
164
+ "jsdoc/check-param-names": ["error"],
165
+ "jsdoc/check-tag-names": ["error"],
166
+ "jsdoc/no-undefined-types": "off",
167
+ "jsdoc/require-param": ["error", {
168
+ enableRestElementFixer: !1,
169
+ enableRootFixer: !1
170
+ }],
171
+ "jsdoc/require-jsdoc": ["off"],
172
+ "jsdoc/require-param-description": "off",
173
+ "jsdoc/require-param-type": ["error"],
174
+ "jsdoc/require-property-description": "off",
175
+ "jsdoc/require-returns": ["error", {
176
+ contexts: ["TSInterfaceDeclaration", "TSMethodSignature"],
177
+ forceRequireReturn: !0,
178
+ exemptedBy: ["inheritdoc", "watch"]
179
+ }],
180
+ "jsdoc/require-returns-check": ["error"],
181
+ "jsdoc/require-returns-description": "off",
182
+ "jsdoc/tag-lines": ["error"],
183
+ "jsdoc/valid-types": "off",
184
+ "jsdoc/check-types": ["error"],
185
+ "jsdoc/no-multi-asterisks": ["error"],
186
+ "jsdoc/check-alignment": ["error"],
187
+ "jsdoc/sort-tags": ["error", {
188
+ linesBetween: 1,
189
+ tagSequence: [{
190
+ tags: [
191
+ "todo",
192
+ "description",
193
+ "deprecated",
194
+ "namespace",
195
+ "private",
196
+ "protected",
197
+ "public",
198
+ "static",
199
+ "readonly",
200
+ "since",
201
+ "access",
202
+ "template",
203
+ "typedef",
204
+ "class",
205
+ "augments",
206
+ "mixes",
207
+ "extends",
208
+ "interface",
209
+ "this",
210
+ "constructor",
211
+ "alias",
212
+ "memberof",
213
+ "example",
214
+ "use",
215
+ "see",
216
+ "link",
217
+ "global",
218
+ "fires",
219
+ "listens",
220
+ "type",
221
+ "param",
222
+ "property",
223
+ "yields",
224
+ "returns",
225
+ "lends",
226
+ "override",
227
+ "todo"
228
+ ]
229
+ }]
230
+ }]
231
+ }
232
+ }, k = {
233
+ rules: {
234
+ "@stylistic/array-bracket-newline": ["error", "consistent"],
235
+ "@stylistic/array-bracket-spacing": ["error", "never"],
236
+ "@stylistic/array-element-newline": ["error", "consistent"],
237
+ "@stylistic/arrow-parens": ["error", "as-needed"],
238
+ "@stylistic/arrow-spacing": ["error"],
239
+ "@stylistic/brace-style": ["error", "1tbs"],
240
+ "@stylistic/comma-dangle": ["error", {
241
+ arrays: "always-multiline",
242
+ exports: "always-multiline",
243
+ functions: "never",
244
+ imports: "always-multiline",
245
+ objects: "always-multiline",
246
+ enums: "always-multiline",
247
+ generics: "always-multiline",
248
+ tuples: "always-multiline"
249
+ }],
250
+ "@stylistic/comma-spacing": ["error"],
251
+ "@stylistic/computed-property-spacing": ["error"],
252
+ "@stylistic/dot-location": ["error", "property"],
253
+ "@stylistic/eol-last": ["error", "always"],
254
+ "@stylistic/function-call-argument-newline": ["error", "consistent"],
255
+ "@stylistic/function-call-spacing": ["error", "never"],
256
+ "@stylistic/function-paren-newline": ["error", "consistent"],
257
+ "@stylistic/implicit-arrow-linebreak": ["error", "beside"],
258
+ "@stylistic/indent": ["error", 4, {
259
+ SwitchCase: 1,
260
+ ignoredNodes: [
261
+ "PropertyDefinition[decorators]",
262
+ "TSUnionType"
263
+ ]
264
+ }],
265
+ "@stylistic/key-spacing": ["error"],
266
+ "@stylistic/keyword-spacing": ["error"],
267
+ "@stylistic/linebreak-style": ["error", "unix"],
268
+ "@stylistic/lines-between-class-members": ["error", "always", {
269
+ exceptAfterSingleLine: !0
270
+ }],
271
+ "@stylistic/max-len": ["error", 120, {
272
+ ignoreComments: !0,
273
+ ignoreRegExpLiterals: !0,
274
+ ignoreTrailingComments: !0,
275
+ ignoreUrls: !0
276
+ }],
277
+ "@stylistic/max-statements-per-line": ["error", {
278
+ max: 2
279
+ }],
280
+ "@stylistic/member-delimiter-style": ["error", {
281
+ multiline: {
282
+ requireLast: !0
283
+ },
284
+ singleline: {
285
+ requireLast: !1
286
+ }
287
+ }],
288
+ "@stylistic/multiline-ternary": ["error", "always-multiline"],
289
+ "@stylistic/new-parens": ["error", "always"],
290
+ "@stylistic/no-extra-parens": ["error", "all", {
291
+ allowParensAfterCommentPattern: "@type|@satisfies",
292
+ enforceForArrowConditionals: !1,
293
+ nestedBinaryExpressions: !1,
294
+ returnAssign: !1
295
+ }],
296
+ "@stylistic/no-extra-semi": ["error"],
297
+ "@stylistic/no-floating-decimal": "error",
298
+ "@stylistic/no-mixed-operators": ["error", {
299
+ allowSamePrecedence: !0,
300
+ groups: [
301
+ ["&", "|", "^", "~", "<<", ">>", ">>>"],
302
+ ["==", "!=", "===", "!==", ">", ">=", "<", "<="],
303
+ ["&&", "||"],
304
+ ["in", "instanceof"]
305
+ ]
306
+ }],
307
+ "@stylistic/no-mixed-spaces-and-tabs": ["error"],
308
+ "@stylistic/no-multi-spaces": ["error"],
309
+ "@stylistic/no-multiple-empty-lines": ["error", {
310
+ max: 1,
311
+ maxEOF: 0,
312
+ maxBOF: 0
313
+ }],
314
+ "@stylistic/no-trailing-spaces": ["error"],
315
+ "@stylistic/no-whitespace-before-property": ["error"],
316
+ "@stylistic/object-curly-newline": ["error", {
317
+ consistent: !0
318
+ }],
319
+ "@stylistic/object-curly-spacing": ["error", "always"],
320
+ "@stylistic/padded-blocks": ["error", "never"],
321
+ "@stylistic/quote-props": ["error", "as-needed"],
322
+ "@stylistic/quotes": ["error", "single", {
323
+ avoidEscape: !0
324
+ }],
325
+ "@stylistic/rest-spread-spacing": ["error", "never"],
326
+ "@stylistic/semi": ["error"],
327
+ "@stylistic/semi-spacing": ["error", {
328
+ after: !0,
329
+ before: !1
330
+ }],
331
+ "@stylistic/semi-style": ["error", "last"],
332
+ "@stylistic/space-before-blocks": ["error"],
333
+ "@stylistic/space-before-function-paren": ["error", {
334
+ anonymous: "always",
335
+ named: "always"
336
+ }],
337
+ "@stylistic/space-in-parens": ["error", "never"],
338
+ "@stylistic/space-infix-ops": ["error"],
339
+ "@stylistic/spaced-comment": ["error", "always", {
340
+ markers: ["/"]
341
+ }],
342
+ "@stylistic/template-curly-spacing": ["error", "never"],
343
+ "@stylistic/template-tag-spacing": ["error", "never"],
344
+ "@stylistic/type-annotation-spacing": ["error"],
345
+ "@stylistic/type-generic-spacing": ["error"],
346
+ "@stylistic/padding-line-between-statements": [
347
+ "error",
348
+ {
349
+ blankLine: "always",
350
+ next: "*",
351
+ prev: ["const", "let", "var", "if", "block-like", "directive"]
352
+ },
353
+ {
354
+ blankLine: "always",
355
+ next: [
356
+ "const",
357
+ "let",
358
+ "var",
359
+ "if",
360
+ "while",
361
+ "directive",
362
+ "throw",
363
+ "return",
364
+ "break",
365
+ "default",
366
+ "cjs-export",
367
+ "export",
368
+ "continue",
369
+ "iife"
370
+ ],
371
+ prev: "*"
372
+ },
373
+ {
374
+ blankLine: "always",
375
+ prev: ["*"],
376
+ next: ["cjs-export", "export"]
377
+ },
378
+ {
379
+ blankLine: "any",
380
+ next: ["const", "let", "var", "directive"],
381
+ prev: ["const", "let", "var", "directive"]
382
+ },
383
+ {
384
+ blankLine: "never",
385
+ next: ["singleline-const", "singleline-let", "singleline-var"],
386
+ prev: ["singleline-const", "singleline-let", "singleline-var"]
387
+ },
388
+ {
389
+ blankLine: "always",
390
+ next: ["multiline-block-like"],
391
+ prev: ["*"]
392
+ },
393
+ {
394
+ blankLine: "always",
395
+ next: ["*"],
396
+ prev: ["multiline-block-like"]
397
+ },
398
+ {
399
+ blankLine: "any",
400
+ next: ["case"],
401
+ prev: ["case"]
402
+ },
403
+ {
404
+ blankLine: "any",
405
+ next: ["singleline-const", "singleline-let", "singleline-var"],
406
+ prev: ["cjs-import"]
407
+ }
408
+ ]
409
+ }
410
+ };
411
+ export {
412
+ x as a,
413
+ w as b,
414
+ b as c,
415
+ v as i,
416
+ j,
417
+ g as p,
418
+ k as s
419
+ };
@@ -1 +1 @@
1
- "use strict";const e={indent:"off","no-undef":"off","no-shadow":"off","@typescript-eslint/comma-dangle":"off","no-extra-parens":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/space-before-function-paren":"off","no-unused-vars":"off","no-useless-constructor":"off","@typescript-eslint/indent":"off",semi:"off","@typescript-eslint/semi":"off","react/jsx-filename-extension":"off","no-use-before-define":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/object-curly-spacing":"off","no-redeclare":"off","@typescript-eslint/func-call-spacing":"off"},s={rules:{...e,"@typescript-eslint/no-shadow":"error","@typescript-eslint/no-unused-vars":["error"],"@typescript-eslint/no-useless-constructor":["error"],"@typescript-eslint/array-type":["error",{default:"array",readonly:"array"}],"@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{arguments:!1}}],"@typescript-eslint/no-use-before-define":["error"],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"inline-type-imports",disallowTypeAnnotations:!1}],"@typescript-eslint/naming-convention":["error",{selector:["typeLike"],format:["PascalCase"],custom:{regex:"^(I|T|E|G|C)[A-Z][a-z]",match:!1}}]}};module.exports=s;
1
+ "use strict";const e={indent:"off","no-undef":"off","no-shadow":"off","@typescript-eslint/comma-dangle":"off","no-extra-parens":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/space-before-function-paren":"off","no-unused-vars":"off","no-useless-constructor":"off","@typescript-eslint/indent":"off",semi:"off","@typescript-eslint/semi":"off","react/jsx-filename-extension":"off","no-use-before-define":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/object-curly-spacing":"off","no-redeclare":"off","@typescript-eslint/func-call-spacing":"off"},s={rules:{...e,"@typescript-eslint/no-shadow":"error","@typescript-eslint/no-unused-vars":["error"],"@typescript-eslint/no-useless-constructor":["error"],"@typescript-eslint/array-type":["error",{default:"array",readonly:"array"}],"@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{arguments:!1}}],"@typescript-eslint/no-use-before-define":["error"],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"inline-type-imports",disallowTypeAnnotations:!1}],"@typescript-eslint/naming-convention":["error",{selector:["typeLike"],format:["PascalCase"],custom:{regex:"^(I|T|E|G|C)[A-Z][a-z]",match:!1}}]}};exports.typescript=s;
@@ -46,5 +46,5 @@ const e = {
46
46
  }
47
47
  };
48
48
  export {
49
- s as default
49
+ s as t
50
50
  };
@@ -1,7 +1,7 @@
1
1
  import { FlatCompat } from '@eslint/eslintrc';
2
2
  export declare const compat: {
3
- extends: (...configsToExtend: Parameters<FlatCompat["extends"]>) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
4
- config: (eslintrcConfig: Parameters<FlatCompat["config"]>[0]) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
5
- plugins: (...plugins: Parameters<FlatCompat["plugins"]>) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
6
- env: (envConfig: Parameters<FlatCompat["env"]>[0]) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
3
+ extends: (...configsToExtend: Parameters<FlatCompat["extends"]>) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
4
+ config: (eslintrcConfig: Parameters<FlatCompat["config"]>[0]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
5
+ plugins: (...plugins: Parameters<FlatCompat["plugins"]>) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
6
+ env: (envConfig: Parameters<FlatCompat["env"]>[0]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
7
7
  };
@@ -1,2 +1,2 @@
1
1
  import type { Linter } from 'eslint';
2
- export declare function mergeAll(...configs: Linter.FlatConfig[][]): Linter.FlatConfig<Linter.RulesRecord>;
2
+ export declare function mergeAll(...configs: Linter.Config[][]): Linter.Config<Linter.RulesRecord>;
@@ -45,7 +45,7 @@ const e = {
45
45
  "transition"
46
46
  ]
47
47
  }],
48
- "vue/component-tags-order": ["error", {
48
+ "vue/block-order": ["error", {
49
49
  order: [
50
50
  "script[setup]",
51
51
  "template",
@@ -195,7 +195,7 @@ const e = {
195
195
  }],
196
196
  "vue/require-explicit-emits": ["error"],
197
197
  "vue/no-required-prop-with-default": ["error"],
198
- "vue/no-ref-object-destructure": ["error"],
198
+ "vue/no-ref-object-reactivity-loss": ["error"],
199
199
  "vue/no-template-target-blank": ["error"],
200
200
  "vue/define-emits-declaration": ["error", "type-based"],
201
201
  "vue/define-props-declaration": ["error", "type-based"],
@@ -203,5 +203,5 @@ const e = {
203
203
  }
204
204
  };
205
205
  export {
206
- e as default
206
+ e as v
207
207
  };
@@ -0,0 +1 @@
1
+ "use strict";const e={rules:{"vue/array-bracket-newline":["error"],"vue/array-bracket-spacing":["error","never"],"vue/array-element-newline":["error","consistent"],"vue/arrow-spacing":["error"],"vue/attribute-hyphenation":["error","always"],"vue/attributes-order":["error",{alphabetical:!0,order:["LIST_RENDERING","CONDITIONALS","DEFINITION","RENDER_MODIFIERS","GLOBAL","UNIQUE","SLOT","ATTR_SHORTHAND_BOOL","ATTR_STATIC","ATTR_DYNAMIC","TWO_WAY_BINDING","OTHER_DIRECTIVES","CONTENT","EVENTS"]}],"vue/brace-style":["error","1tbs"],"vue/camelcase":["error",{allow:["^\\$_"]}],"vue/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline"}],"vue/comma-spacing":["error"],"vue/comma-style":["error","last"],"vue/component-definition-name-casing":["error","PascalCase"],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1,ignores:["component","transition"]}],"vue/block-order":["error",{order:["script[setup]","template","script:not([setup])","style"]}],"vue/dot-location":["error"],"vue/dot-notation":["error"],"vue/eqeqeq":["error"],"vue/func-call-spacing":["error"],"vue/html-closing-bracket-newline":["error",{singleline:"never",multiline:"always",selfClosingTag:{singleline:"never",multiline:"always"}}],"vue/html-end-tags":["error"],"vue/html-indent":["error",4],"vue/html-quotes":["error","double"],"vue/html-self-closing":["error"],"vue/html-closing-bracket-spacing":["error"],"vue/key-spacing":["error"],"vue/keyword-spacing":["error"],"vue/max-attributes-per-line":["error",{multiline:{max:1},singleline:1}],"vue/max-len":["error",120,{ignoreComments:!0,ignoreRegExpLiterals:!0,ignoreTemplateLiterals:!0,ignoreTrailingComments:!0,ignoreUrls:!0}],"vue/multi-word-component-names":"off","vue/multiline-ternary":["error","always-multiline"],"vue/mustache-interpolation-spacing":["error","always"],"vue/no-bare-strings-in-template":["error",{attributes:{"/.+/":["title","aria-label","aria-placeholder","aria-roledescription","aria-valuetext","description","placeholder","text","label","alt"]},directives:["v-text"]}],"vue/no-console":["error"],"vue/no-constant-condition":["error"],"vue/no-empty-component-block":["error"],"vue/no-empty-pattern":["error"],"vue/no-extra-parens":["error","all",{allowParensAfterCommentPattern:"@type",enforceForArrowConditionals:!1,nestedBinaryExpressions:!1,returnAssign:!1}],"vue/no-irregular-whitespace":["error"],"vue/no-multi-spaces":["error"],"vue/no-multiple-objects-in-class":["error"],"vue/no-potential-component-option-typo":["error"],"vue/no-reserved-component-names":["error"],"vue/no-restricted-syntax":["error"],"vue/no-spaces-around-equal-signs-in-attribute":["error"],"vue/no-sparse-arrays":["error"],"vue/no-undef-components":["error"],"vue/no-unsupported-features":["error"],"vue/no-unused-properties":["error"],"vue/no-unused-refs":["error"],"vue/no-use-computed-property-like-method":["error"],"vue/no-use-v-if-with-v-for":"error","vue/no-useless-concat":["error"],"vue/no-useless-mustaches":["error"],"vue/no-useless-v-bind":["error"],"vue/no-v-text":["error"],"vue/object-curly-newline":["error",{consistent:!0}],"vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"vue/object-shorthand":["error","always"],"vue/order-in-components":["error",{order:["el","name","parent","functional",["delimiters","comments"],["components","directives","filters"],"extends","mixins","inheritAttrs","model",["props","propsData"],"data","computed","watch","LIFECYCLE_HOOKS","methods",["template","render"],"renderError"]}],"vue/padding-line-between-blocks":["error"],"vue/prefer-separate-static-class":["error"],"vue/prefer-template":["error"],"vue/prefer-true-attribute-shorthand":["error"],"vue/prop-name-casing":["error","camelCase"],"vue/quote-props":["error","as-needed"],"vue/require-default-prop":["error"],"vue/require-prop-type-constructor":"error","vue/require-prop-types":["error"],"@stylistic/indent":"off","vue/script-indent":["error",4,{switchCase:1}],"vue/space-in-parens":["error","never"],"vue/space-infix-ops":["error"],"vue/space-unary-ops":["error"],"vue/template-curly-spacing":["error"],"vue/this-in-template":["error","never"],"vue/v-bind-style":["error","shorthand"],"vue/v-on-function-call":"off","vue/v-on-style":["error","shorthand"],"vue/v-on-event-hyphenation":"off","vue/no-setup-props-destructure":"off","vue/block-tag-newline":["error",{singleline:"always",multiline:"always"}],"vue/require-explicit-emits":["error"],"vue/no-required-prop-with-default":["error"],"vue/no-ref-object-reactivity-loss":["error"],"vue/no-template-target-blank":["error"],"vue/define-emits-declaration":["error","type-based"],"vue/define-props-declaration":["error","type-based"],"vue-scoped-css/enforce-style-type":["error",{allows:["scoped","module"]}]}};exports.vue=e;
@@ -1,12 +1,17 @@
1
- import e from "./vue.js";
2
- const u = {
1
+ import { v as e } from "./vue-5XWMLJUh.js";
2
+ const s = {
3
3
  rules: {
4
4
  ...e.rules,
5
5
  "vue/require-explicit-emits": "off",
6
6
  "vue/no-unused-refs": "off",
7
7
  "vue/prefer-true-attribute-shorthand": ["error", "never"]
8
8
  }
9
+ }, u = {
10
+ rules: {
11
+ ...e.rules
12
+ }
9
13
  };
10
14
  export {
11
- u as default
15
+ u as a,
16
+ s as v
12
17
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./vue-D2lo_IGG.cjs"),u={rules:{...e.vue.rules,"vue/require-explicit-emits":"off","vue/no-unused-refs":"off","vue/prefer-true-attribute-shorthand":["error","never"]}},r={rules:{...e.vue.rules}};exports.vue2Composition=r;exports.vue2Options=u;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@useinsider/eslint-config",
3
3
  "type": "module",
4
- "version": "1.9.2",
4
+ "version": "1.10.0-beta.2",
5
5
  "description": "A collection of ESLint configurations provided by @useinsider, offering support for various environments including Vanilla JS, TypeScript, and framework-specific setups such as Vue 3.",
6
6
  "keywords": [
7
7
  "useinsider",
@@ -50,10 +50,6 @@
50
50
  "types": "./dist/main.d.ts",
51
51
  "import": "./dist/main.js",
52
52
  "require": "./dist/main.cjs"
53
- },
54
- "./rules/*": {
55
- "import": "./dist/rules/*.js",
56
- "require": "./dist/rules/*.cjs"
57
53
  }
58
54
  },
59
55
  "files": [
@@ -64,57 +60,54 @@
64
60
  "pnpm": ">=9"
65
61
  },
66
62
  "dependencies": {
67
- "@antfu/install-pkg": "1.0.0",
68
- "@cspell/eslint-plugin": "8.17.5",
69
- "@eslint/eslintrc": "3.3.0",
70
- "@eslint/js": "8.57.1",
63
+ "@antfu/install-pkg": "1.1.0",
64
+ "@cspell/eslint-plugin": "9.1.1",
65
+ "@eslint/compat": "1.3.0",
66
+ "@eslint/eslintrc": "3.3.1",
67
+ "@eslint/js": "9.29.0",
71
68
  "@stylistic/eslint-plugin": "3.1.0",
72
- "@stylistic/eslint-plugin-migrate": "3.1.0",
73
- "@types/eslint": "8.56.12",
74
- "@types/eslint__eslintrc": "2.1.2",
75
- "@types/eslint__js": "8.42.3",
76
- "@typescript-eslint/eslint-plugin": "7.18.0",
77
- "@typescript-eslint/parser": "7.18.0",
78
- "eslint": "8.57.1",
79
- "eslint-config-airbnb-base": "15.0.0",
80
- "eslint-config-airbnb-typescript": "18.0.0",
81
- "eslint-import-resolver-typescript": "3.8.3",
82
- "eslint-plugin-import": "2.31.0",
83
- "eslint-plugin-jsdoc": "50.5.0",
84
- "globals": "16.0.0",
69
+ "@types/eslint": "9.6.1",
70
+ "@typescript-eslint/eslint-plugin": "8.34.1",
71
+ "@typescript-eslint/parser": "8.34.1",
72
+ "eslint": "9.29.0",
73
+ "eslint-config-airbnb-extended": "2.1.0",
74
+ "eslint-import-resolver-typescript": "4.4.3",
75
+ "eslint-plugin-import-x": "4.15.2",
76
+ "eslint-plugin-jsdoc": "51.0.3",
77
+ "globals": "16.2.0",
85
78
  "ts-deepmerge": "7.0.2",
86
- "typescript": "5.5.4",
87
- "typescript-eslint": "8.26.0"
79
+ "typescript": "5.8.3",
80
+ "typescript-eslint": "8.34.1"
88
81
  },
89
82
  "devDependencies": {
90
- "@rollup/plugin-typescript": "12.1.2",
83
+ "@rollup/plugin-typescript": "12.1.3",
91
84
  "@semantic-release/changelog": "6.0.3",
92
85
  "@semantic-release/git": "10.0.1",
93
86
  "@types/fs-extra": "11.0.4",
94
- "@types/node": "22.13.9",
87
+ "@types/node": "24.0.3",
95
88
  "@useinsider/release-config": "workspace:*",
96
- "@vitest/coverage-v8": "3.0.8",
97
- "@vue/eslint-config-typescript": "13.0.0",
98
- "eslint-plugin-jest": "28.11.0",
99
- "eslint-plugin-vue": "9.33.0",
100
- "eslint-plugin-vue-scoped-css": "2.9.0",
89
+ "@vitest/coverage-v8": "3.2.4",
90
+ "@vue/eslint-config-typescript": "14.5.1",
91
+ "eslint-plugin-jest": "29.0.1",
92
+ "eslint-plugin-vue": "10.2.0",
93
+ "eslint-plugin-vue-scoped-css": "2.10.0",
101
94
  "fs-extra": "11.3.0",
102
95
  "rollup-plugin-typescript-paths": "1.5.0",
103
- "rollup-plugin-visualizer": "5.14.0",
96
+ "rollup-plugin-visualizer": "6.0.3",
104
97
  "semantic-release": "24.2.3",
105
98
  "semantic-release-monorepo": "8.0.2",
106
99
  "tslib": "2.8.1",
107
100
  "vite": "6.3.5",
108
101
  "vite-tsconfig-paths": "5.1.4",
109
- "vitest": "3.0.8",
110
- "vue": "3.5.13",
111
- "vue-eslint-parser": "10.1.1"
102
+ "vitest": "3.2.4",
103
+ "vue": "3.5.17",
104
+ "vue-eslint-parser": "10.1.3"
112
105
  },
113
106
  "optionalDependencies": {
114
107
  "@rushstack/eslint-patch": ">=1.10.5",
115
- "@vue/eslint-config-typescript": "13.0.0",
116
- "eslint-plugin-vue": "9.33.0",
117
- "eslint-plugin-vue-scoped-css": "2.9.0",
118
- "vue-eslint-parser": "10.1.1"
108
+ "@vue/eslint-config-typescript": "14.5.1",
109
+ "eslint-plugin-vue": "10.2.0",
110
+ "eslint-plugin-vue-scoped-css": "2.10.0",
111
+ "vue-eslint-parser": "10.1.3"
119
112
  }
120
113
  }
@@ -1 +0,0 @@
1
- "use strict";const t=require("node:path"),n=require("node:url"),i=require("@eslint/eslintrc"),c=require("@eslint/js"),r=require("./main.cjs");var e=typeof document<"u"?document.currentScript:null;const s=new i.FlatCompat({baseDirectory:t.dirname(n.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:e&&e.tagName.toUpperCase()==="SCRIPT"&&e.src||new URL("base-C2fq_o3u.cjs",document.baseURI).href))});function u(o=[]){return r.merge(c.configs.recommended,r.mergeAll(s.plugins("import","@stylistic","@stylistic/migrate","@cspell",...o)))}function a(){return r.merge({languageOptions:{ecmaVersion:2022},rules:{"jsdoc/require-param":"off","jsdoc/require-jsdoc":"off","jsdoc/require-returns":"off","jsdoc/require-param-type":"off","jsdoc/check-param-names":"off"}})}exports.postConfig=a;exports.preConfig=u;