@coderwyd/eslint-config 4.6.0 → 4.6.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.
package/dist/cli.js CHANGED
@@ -10,28 +10,28 @@ import prompts from "prompts";
10
10
  import { execSync } from "node:child_process";
11
11
 
12
12
  //#region package.json
13
- var version = "4.6.0";
13
+ var version = "4.6.2";
14
14
  var devDependencies = {
15
15
  "@antfu/ni": "^25.0.0",
16
- "@eslint-react/eslint-plugin": "^1.52.4",
16
+ "@eslint-react/eslint-plugin": "^1.52.9",
17
17
  "@eslint/config-inspector": "^1.2.0",
18
18
  "@types/eslint-config-prettier": "^6.11.3",
19
- "@types/node": "^24.2.1",
19
+ "@types/node": "^24.3.0",
20
20
  "@types/prompts": "^2.4.9",
21
21
  "@types/yargs": "^17.0.33",
22
- "@unocss/eslint-plugin": "^66.4.2",
22
+ "@unocss/eslint-plugin": "^66.5.0",
23
23
  "bumpp": "^10.2.3",
24
- "eslint": "^9.33.0",
24
+ "eslint": "^9.34.0",
25
25
  "eslint-plugin-react-hooks": "6.0.0-rc1",
26
26
  "eslint-plugin-react-refresh": "^0.4.20",
27
- "eslint-plugin-svelte": "^3.11.0",
27
+ "eslint-plugin-svelte": "^3.12.0",
28
28
  "eslint-plugin-tailwindcss": "^3.18.2",
29
29
  "jiti": "^2.5.1",
30
30
  "nano-staged": "^0.8.0",
31
31
  "simple-git-hooks": "^2.13.1",
32
- "svelte": "^5.38.1",
32
+ "svelte": "^5.38.6",
33
33
  "svelte-eslint-parser": "^1.3.1",
34
- "tsdown": "^0.14.1",
34
+ "tsdown": "^0.14.2",
35
35
  "typescript": "^5.9.2"
36
36
  };
37
37
 
