@shayanthenerd/eslint-config 0.12.0 → 0.12.1
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/dist/types/eslint-schema.d.mts +19 -1
- package/dist/types/index.d.mts +1 -1
- package/package.json +12 -12
|
@@ -3875,6 +3875,11 @@ interface ESLintSchema {
|
|
|
3875
3875
|
* @see https://eslint.org/docs/latest/rules/vars-on-top
|
|
3876
3876
|
*/
|
|
3877
3877
|
'vars-on-top'?: Linter.RuleEntry<[]>;
|
|
3878
|
+
/**
|
|
3879
|
+
* enforce using `.each` or `.for` consistently
|
|
3880
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
|
|
3881
|
+
*/
|
|
3882
|
+
'vitest/consistent-each-for'?: Linter.RuleEntry<VitestConsistentEachFor>;
|
|
3878
3883
|
/**
|
|
3879
3884
|
* require test file pattern
|
|
3880
3885
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
@@ -4092,7 +4097,7 @@ interface ESLintSchema {
|
|
|
4092
4097
|
*/
|
|
4093
4098
|
'vitest/prefer-each'?: Linter.RuleEntry<[]>;
|
|
4094
4099
|
/**
|
|
4095
|
-
* enforce using the built-in
|
|
4100
|
+
* enforce using the built-in equality matchers
|
|
4096
4101
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
4097
4102
|
*/
|
|
4098
4103
|
'vitest/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
@@ -4211,6 +4216,11 @@ interface ESLintSchema {
|
|
|
4211
4216
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
4212
4217
|
*/
|
|
4213
4218
|
'vitest/require-hook'?: Linter.RuleEntry<VitestRequireHook>;
|
|
4219
|
+
/**
|
|
4220
|
+
* require usage of import in vi.mock()
|
|
4221
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
4222
|
+
*/
|
|
4223
|
+
'vitest/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
4214
4224
|
/**
|
|
4215
4225
|
* require local Test Context for concurrent snapshot tests
|
|
4216
4226
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -5640,6 +5650,7 @@ type HtmlEslintIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
5640
5650
|
[k: string]: number;
|
|
5641
5651
|
};
|
|
5642
5652
|
ignoreComment?: boolean;
|
|
5653
|
+
templateIndentBase?: ("first" | "templateTag");
|
|
5643
5654
|
}];
|
|
5644
5655
|
// ----- @html-eslint/max-element-depth -----
|
|
5645
5656
|
type HtmlEslintMaxElementDepth = [] | [{
|
|
@@ -12356,6 +12367,13 @@ type UseIsnan = [] | [{
|
|
|
12356
12367
|
type ValidTypeof = [] | [{
|
|
12357
12368
|
requireStringLiterals?: boolean;
|
|
12358
12369
|
}];
|
|
12370
|
+
// ----- vitest/consistent-each-for -----
|
|
12371
|
+
type VitestConsistentEachFor = [] | [{
|
|
12372
|
+
test?: ("each" | "for");
|
|
12373
|
+
it?: ("each" | "for");
|
|
12374
|
+
describe?: ("each" | "for");
|
|
12375
|
+
suite?: ("each" | "for");
|
|
12376
|
+
}];
|
|
12359
12377
|
// ----- vitest/consistent-test-filename -----
|
|
12360
12378
|
type VitestConsistentTestFilename = [] | [{
|
|
12361
12379
|
pattern?: string;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -303,7 +303,7 @@ interface Options {
|
|
|
303
303
|
*
|
|
304
304
|
* @default false
|
|
305
305
|
*/
|
|
306
|
-
tailwind?: false |
|
|
306
|
+
tailwind?: false | TailwindOptions;
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* Use [typescript-eslint](https://typescript-eslint.io) to enforce TypeScript-specific rules.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shayanthenerd/eslint-config",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style",
|
|
6
6
|
"keywords": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=20.12.0"
|
|
54
54
|
},
|
|
55
|
-
"packageManager": "pnpm@10.
|
|
55
|
+
"packageManager": "pnpm@10.24.0",
|
|
56
56
|
"scripts": {
|
|
57
57
|
"prepare": "pnpm git:gitmessage && simple-git-hooks && pnpm generate:types",
|
|
58
58
|
"prepublishOnly": "pnpm build:package",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@eslint/compat": "2.0.0",
|
|
84
84
|
"@eslint/css": "0.14.1",
|
|
85
|
-
"@html-eslint/eslint-plugin": "0.
|
|
85
|
+
"@html-eslint/eslint-plugin": "0.50.0",
|
|
86
86
|
"@stylistic/eslint-plugin": "5.6.1",
|
|
87
|
-
"@vitest/eslint-plugin": "1.
|
|
87
|
+
"@vitest/eslint-plugin": "1.5.0",
|
|
88
88
|
"defu": "6.1.4",
|
|
89
89
|
"eslint": "9.39.1",
|
|
90
90
|
"eslint-flat-config-utils": "2.1.4",
|
|
@@ -92,31 +92,31 @@
|
|
|
92
92
|
"eslint-plugin-better-tailwindcss": "3.7.11",
|
|
93
93
|
"eslint-plugin-cypress": "5.2.0",
|
|
94
94
|
"eslint-plugin-import-x": "4.16.1",
|
|
95
|
-
"eslint-plugin-oxlint": "1.
|
|
95
|
+
"eslint-plugin-oxlint": "1.30.0",
|
|
96
96
|
"eslint-plugin-perfectionist": "4.15.1",
|
|
97
97
|
"eslint-plugin-playwright": "2.3.0",
|
|
98
|
-
"eslint-plugin-storybook": "10.0
|
|
98
|
+
"eslint-plugin-storybook": "10.1.0",
|
|
99
99
|
"eslint-plugin-unused-imports": "4.3.0",
|
|
100
|
-
"eslint-plugin-vue": "10.6.
|
|
100
|
+
"eslint-plugin-vue": "10.6.1",
|
|
101
101
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
102
102
|
"globals": "16.5.0",
|
|
103
103
|
"local-pkg": "1.1.2",
|
|
104
|
-
"oxlint": "1.
|
|
104
|
+
"oxlint": "1.30.0",
|
|
105
105
|
"tailwind-csstree": "0.1.4",
|
|
106
|
-
"typescript-eslint": "8.
|
|
106
|
+
"typescript-eslint": "8.48.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@arethetypeswrong/cli": "0.18.2",
|
|
110
|
-
"@eslint/config-inspector": "1.
|
|
110
|
+
"@eslint/config-inspector": "1.4.2",
|
|
111
111
|
"@types/node": "24.10.1",
|
|
112
112
|
"actions-up": "1.5.0",
|
|
113
113
|
"eslint-typegen": "2.3.0",
|
|
114
114
|
"nano-staged": "0.9.0",
|
|
115
|
-
"prettier": "3.
|
|
115
|
+
"prettier": "3.7.1",
|
|
116
116
|
"publint": "0.3.15",
|
|
117
117
|
"serve": "14.2.5",
|
|
118
118
|
"simple-git-hooks": "2.13.1",
|
|
119
|
-
"tsdown": "0.16.
|
|
119
|
+
"tsdown": "0.16.7",
|
|
120
120
|
"typescript": "5.9.3",
|
|
121
121
|
"unplugin-unused": "0.5.6"
|
|
122
122
|
}
|