@coderwyd/eslint-config 4.5.0 → 4.6.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/dist/cli.d.ts CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {};
package/dist/cli.js CHANGED
@@ -10,29 +10,29 @@ import prompts from "prompts";
10
10
  import { execSync } from "node:child_process";
11
11
 
12
12
  //#region package.json
13
- var version = "4.5.0";
13
+ var version = "4.6.0";
14
14
  var devDependencies = {
15
15
  "@antfu/ni": "^25.0.0",
16
- "@eslint-react/eslint-plugin": "^1.52.3",
17
- "@eslint/config-inspector": "^1.1.0",
16
+ "@eslint-react/eslint-plugin": "^1.52.4",
17
+ "@eslint/config-inspector": "^1.2.0",
18
18
  "@types/eslint-config-prettier": "^6.11.3",
19
- "@types/node": "^24.1.0",
19
+ "@types/node": "^24.2.1",
20
20
  "@types/prompts": "^2.4.9",
21
21
  "@types/yargs": "^17.0.33",
22
- "@unocss/eslint-plugin": "^66.3.3",
23
- "bumpp": "^10.2.0",
24
- "eslint": "^9.31.0",
22
+ "@unocss/eslint-plugin": "^66.4.2",
23
+ "bumpp": "^10.2.3",
24
+ "eslint": "^9.33.0",
25
25
  "eslint-plugin-react-hooks": "6.0.0-rc1",
26
26
  "eslint-plugin-react-refresh": "^0.4.20",
27
27
  "eslint-plugin-svelte": "^3.11.0",
28
28
  "eslint-plugin-tailwindcss": "^3.18.2",
29
- "jiti": "^2.5.0",
29
+ "jiti": "^2.5.1",
30
30
  "nano-staged": "^0.8.0",
31
- "simple-git-hooks": "^2.13.0",
32
- "svelte": "^5.36.14",
33
- "svelte-eslint-parser": "^1.3.0",
34
- "tsdown": "^0.13.0",
35
- "typescript": "^5.8.3"
31
+ "simple-git-hooks": "^2.13.1",
32
+ "svelte": "^5.38.1",
33
+ "svelte-eslint-parser": "^1.3.1",
34
+ "tsdown": "^0.14.1",
35
+ "typescript": "^5.9.2"
36
36
  };
37
37
 
38
38
  //#endregion
@@ -181,4 +181,5 @@ const instance = yargs(hideBin(process.argv)).scriptName("@coderwyd/eslint-confi
181
181
  }).showHelpOnFail(false).alias("h", "help").version("version", version).alias("v", "version");
182
182
  instance.help().argv;
183
183
 