package/dist/index.d.ts CHANGED
@@ -2750,7 +2750,7 @@ interface RuleOptions {
2750
2750
  'react/no-nested-components'?: Linter.RuleEntry<[]>;
2751
2751
  /**
2752
2752
  * Disallow nesting lazy component declarations inside other components.
2753
- * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
2753
+ * @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
2754
2754
  */
2755
2755
  'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
2756
2756
  /**
@@ -3549,8 +3549,14 @@ interface RuleOptions {
3549
3549
  /**
3550
3550
  * disallow using navigation (links, goto, pushState, replaceState) without the base path
3551
3551
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-base/
3552
+ * @deprecated
3552
3553
  */
3553
3554
  'svelte/no-navigation-without-base'?: Linter.RuleEntry<SvelteNoNavigationWithoutBase>;
3555
+ /**
3556
+ * disallow using navigation (links, goto, pushState, replaceState) without a resolve()
3557
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
3558
+ */
3559
+ 'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
3554
3560
  /**
3555
3561
  * disallow use of not function in event handler
3556
3562
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
@@ -3849,6 +3855,11 @@ interface RuleOptions {
3849
3855
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
3850
3856
  */
3851
3857
  'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>;
3858
+ /**
3859
+ * enforce hoisted APIs to be on top of the file
3860
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/hoisted-apis-on-top.md
3861
+ */
3862
+ 'test/hoisted-apis-on-top'?: Linter.RuleEntry<[]>;
3852
3863
  /**
3853
3864
  * enforce a maximum number of expect per test
3854
3865
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
@@ -4055,6 +4066,11 @@ interface RuleOptions {
4055
4066
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
4056
4067
  */
4057
4068
  'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
4069
+ /**
4070
+ * enforce using `expectTypeOf` instead of `expect(typeof ...)`
4071
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-type-of.md
4072
+ */
4073
+ 'test/prefer-expect-type-of'?: Linter.RuleEntry<[]>;
4058
4074
  /**
4059
4075
  * enforce having hooks in consistent order
4060
4076
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
@@ -7595,6 +7611,7 @@ type JsdocRequireReturnsType = [] | [{
7595
7611
  }];
7596
7612
  // ----- jsdoc/require-template -----
7597
7613
  type JsdocRequireTemplate = [] | [{
7614
+ exemptedBy?: string[];
7598
7615
  requireSeparateTemplates?: boolean;
7599
7616
  }];
7600
7617
  // ----- jsdoc/require-throws -----
@@ -11334,6 +11351,13 @@ type SvelteNoNavigationWithoutBase = [] | [{
11334
11351
  ignorePushState?: boolean;
11335
11352
  ignoreReplaceState?: boolean;
11336
11353
  }];
11354
+ // ----- svelte/no-navigation-without-resolve -----
11355
+ type SvelteNoNavigationWithoutResolve = [] | [{
11356
+ ignoreGoto?: boolean;
11357
+ ignoreLinks?: boolean;
11358
+ ignorePushState?: boolean;
11359
+ ignoreReplaceState?: boolean;
11360
+ }];
11337
11361
  // ----- svelte/no-reactive-reassign -----
11338
11362
  type SvelteNoReactiveReassign = [] | [{
11339
11363
  props?: boolean;
@@ -12786,7 +12810,6 @@ type UnocssEnforceClassCompile = [] | [{
12786
12810
  type UnocssOrder = [] | [{
12787
12811
  unoFunctions?: string[];
12788
12812
  unoVariables?: string[];
12789
- [k: string]: unknown | undefined;
12790
12813
  }];
12791
12814
  // ----- unused-imports/no-unused-imports -----
12792
12815
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
package/dist/index.js CHANGED
@@ -1238,6 +1238,7 @@ async function typescript(options = {}) {
1238
1238
  const typeAwareRules = {
1239
1239
  "dot-notation": "off",
1240
1240
  "no-implied-eval": "off",
1241
+ "require-await": "off",
1241
1242
  "ts/await-thenable": "error",
1242
1243
  "ts/dot-notation": ["error", { allowKeywords: true }],
1243
1244
  "ts/no-floating-promises": "error",
@@ -1392,6 +1393,7 @@ function unicorn(options = {}) {
1392
1393
  "unicorn/prefer-array-some": "error",
1393
1394
  "unicorn/prefer-at": "error",
1394
1395
  "unicorn/prefer-blob-reading-methods": "error",
1396
+ "unicorn/prefer-class-fields": "error",
1395
1397
  "unicorn/prefer-date-now": "error",
1396
1398
  "unicorn/prefer-dom-node-append": "error",
1397
1399
  "unicorn/prefer-dom-node-dataset": "error",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "4.6.0",
4
+ "version": "4.6.2",
5
5
  "description": "Donny's ESLint config",
6
6
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
7
7
  "license": "MIT",
@@ -71,9 +71,9 @@
71
71
  "dependencies": {
72
72
  "@antfu/install-pkg": "^1.1.0",
73
73
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
74
- "@typescript-eslint/eslint-plugin": "^8.39.1",
75
- "@typescript-eslint/parser": "^8.39.1",
76
- "@vitest/eslint-plugin": "^1.3.4",
74
+ "@typescript-eslint/eslint-plugin": "^8.42.0",
75
+ "@typescript-eslint/parser": "^8.42.0",
76
+ "@vitest/eslint-plugin": "^1.3.7",
77
77
  "eslint-config-flat-gitignore": "^2.1.0",
78
78
  "eslint-config-prettier": "^10.1.8",
79
79
  "eslint-plugin-antfu": "^3.1.1",
@@ -81,20 +81,20 @@
81
81
  "eslint-plugin-de-morgan": "^1.3.1",
82
82
  "eslint-plugin-eslint-comments": "^3.2.0",
83
83
  "eslint-plugin-import-lite": "^0.3.0",
84
- "eslint-plugin-jsdoc": "^54.0.0",
84
+ "eslint-plugin-jsdoc": "^54.3.1",
85
85
  "eslint-plugin-jsonc": "^2.20.1",
86
86
  "eslint-plugin-n": "^17.21.3",
87
87
  "eslint-plugin-no-only-tests": "^3.3.0",
88
88
  "eslint-plugin-perfectionist": "^4.15.0",
89
89
  "eslint-plugin-regexp": "^2.10.0",
90
90
  "eslint-plugin-unicorn": "^60.0.0",
91
- "eslint-plugin-unused-imports": "^4.1.4",
91
+ "eslint-plugin-unused-imports": "^4.2.0",
92
92
  "eslint-plugin-vue": "^10.4.0",
93
93
  "eslint-plugin-yml": "^1.18.0",
94
94
  "eslint-typegen": "^2.3.0",
95
95
  "globals": "^16.3.0",
96
96
  "jsonc-eslint-parser": "^2.4.0",
97
- "local-pkg": "^1.1.1",
97
+ "local-pkg": "^1.1.2",
98
98
  "parse-gitignore": "^2.0.0",
99
99
  "picocolors": "^1.1.1",
100
100
  "prettier": "^3.6.2",
@@ -105,25 +105,25 @@
105
105
  },
106
106
  "devDependencies": {
107
107
  "@antfu/ni": "^25.0.0",
108
- "@eslint-react/eslint-plugin": "^1.52.4",
108
+ "@eslint-react/eslint-plugin": "^1.52.9",
109
109
  "@eslint/config-inspector": "^1.2.0",
110
110
  "@types/eslint-config-prettier": "^6.11.3",
111
- "@types/node": "^24.2.1",
111
+ "@types/node": "^24.3.0",
112
112
  "@types/prompts": "^2.4.9",
113
113
  "@types/yargs": "^17.0.33",
114
- "@unocss/eslint-plugin": "^66.4.2",
114
+ "@unocss/eslint-plugin": "^66.5.0",
115
115
  "bumpp": "^10.2.3",
116
- "eslint": "^9.33.0",
116
+ "eslint": "^9.34.0",
117
117
  "eslint-plugin-react-hooks": "6.0.0-rc1",
118
118
  "eslint-plugin-react-refresh": "^0.4.20",
119
- "eslint-plugin-svelte": "^3.11.0",
119
+ "eslint-plugin-svelte": "^3.12.0",
120
120
  "eslint-plugin-tailwindcss": "^3.18.2",
121
121
  "jiti": "^2.5.1",
122
122
  "nano-staged": "^0.8.0",
123
123
  "simple-git-hooks": "^2.13.1",
124
- "svelte": "^5.38.1",
124
+ "svelte": "^5.38.6",
125
125
  "svelte-eslint-parser": "^1.3.1",
126
- "tsdown": "^0.14.1",
126
+ "tsdown": "^0.14.2",
127
127
  "typescript": "^5.9.2"
128
128
  },
129
129
  "simple-git-hooks": {