@shayanthenerd/eslint-config 0.33.0 → 0.34.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 +4 -3
- package/dist/configs/css.mjs +3 -3
- package/dist/helpers/options/enableDetectedConfigs.mjs +3 -2
- package/dist/rules/css.mjs +24 -32
- package/dist/rules/html.mjs +8 -1
- package/dist/rules/markdown.mjs +7 -1
- package/dist/rules/react.mjs +1 -2
- package/dist/rules/typescript.mjs +1 -0
- package/dist/rules/unicorn.mjs +24 -2
- package/dist/types/eslint-schema.d.mts +700 -408
- package/dist/types/index.d.mts +9 -17
- package/package.json +19 -18
package/dist/types/index.d.mts
CHANGED
|
@@ -285,32 +285,24 @@ interface Options {
|
|
|
285
285
|
maxNestedCallbacks?: Exclude<RuleOptions<'max-nested-callbacks'>, Record<string, unknown>>;
|
|
286
286
|
};
|
|
287
287
|
/**
|
|
288
|
-
* Use [@eslint/css](https://github.com/eslint/css) and [eslint-
|
|
288
|
+
* Use [@eslint/css](https://github.com/eslint/css) and [eslint-cssicorn](https://github.com/sindresorhus/eslint-cssicorn) to enforce CSS best practices and identify mistakes.
|
|
289
289
|
*
|
|
290
290
|
* @default false
|
|
291
291
|
*/
|
|
292
292
|
css?: boolean | ConfigWithOverrides<PluginRules<'css'>> & {
|
|
293
293
|
/**
|
|
294
|
-
*
|
|
294
|
+
* Allowed, unknown (non-standard) pseudo-selectors.
|
|
295
295
|
*
|
|
296
296
|
* New items extend the defaults instead of overriding them.
|
|
297
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
|
-
* ]
|
|
298
|
+
* @default []
|
|
307
299
|
*
|
|
308
|
-
* @see [
|
|
300
|
+
* @see [cssicorn/no-unknown-pseudo-selectors: `allow` option](https://github.com/sindresorhus/eslint-cssicorn/blob/main/docs/rules/no-unknown-pseudo-selectors.md#allow)
|
|
309
301
|
*/
|
|
310
|
-
allowedUnknownPseudoSelectors?: RuleOptions<'
|
|
302
|
+
allowedUnknownPseudoSelectors?: RuleOptions<'cssicorn/no-unknown-pseudo-selectors'>['allow'];
|
|
311
303
|
};
|
|
312
304
|
/**
|
|
313
|
-
* Use [@html-eslint/eslint-plugin](https://html-eslint.org) to enforce SEO and accessibility best practices, as well as some stylistic rules.
|
|
305
|
+
* Use [@html-eslint/eslint-plugin](https://html-eslint.org) and [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)'s HTML rules to enforce SEO and accessibility best practices, as well as some stylistic rules.
|
|
314
306
|
*
|
|
315
307
|
* @default false
|
|
316
308
|
*/
|
|
@@ -331,7 +323,7 @@ interface Options {
|
|
|
331
323
|
*/
|
|
332
324
|
importX?: boolean | ConfigWithOverrides<PluginRules<'import-x'>>;
|
|
333
325
|
/**
|
|
334
|
-
* Use [@eslint/markdown](https://github.com/eslint/markdown) to enforce best practices for Markdown files.
|
|
326
|
+
* Use [@eslint/markdown](https://github.com/eslint/markdown) and [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)'s Markdown rules to enforce best practices for Markdown files.
|
|
335
327
|
*
|
|
336
328
|
* @default true
|
|
337
329
|
*/
|
|
@@ -365,7 +357,7 @@ interface Options {
|
|
|
365
357
|
*/
|
|
366
358
|
packageJson?: boolean | ConfigWithOverrides<PluginRules<'package-json'>> & {
|
|
367
359
|
/**
|
|
368
|
-
*
|
|
360
|
+
* Allowed [NPM distribution tags](https://docs.npmjs.com/adding-dist-tags-to-packages).
|
|
369
361
|
*
|
|
370
362
|
* @default []
|
|
371
363
|
*
|
|
@@ -373,7 +365,7 @@ interface Options {
|
|
|
373
365
|
*/
|
|
374
366
|
allowedDistTags?: RuleOptions<'package-json/restrict-dist-tags'>['allowed'];
|
|
375
367
|
/**
|
|
376
|
-
*
|
|
368
|
+
* Dependencies for which the [NPM distribution tags](https://docs.npmjs.com/adding-dist-tags-to-packages) are allowed.
|
|
377
369
|
*
|
|
378
370
|
* @default []
|
|
379
371
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shayanthenerd/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.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",
|
|
@@ -54,54 +54,55 @@
|
|
|
54
54
|
"{.github/workflows/**/*.yaml,pnpm-workspace.yaml}": "pnpm format"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@eslint-react/eslint-plugin": "5.
|
|
57
|
+
"@eslint-react/eslint-plugin": "5.23.5",
|
|
58
58
|
"@eslint/css": "2.0.0",
|
|
59
59
|
"@eslint/markdown": "8.0.3",
|
|
60
60
|
"@html-eslint/eslint-plugin": "0.66.1",
|
|
61
61
|
"@html-eslint/eslint-plugin-react": "0.66.1",
|
|
62
|
-
"@next/eslint-plugin-next": "16.3.
|
|
62
|
+
"@next/eslint-plugin-next": "16.3.8",
|
|
63
63
|
"@nuxt/eslint-plugin": "1.17.0",
|
|
64
64
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
65
|
-
"@tanstack/eslint-plugin-query": "5.104.
|
|
65
|
+
"@tanstack/eslint-plugin-query": "5.104.1",
|
|
66
66
|
"@tanstack/eslint-plugin-router": "1.162.0",
|
|
67
67
|
"@tanstack/eslint-plugin-start": "0.1.0",
|
|
68
68
|
"@vitest/eslint-plugin": "1.6.27",
|
|
69
69
|
"astro-eslint-parser": "3.2.0",
|
|
70
70
|
"defu": "6.1.7",
|
|
71
|
+
"eslint-cssicorn": "0.1.0",
|
|
71
72
|
"eslint-flat-config-utils": "3.2.0",
|
|
72
73
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
73
74
|
"eslint-plugin-astro": "3.2.1",
|
|
74
|
-
"eslint-plugin-baseline-js": "0.7.
|
|
75
|
+
"eslint-plugin-baseline-js": "0.7.3",
|
|
75
76
|
"eslint-plugin-better-tailwindcss": "4.7.0",
|
|
76
77
|
"eslint-plugin-cypress": "7.0.2",
|
|
77
78
|
"eslint-plugin-import-x": "4.17.1",
|
|
78
79
|
"eslint-plugin-jsx-a11y-x": "0.2.0",
|
|
79
|
-
"eslint-plugin-n": "18.4.
|
|
80
|
-
"eslint-plugin-package-json": "1.10.
|
|
80
|
+
"eslint-plugin-n": "18.4.1",
|
|
81
|
+
"eslint-plugin-package-json": "1.10.1",
|
|
81
82
|
"eslint-plugin-perfectionist": "5.12.1",
|
|
82
83
|
"eslint-plugin-playwright": "2.12.0",
|
|
83
84
|
"eslint-plugin-promise": "7.3.0",
|
|
84
|
-
"eslint-plugin-storybook": "10.6.
|
|
85
|
-
"eslint-plugin-unicorn": "
|
|
85
|
+
"eslint-plugin-storybook": "10.6.1",
|
|
86
|
+
"eslint-plugin-unicorn": "77.0.0",
|
|
86
87
|
"eslint-plugin-vue": "10.11.1",
|
|
87
88
|
"eslint-plugin-vuejs-accessibility": "2.6.0",
|
|
88
|
-
"eslint-plugin-zod": "
|
|
89
|
-
"eslint-plugin-zod-mini": "
|
|
90
|
-
"globals": "17.
|
|
89
|
+
"eslint-plugin-zod": "5.0.0",
|
|
90
|
+
"eslint-plugin-zod-mini": "2.0.0",
|
|
91
|
+
"globals": "17.13.0",
|
|
91
92
|
"local-pkg": "1.2.1",
|
|
92
93
|
"nuxt-link-checker": "5.3.0",
|
|
93
|
-
"tailwind-csstree": "0.4.
|
|
94
|
-
"typescript-eslint": "8.
|
|
94
|
+
"tailwind-csstree": "0.4.1",
|
|
95
|
+
"typescript-eslint": "8.71.0"
|
|
95
96
|
},
|
|
96
97
|
"devDependencies": {
|
|
97
98
|
"@arethetypeswrong/cli": "0.18.5",
|
|
98
99
|
"@eslint/config-inspector": "3.5.0",
|
|
99
|
-
"@types/node": "26.6.
|
|
100
|
-
"eslint": "10.
|
|
100
|
+
"@types/node": "26.6.4",
|
|
101
|
+
"eslint": "10.12.0",
|
|
101
102
|
"eslint-typegen": "2.3.1",
|
|
102
103
|
"nano-staged": "1.0.2",
|
|
103
104
|
"prettier": "3.9.9",
|
|
104
|
-
"publint": "0.3.
|
|
105
|
+
"publint": "0.3.25",
|
|
105
106
|
"serve": "14.2.6",
|
|
106
107
|
"simple-git-hooks": "2.14.0",
|
|
107
108
|
"ts-morph": "28.0.0",
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
"devEngines": {
|
|
125
126
|
"packageManager": {
|
|
126
127
|
"name": "pnpm",
|
|
127
|
-
"version": "12.
|
|
128
|
+
"version": "12.9.0",
|
|
128
129
|
"onFail": "warn"
|
|
129
130
|
},
|
|
130
131
|
"runtime": {
|