184
- //#endregion
184
+ //#endregion
185
+ export { };
package/dist/index.d.ts CHANGED
@@ -5559,7 +5559,7 @@ interface RuleOptions {
5559
5559
  * Order of UnoCSS utilities in class attribute
5560
5560
  * @see https://unocss.dev/integrations/eslint#rules
5561
5561
  */
5562
- 'unocss/order'?: Linter.RuleEntry<[]>;
5562
+ 'unocss/order'?: Linter.RuleEntry<UnocssOrder>;
5563
5563
  /**
5564
5564
  * Order of UnoCSS attributes
5565
5565
  * @see https://unocss.dev/integrations/eslint#rules
@@ -6125,6 +6125,16 @@ interface RuleOptions {
6125
6125
  * @see https://eslint.vuejs.org/rules/no-mutating-props.html
6126
6126
  */
6127
6127
  'vue/no-mutating-props'?: Linter.RuleEntry<VueNoMutatingProps>;
6128
+ /**
6129
+ * Disallow negated conditions in `<template>`
6130
+ * @see https://eslint.vuejs.org/rules/no-negated-condition.html
6131
+ */
6132
+ 'vue/no-negated-condition'?: Linter.RuleEntry<[]>;
6133
+ /**
6134
+ * disallow negated conditions in v-if/v-else
6135
+ * @see https://eslint.vuejs.org/rules/no-negated-v-if-condition.html
6136
+ */
6137
+ 'vue/no-negated-v-if-condition'?: Linter.RuleEntry<[]>;
6128
6138
  /**
6129
6139
  * disallow parsing errors in `<template>`
6130
6140
  * @see https://eslint.vuejs.org/rules/no-parsing-error.html
@@ -6850,6 +6860,7 @@ type AccessorPairs = [] | [{
6850
6860
  getWithoutSet?: boolean;
6851
6861
  setWithoutGet?: boolean;
6852
6862
  enforceForClassMembers?: boolean;
6863
+ enforceForTSTypes?: boolean;
6853
6864
  }];
6854
6865
  // ----- antfu/consistent-chaining -----
6855
6866
  type AntfuConsistentChaining = [] | [{
@@ -7085,7 +7096,9 @@ type GetterReturn = [] | [{
7085
7096
  allowImplicit?: boolean;
7086
7097
  }];
7087
7098
  // ----- grouped-accessor-pairs -----
7088
- type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")];
7099
+ type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")] | [("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
7100
+ enforceForTSTypes?: boolean;
7101
+ }];
7089
7102
  // ----- handle-callback-err -----
7090
7103
  type HandleCallbackErr = [] | [string];
7091
7104
  // ----- id-blacklist -----
@@ -8644,10 +8657,17 @@ type NoRestrictedExports = [] | [({
8644
8657
  };
8645
8658
  })];
8646
8659
  // ----- no-restricted-globals -----
8647
- type NoRestrictedGlobals = (string | {
8660
+ type NoRestrictedGlobals = ((string | {
8648
8661
  name: string;
8649
8662
  message?: string;
8650
- })[];
8663
+ })[] | [] | [{
8664
+ globals: (string | {
8665
+ name: string;
8666
+ message?: string;
8667
+ })[];
8668
+ checkGlobalObject?: boolean;
8669
+ globalObjects?: string[];
8670
+ }]);
8651
8671
  // ----- no-restricted-imports -----
8652
8672
  type NoRestrictedImports = ((string | {
8653
8673
  name: string;
@@ -8776,6 +8796,7 @@ type NoUnusedVars = [] | [(("all" | "local") | {
8776
8796
  caughtErrorsIgnorePattern?: string;
8777
8797
  destructuredArrayIgnorePattern?: string;
8778
8798
  ignoreClassWithStaticInitBlock?: boolean;
8799
+ ignoreUsingDeclarations?: boolean;
8779
8800
  reportUsedIgnorePattern?: boolean;
8780
8801
  })];
8781
8802
  // ----- no-use-before-define -----
@@ -9141,6 +9162,8 @@ type OneVar = [] | [(("always" | "never" | "consecutive") | {
9141
9162
  var?: ("always" | "never" | "consecutive");
9142
9163
  let?: ("always" | "never" | "consecutive");
9143
9164
  const?: ("always" | "never" | "consecutive");
9165
+ using?: ("always" | "never" | "consecutive");
9166
+ awaitUsing?: ("always" | "never" | "consecutive");
9144
9167
  } | {
9145
9168
  initialized?: ("always" | "never" | "consecutive");
9146
9169
  uninitialized?: ("always" | "never" | "consecutive");
@@ -12759,6 +12782,12 @@ type UnocssEnforceClassCompile = [] | [{
12759
12782
  prefix?: string;
12760
12783
  enableFix?: boolean;
12761
12784
  }];
12785
+ // ----- unocss/order -----
12786
+ type UnocssOrder = [] | [{
12787
+ unoFunctions?: string[];
12788
+ unoVariables?: string[];
12789
+ [k: string]: unknown | undefined;
12790
+ }];
12762
12791
  // ----- unused-imports/no-unused-imports -----
12763
12792
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
12764
12793
  args?: ("all" | "after-used" | "none");
@@ -13511,6 +13540,7 @@ type VueNoDeprecatedRouterLinkTagProp = [] | [{
13511
13540
  // ----- vue/no-deprecated-slot-attribute -----
13512
13541
  type VueNoDeprecatedSlotAttribute = [] | [{
13513
13542
  ignore?: string[];
13543
+ ignoreParents?: string[];
13514
13544
  }];
13515
13545
  // ----- vue/no-dupe-keys -----
13516
13546
  type VueNoDupeKeys = [] | [{
package/dist/index.js CHANGED
@@ -232,7 +232,7 @@ async function imports() {
232
232
  "antfu/import-dedupe": "error",
233
233
  "antfu/no-import-dist": "error",
234
234
  "antfu/no-import-node-modules-by-path": "error",
235
- "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
235
+ "import/consistent-type-specifier-style": ["error", "top-level"],
236
236
  "import/first": "error",
237
237
  "import/newline-after-import": ["error", { count: 1 }],
238
238
  "import/no-duplicates": "error",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "4.5.0",
4
+ "version": "4.6.0",
5
5
  "description": "Donny's ESLint config",
6
6
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
7
7
  "license": "MIT",
@@ -71,27 +71,27 @@
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.38.0",
75
- "@typescript-eslint/parser": "^8.38.0",
74
+ "@typescript-eslint/eslint-plugin": "^8.39.1",
75
+ "@typescript-eslint/parser": "^8.39.1",
76
76
  "@vitest/eslint-plugin": "^1.3.4",
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",
80
80
  "eslint-plugin-command": "^3.3.1",
81
- "eslint-plugin-de-morgan": "^1.3.0",
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": "^51.4.1",
84
+ "eslint-plugin-jsdoc": "^54.0.0",
85
85
  "eslint-plugin-jsonc": "^2.20.1",
86
- "eslint-plugin-n": "^17.21.0",
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
- "eslint-plugin-regexp": "^2.9.0",
89
+ "eslint-plugin-regexp": "^2.10.0",
90
90
  "eslint-plugin-unicorn": "^60.0.0",
91
91
  "eslint-plugin-unused-imports": "^4.1.4",
92
- "eslint-plugin-vue": "^10.3.0",
92
+ "eslint-plugin-vue": "^10.4.0",
93
93
  "eslint-plugin-yml": "^1.18.0",
94
- "eslint-typegen": "^2.2.1",
94
+ "eslint-typegen": "^2.3.0",
95
95
  "globals": "^16.3.0",
96
96
  "jsonc-eslint-parser": "^2.4.0",
97
97
  "local-pkg": "^1.1.1",
@@ -105,26 +105,26 @@
105
105
  },
106
106
  "devDependencies": {
107
107
  "@antfu/ni": "^25.0.0",
108
- "@eslint-react/eslint-plugin": "^1.52.3",
109
- "@eslint/config-inspector": "^1.1.0",
108
+ "@eslint-react/eslint-plugin": "^1.52.4",
109
+ "@eslint/config-inspector": "^1.2.0",
110
110
  "@types/eslint-config-prettier": "^6.11.3",
111
- "@types/node": "^24.1.0",
111
+ "@types/node": "^24.2.1",
112
112
  "@types/prompts": "^2.4.9",
113
113
  "@types/yargs": "^17.0.33",
114
- "@unocss/eslint-plugin": "^66.3.3",
115
- "bumpp": "^10.2.0",
116
- "eslint": "^9.31.0",
114
+ "@unocss/eslint-plugin": "^66.4.2",
115
+ "bumpp": "^10.2.3",
116
+ "eslint": "^9.33.0",
117
117
  "eslint-plugin-react-hooks": "6.0.0-rc1",
118
118
  "eslint-plugin-react-refresh": "^0.4.20",
119
119
  "eslint-plugin-svelte": "^3.11.0",
120
120
  "eslint-plugin-tailwindcss": "^3.18.2",
121
- "jiti": "^2.5.0",
121
+ "jiti": "^2.5.1",
122
122
  "nano-staged": "^0.8.0",
123
- "simple-git-hooks": "^2.13.0",
124
- "svelte": "^5.36.14",
125
- "svelte-eslint-parser": "^1.3.0",
126
- "tsdown": "^0.13.0",
127
- "typescript": "^5.8.3"
123
+ "simple-git-hooks": "^2.13.1",
124
+ "svelte": "^5.38.1",
125
+ "svelte-eslint-parser": "^1.3.1",
126
+ "tsdown": "^0.14.1",
127
+ "typescript": "^5.9.2"
128
128
  },
129
129
  "simple-git-hooks": {
130
130
  "pre-commit": "pnpm exec nano-staged"