@shayanthenerd/eslint-config 0.31.0 → 0.33.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.
- package/README.md +76 -42
- package/dist/configs/astro.mjs +5 -1
- package/dist/configs/javascript.mjs +1 -1
- package/dist/configs/packageJson.mjs +1 -1
- package/dist/configs/react.mjs +2 -2
- package/dist/configs/tailwind.mjs +7 -1
- package/dist/configs/tanstack.mjs +26 -0
- package/dist/configs/typescript.mjs +4 -6
- package/dist/helpers/ignores/defaultIgnorePatterns.mjs +1 -6
- package/dist/helpers/options/defaultOptions.mjs +19 -3
- package/dist/helpers/options/enableDetectedConfigs.mjs +22 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +3 -35
- package/dist/rules/astro.mjs +61 -54
- package/dist/rules/baseline.mjs +1 -1
- package/dist/rules/css.mjs +35 -7
- package/dist/rules/html.mjs +3 -2
- package/dist/rules/importX.mjs +2 -2
- package/dist/rules/javascript.mjs +6 -5
- package/dist/rules/next.mjs +2 -0
- package/dist/rules/node.mjs +1 -1
- package/dist/rules/packageJson.mjs +166 -153
- package/dist/rules/perfectionist.mjs +41 -11
- package/dist/rules/playwright.mjs +10 -0
- package/dist/rules/react.mjs +57 -54
- package/dist/rules/stylistic.mjs +1 -1
- package/dist/rules/tanstack.mjs +39 -0
- package/dist/rules/typescript.mjs +2 -2
- package/dist/rules/unicorn.mjs +15 -6
- package/dist/rules/vue.mjs +38 -41
- package/dist/rules/zod.mjs +2 -0
- package/dist/types/eslint-schema.d.mts +851 -651
- package/dist/types/index.d.mts +57 -7
- package/dist/types/options/baseline.d.mts +24 -3
- package/dist/types/options/react.d.mts +9 -9
- package/dist/types/options/tanstack.d.mts +32 -0
- package/dist/types/options/typescript.d.mts +3 -3
- package/dist/types/options/vue.d.mts +1 -1
- package/package.json +38 -34
package/dist/types/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import { NuxtOptions } from "./options/nuxt.mjs";
|
|
|
5
5
|
import { ReactOptions } from "./options/react.mjs";
|
|
6
6
|
import { StylisticOptions } from "./options/stylistic.mjs";
|
|
7
7
|
import { TailwindOptions } from "./options/tailwind.mjs";
|
|
8
|
+
import { TanstackOptions } from "./options/tanstack.mjs";
|
|
8
9
|
import { TestOptions } from "./options/test.mjs";
|
|
9
10
|
import { TypescriptOptions } from "./options/typescript.mjs";
|
|
10
11
|
import { VueOptions } from "./options/vue.mjs";
|
|
@@ -242,13 +243,20 @@ interface Options {
|
|
|
242
243
|
*/
|
|
243
244
|
configs?: {
|
|
244
245
|
/**
|
|
245
|
-
* Use [eslint-plugin-astro](https://ota-meshi.github.io/eslint-plugin-astro) and [eslint-plugin-jsx-a11y](https://github.com/
|
|
246
|
+
* Use [eslint-plugin-astro](https://ota-meshi.github.io/eslint-plugin-astro) and [eslint-plugin-jsx-a11y-x](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x) to enforce Astro best practices and accessibility guidelines.
|
|
246
247
|
*
|
|
247
248
|
* @default false // `true` if "astro" is detected in the dependencies when `autoDetectDeps` is enabled
|
|
248
249
|
*/
|
|
249
|
-
astro?: boolean | ConfigWithOverrides<PluginRules<'astro'
|
|
250
|
+
astro?: boolean | ConfigWithOverrides<PluginRules<'astro'>> & {
|
|
251
|
+
/**
|
|
252
|
+
* Use [eslint-plugin-jsx-a11y-x](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x) to enforce accessibility standards in Astro components.
|
|
253
|
+
*
|
|
254
|
+
* @default false // `true` if both "astro" and "eslint-plugin-jsx-a11y-x" are detected in the dependencies when `autoDetectDeps` is enabled
|
|
255
|
+
*/
|
|
256
|
+
accessibility?: boolean;
|
|
257
|
+
};
|
|
250
258
|
/**
|
|
251
|
-
* Use [eslint-plugin-baseline-js](https://github.com/3ru/eslint-plugin-baseline-js), [css/use-baseline](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#options), [@html-eslint/use-baseline](https://html-eslint.org/docs/rules/use-baseline#options), and [@html-eslint/react/use-baseline](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#options) to enforce the use of baseline features.
|
|
259
|
+
* Use [eslint-plugin-baseline-js](https://github.com/3ru/eslint-plugin-baseline-js), [css/use-baseline](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#options), [@html-eslint/use-baseline](https://html-eslint.org/docs/rules/use-baseline#options), and [@html-eslint/react/use-baseline](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#options) to enforce the use of browser baseline features.
|
|
252
260
|
*
|
|
253
261
|
* @default true // `false` if `env` is set to a value other than `'browser'`
|
|
254
262
|
*/
|
|
@@ -277,11 +285,30 @@ interface Options {
|
|
|
277
285
|
maxNestedCallbacks?: Exclude<RuleOptions<'max-nested-callbacks'>, Record<string, unknown>>;
|
|
278
286
|
};
|
|
279
287
|
/**
|
|
280
|
-
* Use [@eslint/css](https://github.com/eslint/css) to enforce CSS best practices and identify mistakes.
|
|
288
|
+
* Use [@eslint/css](https://github.com/eslint/css) and [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)'s CSS rules to enforce CSS best practices and identify mistakes.
|
|
281
289
|
*
|
|
282
290
|
* @default false
|
|
283
291
|
*/
|
|
284
|
-
css?: boolean | ConfigWithOverrides<PluginRules<'css'
|
|
292
|
+
css?: boolean | ConfigWithOverrides<PluginRules<'css'>> & {
|
|
293
|
+
/**
|
|
294
|
+
* Non-standard, vendor-prefixed, and/or framework-specific pseudo-selectors.
|
|
295
|
+
*
|
|
296
|
+
* New items extend the defaults instead of overriding them.
|
|
297
|
+
*
|
|
298
|
+
* @default
|
|
299
|
+
* [
|
|
300
|
+
* '::-ms-reveal',
|
|
301
|
+
* ':-webkit-autofill',
|
|
302
|
+
* '::-webkit-inner-spin-button',
|
|
303
|
+
* '::-webkit-search-cancel-button',
|
|
304
|
+
* '::-webkit-search-results-button',
|
|
305
|
+
* ':deep', ':global', ':slotted' // If Vue integration is enabled
|
|
306
|
+
* ]
|
|
307
|
+
*
|
|
308
|
+
* @see [unicorn/no-unknown-pseudo-selectors: `allow` option](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unknown-pseudo-selectors.md#allow)
|
|
309
|
+
*/
|
|
310
|
+
allowedUnknownPseudoSelectors?: RuleOptions<'unicorn/no-unknown-pseudo-selectors'>['allow'];
|
|
311
|
+
};
|
|
285
312
|
/**
|
|
286
313
|
* Use [@html-eslint/eslint-plugin](https://html-eslint.org) to enforce SEO and accessibility best practices, as well as some stylistic rules.
|
|
287
314
|
*
|
|
@@ -336,7 +363,24 @@ interface Options {
|
|
|
336
363
|
*
|
|
337
364
|
* @default true
|
|
338
365
|
*/
|
|
339
|
-
packageJson?: boolean | ConfigWithOverrides<PluginRules<'package-json'
|
|
366
|
+
packageJson?: boolean | ConfigWithOverrides<PluginRules<'package-json'>> & {
|
|
367
|
+
/**
|
|
368
|
+
* The allowed [NPM distribution tags](https://docs.npmjs.com/adding-dist-tags-to-packages).
|
|
369
|
+
*
|
|
370
|
+
* @default []
|
|
371
|
+
*
|
|
372
|
+
* @see [package-json/restrict-dist-tags: `allowed` option](https://eslint-plugin-package-json.dev/rules/restrict-dist-tags/#allowed)
|
|
373
|
+
*/
|
|
374
|
+
allowedDistTags?: RuleOptions<'package-json/restrict-dist-tags'>['allowed'];
|
|
375
|
+
/**
|
|
376
|
+
* The dependencies for which the [NPM distribution tags](https://docs.npmjs.com/adding-dist-tags-to-packages) are allowed.
|
|
377
|
+
*
|
|
378
|
+
* @default []
|
|
379
|
+
*
|
|
380
|
+
* @see [package-json/restrict-dist-tags: `allowedFor` option](https://eslint-plugin-package-json.dev/rules/restrict-dist-tags/#allowedfor)
|
|
381
|
+
*/
|
|
382
|
+
allowedDistTagsFor?: RuleOptions<'package-json/restrict-dist-tags'>['allowedFor'];
|
|
383
|
+
};
|
|
340
384
|
/**
|
|
341
385
|
* Use [eslint-plugin-perfectionist](https://perfectionist.dev) to sort imports, exports, maps, union types, etc.
|
|
342
386
|
*
|
|
@@ -361,7 +405,7 @@ interface Options {
|
|
|
361
405
|
*/
|
|
362
406
|
promise?: boolean | ConfigWithOverrides<PluginRules<'promise'>>;
|
|
363
407
|
/**
|
|
364
|
-
* Use [@eslint-react/eslint-plugin](https://eslint-react.xyz), [eslint-plugin-jsx-a11y](https://github.com/
|
|
408
|
+
* Use [@eslint-react/eslint-plugin](https://eslint-react.xyz), [eslint-plugin-jsx-a11y-x](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x), and [@html-eslint/eslint-plugin-react](https://html-eslint.org/docs/react/getting-started) to enforce React best practices and accessibility guidelines.
|
|
365
409
|
*
|
|
366
410
|
* @default false // `true` if "react" is detected in the dependencies when `autoDetectDeps` is enabled
|
|
367
411
|
*/
|
|
@@ -378,6 +422,12 @@ interface Options {
|
|
|
378
422
|
* @default false
|
|
379
423
|
*/
|
|
380
424
|
tailwind?: false | TailwindOptions;
|
|
425
|
+
/**
|
|
426
|
+
* Use [@tanstack/eslint-plugin-start](https://tanstack.com/start/latest/docs/eslint/eslint-plugin-start), [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query), and [@tanstack/eslint-plugin-router](https://tanstack.com/router/latest/docs/eslint/eslint-plugin-router) to enforce best practices and avoid common mistakes when using TanStack Start, TanStack Router, and TanStack Query.
|
|
427
|
+
*
|
|
428
|
+
* @default false // `true` if either of "@tanstack/react-start", "@tanstack/react-query", or "@tanstack/react-router" are detected in the dependencies when `autoDetectDeps` is enabled
|
|
429
|
+
*/
|
|
430
|
+
tanstack?: boolean | TanstackOptions;
|
|
381
431
|
/**
|
|
382
432
|
* Configuration options for the testing tools.
|
|
383
433
|
*/
|
|
@@ -23,6 +23,8 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
23
23
|
/**
|
|
24
24
|
* At-rules that are allowed to be used regardless of the baseline.
|
|
25
25
|
*
|
|
26
|
+
* New items extend the defaults instead of overriding them.
|
|
27
|
+
*
|
|
26
28
|
* @default []
|
|
27
29
|
*
|
|
28
30
|
* @see [css/use-baseline: `allowedAtRules` option](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#allowatrules)
|
|
@@ -31,6 +33,8 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
31
33
|
/**
|
|
32
34
|
* Functions that are allowed to be used regardless of the baseline.
|
|
33
35
|
*
|
|
36
|
+
* New items extend the defaults instead of overriding them.
|
|
37
|
+
*
|
|
34
38
|
* @default []
|
|
35
39
|
*
|
|
36
40
|
* @see [css/use-baseline: `allowedFunctions` option](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#allowfunctions)
|
|
@@ -39,6 +43,8 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
39
43
|
/**
|
|
40
44
|
* Media conditions inside `@media` that are allowed to be used regardless of the baseline.
|
|
41
45
|
*
|
|
46
|
+
* New items extend the defaults instead of overriding them.
|
|
47
|
+
*
|
|
42
48
|
* @default []
|
|
43
49
|
*
|
|
44
50
|
* @see [css/use-baseline: `allowedMediaConditions` option](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#allowmediaconditions)
|
|
@@ -47,6 +53,8 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
47
53
|
/**
|
|
48
54
|
* Properties that are allowed to be used regardless of the baseline.
|
|
49
55
|
*
|
|
56
|
+
* New items extend the defaults instead of overriding them.
|
|
57
|
+
*
|
|
50
58
|
* @default []
|
|
51
59
|
*
|
|
52
60
|
* @see [css/use-baseline: `allowedProperties` option](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#allowproperties)
|
|
@@ -55,7 +63,12 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
55
63
|
/**
|
|
56
64
|
* Properties that are allowed to be used regardless of the baseline, mapped to their allowed identifier values.
|
|
57
65
|
*
|
|
58
|
-
*
|
|
66
|
+
* New items extend the defaults instead of overriding them.
|
|
67
|
+
*
|
|
68
|
+
* @default
|
|
69
|
+
* {
|
|
70
|
+
* "background-clip": ['text'],
|
|
71
|
+
* }
|
|
59
72
|
*
|
|
60
73
|
* @see [css/use-baseline: `allowedPropertyValues` option](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#allowpropertyvalues)
|
|
61
74
|
*/
|
|
@@ -63,7 +76,9 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
63
76
|
/**
|
|
64
77
|
* Selectors that are allowed to be used regardless of the baseline.
|
|
65
78
|
*
|
|
66
|
-
*
|
|
79
|
+
* New items extend the defaults instead of overriding them.
|
|
80
|
+
*
|
|
81
|
+
* @default ['selection']
|
|
67
82
|
*
|
|
68
83
|
* @see [css/use-baseline: `allowedSelectors` option](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#allowselectors)
|
|
69
84
|
*/
|
|
@@ -71,6 +86,8 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
71
86
|
/**
|
|
72
87
|
* Units that are allowed to be used regardless of the baseline.
|
|
73
88
|
*
|
|
89
|
+
* New items extend the defaults instead of overriding them.
|
|
90
|
+
*
|
|
74
91
|
* @default []
|
|
75
92
|
*
|
|
76
93
|
* @see [css/use-baseline: `allowedUnits` option](https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md#allowunits)
|
|
@@ -86,7 +103,9 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
86
103
|
/**
|
|
87
104
|
* Feature IDs or regex patterns for features that are allowed to be used regardless of the baseline.
|
|
88
105
|
*
|
|
89
|
-
*
|
|
106
|
+
* New items extend the defaults instead of overriding them.
|
|
107
|
+
*
|
|
108
|
+
* @default ['async-clipboard']
|
|
90
109
|
*
|
|
91
110
|
* @see [baseline-js/use-baseline: `ignoreFeatures` option](https://github.com/3ru/eslint-plugin-baseline-js#options-rule)
|
|
92
111
|
*/
|
|
@@ -94,6 +113,8 @@ interface BaselineOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
94
113
|
/**
|
|
95
114
|
* ESTree `node.type`s or regex patterns for node types that are allowed to be used regardless of the baseline.
|
|
96
115
|
*
|
|
116
|
+
* New items extend the defaults instead of overriding them.
|
|
117
|
+
*
|
|
97
118
|
* @default []
|
|
98
119
|
*
|
|
99
120
|
* @see [baseline-js/use-baseline: `ignoreNodeTypes` option](https://github.com/3ru/eslint-plugin-baseline-js#options-rule)
|
|
@@ -4,7 +4,7 @@ import { ConfigWithOverrides } from "../index.mjs";
|
|
|
4
4
|
type ConfigRules = PluginRules<'@eslint-react'>;
|
|
5
5
|
interface ReactOptions extends ConfigWithOverrides<ConfigRules> {
|
|
6
6
|
/**
|
|
7
|
-
* Use [eslint-plugin-jsx-a11y](https://github.com/
|
|
7
|
+
* Use [eslint-plugin-jsx-a11y-x](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x) and [@html-eslint/eslint-plugin-react](https://html-eslint.org/docs/react/getting-started) to enforce accessibility standards in React components.
|
|
8
8
|
*
|
|
9
9
|
* @default true
|
|
10
10
|
*/
|
|
@@ -15,12 +15,12 @@ interface ReactOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
15
15
|
* New items extend the defaults instead of overriding them.
|
|
16
16
|
*
|
|
17
17
|
* This is used by
|
|
18
|
-
* - [jsx-a11y/anchor-has-content: `components` option](https://github.com/
|
|
19
|
-
* - [jsx-a11y/anchor-is-valid: `components` option](https://github.com/
|
|
18
|
+
* - [jsx-a11y-x/anchor-has-content: `components` option](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x/blob/main/docs/rules/anchor-has-content.md#rule-options)
|
|
19
|
+
* - [jsx-a11y-x/anchor-is-valid: `components` option](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x/blob/main/docs/rules/anchor-is-valid.md#rule-options)
|
|
20
20
|
*
|
|
21
21
|
* @default ['Link', 'NextLink', 'NavLink']
|
|
22
22
|
*/
|
|
23
|
-
anchorComponents?: RuleOptions<'jsx-a11y/anchor-has-content'>['components'];
|
|
23
|
+
anchorComponents?: RuleOptions<'jsx-a11y-x/anchor-has-content'>['components'];
|
|
24
24
|
/**
|
|
25
25
|
* Names of components that render a heading (`<h1>`...`<h6>`) element.
|
|
26
26
|
*
|
|
@@ -28,21 +28,21 @@ interface ReactOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
28
28
|
*
|
|
29
29
|
* @default ['H1', 'H2', 'H3', 'H4', 'H5', 'H6']
|
|
30
30
|
*
|
|
31
|
-
* @see [jsx-a11y/heading-has-content: `components` option](https://github.com/
|
|
31
|
+
* @see [jsx-a11y-x/heading-has-content: `components` option](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x/blob/main/docs/rules/heading-has-content.md#rule-options)
|
|
32
32
|
*/
|
|
33
|
-
headingComponents?: RuleOptions<'jsx-a11y/heading-has-content'>['components'];
|
|
33
|
+
headingComponents?: RuleOptions<'jsx-a11y-x/heading-has-content'>['components'];
|
|
34
34
|
/**
|
|
35
35
|
* Names of components that render an `<img>` element.
|
|
36
36
|
*
|
|
37
37
|
* New items extend the defaults instead of overriding them.
|
|
38
38
|
*
|
|
39
39
|
* This is used by
|
|
40
|
-
* - [jsx-a11y/alt-text: `img` option](https://github.com/
|
|
41
|
-
* - [jsx-a11y/img-redundant-alt: `components` option](https://github.com/
|
|
40
|
+
* - [jsx-a11y-x/alt-text: `img` option](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x/blob/main/docs/rules/alt-text.md#rule-options)
|
|
41
|
+
* - [jsx-a11y-x/img-redundant-alt: `components` option](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x/blob/main/docs/rules/img-redundant-alt.md#rule-options)
|
|
42
42
|
*
|
|
43
43
|
* @default ['Img', 'LazyImg', 'Image', 'LazyImage', 'NextImage', 'LazyNextImage']
|
|
44
44
|
*/
|
|
45
|
-
imageComponents?: RuleOptions<'jsx-a11y/img-redundant-alt'>['components'];
|
|
45
|
+
imageComponents?: RuleOptions<'jsx-a11y-x/img-redundant-alt'>['components'];
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PluginRules } from "../eslintRules.mjs";
|
|
2
|
+
import { ConfigWithOverrides } from "../index.mjs";
|
|
3
|
+
//#region src/types/options/tanstack.d.ts
|
|
4
|
+
type ConfigRules = PluginRules<'@tanstack'>;
|
|
5
|
+
interface TanstackOptions extends ConfigWithOverrides<ConfigRules> {
|
|
6
|
+
/**
|
|
7
|
+
* Whether [@tanstack/query](https://tanstack.com/query) is used in the project.
|
|
8
|
+
*
|
|
9
|
+
* @default false // `true` if "@tanstack/react-query" is detected in the dependencies when `autoDetectDeps` is enabled
|
|
10
|
+
*
|
|
11
|
+
* @see [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
|
|
12
|
+
*/
|
|
13
|
+
query?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether [@tanstack/router](https://tanstack.com/router) is used in the project.
|
|
16
|
+
*
|
|
17
|
+
* @default false // `true` if "@tanstack/react-router" is detected in the dependencies when `autoDetectDeps` is enabled
|
|
18
|
+
*
|
|
19
|
+
* @see [@tanstack/eslint-plugin-router](https://tanstack.com/router/latest/docs/eslint/eslint-plugin-router)
|
|
20
|
+
*/
|
|
21
|
+
router?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether [@tanstack/start](https://tanstack.com/start) is used in the project.
|
|
24
|
+
*
|
|
25
|
+
* @default false // `true` if "@tanstack/react-start" is detected in the dependencies when `autoDetectDeps` is enabled
|
|
26
|
+
*
|
|
27
|
+
* @see [@tanstack/eslint-plugin-start](https://tanstack.com/start/latest/docs/eslint/eslint-plugin-start)
|
|
28
|
+
*/
|
|
29
|
+
start?: boolean;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export type { TanstackOptions };
|
|
@@ -6,11 +6,11 @@ interface TypescriptOptions extends ConfigWithOverrides<ConfigRules> {
|
|
|
6
6
|
/**
|
|
7
7
|
* Globs of files to allow running with the default project compiler options despite not being matched by the project service (_tsconfig.json_).
|
|
8
8
|
*
|
|
9
|
-
* The matched files
|
|
9
|
+
* The matched files cannot also be included in their nearest _tsconfig.json_ file.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* @default []
|
|
12
12
|
*
|
|
13
|
-
* @
|
|
13
|
+
* @example ['{eslint,prettier}.config.?([mc])ts']
|
|
14
14
|
*
|
|
15
15
|
* @see [@typescript-eslint: `allowDefaultProject` option](https://typescript-eslint.io/packages/parser#allowdefaultproject)
|
|
16
16
|
*/
|
|
@@ -12,7 +12,7 @@ type VBindStyleSameNameShorthandOptions = RuleOptions<'vue/v-bind-style', 1>['sa
|
|
|
12
12
|
type ConfigRules = PluginRules<'vue'> & PluginRules<'vuejs-accessibility'>;
|
|
13
13
|
interface VueOptions extends ConfigWithOverrides<ConfigRules> {
|
|
14
14
|
/**
|
|
15
|
-
* Use [eslint-plugin-vuejs-accessibility](https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility) to enforce accessibility standards in SFCs.
|
|
15
|
+
* Use [eslint-plugin-vuejs-accessibility](https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility) to enforce accessibility standards in Vue SFCs.
|
|
16
16
|
*
|
|
17
17
|
* @default true
|
|
18
18
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shayanthenerd/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -44,65 +44,63 @@
|
|
|
44
44
|
},
|
|
45
45
|
"nano-staged": {
|
|
46
46
|
"**/*.json": "pnpm format",
|
|
47
|
-
"**/*.ts": "pnpm lint",
|
|
47
|
+
"**/*.ts": "pnpm lint --no-warn-ignored",
|
|
48
48
|
"package.json": "pnpm lint",
|
|
49
49
|
"pnpm-lock.yaml": [
|
|
50
50
|
"pnpm generate:types",
|
|
51
|
-
"pnpm generate:docs"
|
|
52
|
-
"git add src/types/eslint-schema.d.ts README.md"
|
|
53
|
-
],
|
|
54
|
-
"src/types/**/*.d.ts": [
|
|
55
|
-
"pnpm generate:docs",
|
|
56
|
-
"git add README.md"
|
|
51
|
+
"pnpm generate:docs"
|
|
57
52
|
],
|
|
53
|
+
"src/types/**/*.d.ts": "pnpm generate:docs",
|
|
58
54
|
"{.github/workflows/**/*.yaml,pnpm-workspace.yaml}": "pnpm format"
|
|
59
55
|
},
|
|
60
56
|
"dependencies": {
|
|
61
|
-
"@eslint-react/eslint-plugin": "5.
|
|
57
|
+
"@eslint-react/eslint-plugin": "5.20.8",
|
|
62
58
|
"@eslint/css": "2.0.0",
|
|
63
59
|
"@eslint/markdown": "8.0.3",
|
|
64
|
-
"@html-eslint/eslint-plugin": "0.
|
|
65
|
-
"@html-eslint/eslint-plugin-react": "0.
|
|
66
|
-
"@next/eslint-plugin-next": "16.3.
|
|
60
|
+
"@html-eslint/eslint-plugin": "0.66.1",
|
|
61
|
+
"@html-eslint/eslint-plugin-react": "0.66.1",
|
|
62
|
+
"@next/eslint-plugin-next": "16.3.6",
|
|
67
63
|
"@nuxt/eslint-plugin": "1.17.0",
|
|
68
64
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
65
|
+
"@tanstack/eslint-plugin-query": "5.104.0",
|
|
66
|
+
"@tanstack/eslint-plugin-router": "1.162.0",
|
|
67
|
+
"@tanstack/eslint-plugin-start": "0.1.0",
|
|
69
68
|
"@vitest/eslint-plugin": "1.6.27",
|
|
70
|
-
"astro-eslint-parser": "3.
|
|
69
|
+
"astro-eslint-parser": "3.2.0",
|
|
71
70
|
"defu": "6.1.7",
|
|
72
71
|
"eslint-flat-config-utils": "3.2.0",
|
|
73
72
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
74
|
-
"eslint-plugin-astro": "3.1
|
|
75
|
-
"eslint-plugin-baseline-js": "0.7.
|
|
73
|
+
"eslint-plugin-astro": "3.2.1",
|
|
74
|
+
"eslint-plugin-baseline-js": "0.7.2",
|
|
76
75
|
"eslint-plugin-better-tailwindcss": "4.7.0",
|
|
77
|
-
"eslint-plugin-cypress": "7.0.
|
|
76
|
+
"eslint-plugin-cypress": "7.0.2",
|
|
78
77
|
"eslint-plugin-import-x": "4.17.1",
|
|
79
|
-
"eslint-plugin-jsx-a11y": "
|
|
80
|
-
"eslint-plugin-n": "18.
|
|
81
|
-
"eslint-plugin-package-json": "1.
|
|
82
|
-
"eslint-plugin-perfectionist": "5.
|
|
83
|
-
"eslint-plugin-playwright": "2.
|
|
78
|
+
"eslint-plugin-jsx-a11y-x": "0.2.0",
|
|
79
|
+
"eslint-plugin-n": "18.4.0",
|
|
80
|
+
"eslint-plugin-package-json": "1.10.0",
|
|
81
|
+
"eslint-plugin-perfectionist": "5.12.1",
|
|
82
|
+
"eslint-plugin-playwright": "2.12.0",
|
|
84
83
|
"eslint-plugin-promise": "7.3.0",
|
|
85
84
|
"eslint-plugin-storybook": "10.6.0",
|
|
86
|
-
"eslint-plugin-unicorn": "
|
|
87
|
-
"eslint-plugin-vue": "10.11.
|
|
85
|
+
"eslint-plugin-unicorn": "76.0.0",
|
|
86
|
+
"eslint-plugin-vue": "10.11.1",
|
|
88
87
|
"eslint-plugin-vuejs-accessibility": "2.6.0",
|
|
89
|
-
"eslint-plugin-zod": "4.
|
|
90
|
-
"eslint-plugin-zod-mini": "1.
|
|
88
|
+
"eslint-plugin-zod": "4.14.2",
|
|
89
|
+
"eslint-plugin-zod-mini": "1.11.2",
|
|
91
90
|
"globals": "17.12.0",
|
|
92
91
|
"local-pkg": "1.2.1",
|
|
93
92
|
"nuxt-link-checker": "5.3.0",
|
|
94
93
|
"tailwind-csstree": "0.4.0",
|
|
95
|
-
"typescript-eslint": "8.70.
|
|
94
|
+
"typescript-eslint": "8.70.1"
|
|
96
95
|
},
|
|
97
96
|
"devDependencies": {
|
|
98
97
|
"@arethetypeswrong/cli": "0.18.5",
|
|
99
|
-
"@eslint/config-inspector": "3.
|
|
100
|
-
"@types/
|
|
101
|
-
"
|
|
102
|
-
"eslint": "10.10.0",
|
|
98
|
+
"@eslint/config-inspector": "3.5.0",
|
|
99
|
+
"@types/node": "26.6.3",
|
|
100
|
+
"eslint": "10.11.0",
|
|
103
101
|
"eslint-typegen": "2.3.1",
|
|
104
102
|
"nano-staged": "1.0.2",
|
|
105
|
-
"prettier": "3.9.
|
|
103
|
+
"prettier": "3.9.9",
|
|
106
104
|
"publint": "0.3.24",
|
|
107
105
|
"serve": "14.2.6",
|
|
108
106
|
"simple-git-hooks": "2.14.0",
|
|
@@ -112,7 +110,13 @@
|
|
|
112
110
|
"unplugin-unused": "0.6.0"
|
|
113
111
|
},
|
|
114
112
|
"peerDependencies": {
|
|
115
|
-
"eslint": "^10.9.0"
|
|
113
|
+
"eslint": "^10.9.0",
|
|
114
|
+
"eslint-plugin-jsx-a11y-x": "^0.2.0"
|
|
115
|
+
},
|
|
116
|
+
"peerDependenciesMeta": {
|
|
117
|
+
"eslint-plugin-jsx-a11y-x": {
|
|
118
|
+
"optional": true
|
|
119
|
+
}
|
|
116
120
|
},
|
|
117
121
|
"engines": {
|
|
118
122
|
"node": "^20.19.0 || ^22.13.0 || ^24.0.0 || ^26.0.0"
|
|
@@ -120,7 +124,7 @@
|
|
|
120
124
|
"devEngines": {
|
|
121
125
|
"packageManager": {
|
|
122
126
|
"name": "pnpm",
|
|
123
|
-
"version": "12.
|
|
127
|
+
"version": "12.6.0",
|
|
124
128
|
"onFail": "warn"
|
|
125
129
|
},
|
|
126
130
|
"runtime": {
|
|
@@ -134,7 +138,7 @@
|
|
|
134
138
|
},
|
|
135
139
|
"scripts": {
|
|
136
140
|
"git:gitmessage": "git config --local commit.template '.gitmessage'",
|
|
137
|
-
"update:deps": "pnpm update --latest
|
|
141
|
+
"update:deps": "pnpm update --latest '!typescript' && pnpm generate:types && pnpm generate:docs",
|
|
138
142
|
"check:spell": "pnpx cspell . --gitignore --exclude='pnpm-lock.yaml' --cache --cache-location='./node_modules/.cache/.cspellcache'",
|
|
139
143
|
"inspect": "pnpm build:package && eslint-config-inspector",
|
|
140
144
|
"build:inspector": "eslint-config-inspector build --config=./scripts/configs/eslint.config.reference.ts --outDir=./netlify/eslint-config-inspector",
|