@antfu/eslint-config 5.1.0 → 5.2.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/cli.js CHANGED
@@ -9,7 +9,7 @@ import parse from "parse-gitignore";
9
9
  import { execSync } from "node:child_process";
10
10
 
11
11
  //#region package.json
12
- var version = "5.1.0";
12
+ var version = "5.2.1";
13
13
 
14
14
  //#endregion
15
15
  //#region src/cli/constants.ts
@@ -178,10 +178,10 @@ async function updateEslintFiles(result) {
178
178
  //#region src/cli/constants-generated.ts
179
179
  const versionsMap = {
180
180
  "@eslint-react/eslint-plugin": "^1.52.3",
181
- "@next/eslint-plugin-next": "^15.4.4",
182
- "@unocss/eslint-plugin": "^66.3.3",
181
+ "@next/eslint-plugin-next": "^15.4.6",
182
+ "@unocss/eslint-plugin": "^66.4.2",
183
183
  "astro-eslint-parser": "^1.2.2",
184
- "eslint": "^9.32.0",
184
+ "eslint": "^9.33.0",
185
185
  "eslint-plugin-astro": "^1.3.1",
186
186
  "eslint-plugin-format": "^1.0.1",
187
187
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -190,7 +190,7 @@ const versionsMap = {
190
190
  "eslint-plugin-svelte": "^3.11.0",
191
191
  "prettier-plugin-astro": "^0.14.1",
192
192
  "prettier-plugin-slidev": "^1.0.5",
193
- "svelte-eslint-parser": "^1.3.0"
193
+ "svelte-eslint-parser": "^1.3.1"
194
194
  };
195
195
 
196
196
  //#endregion
package/dist/index.d.ts CHANGED
@@ -6856,7 +6856,7 @@ interface RuleOptions {
6856
6856
  * Order of UnoCSS utilities in class attribute
6857
6857
  * @see https://unocss.dev/integrations/eslint#rules
6858
6858
  */
6859
- 'unocss/order'?: Linter.RuleEntry<[]>;
6859
+ 'unocss/order'?: Linter.RuleEntry<UnocssOrder>;
6860
6860
  /**
6861
6861
  * Order of UnoCSS attributes
6862
6862
  * @see https://unocss.dev/integrations/eslint#rules
@@ -7422,6 +7422,16 @@ interface RuleOptions {
7422
7422
  * @see https://eslint.vuejs.org/rules/no-mutating-props.html
7423
7423
  */
7424
7424
  'vue/no-mutating-props'?: Linter.RuleEntry<VueNoMutatingProps>;
7425
+ /**
7426
+ * Disallow negated conditions in `<template>`
7427
+ * @see https://eslint.vuejs.org/rules/no-negated-condition.html
7428
+ */
7429
+ 'vue/no-negated-condition'?: Linter.RuleEntry<[]>;
7430
+ /**
7431
+ * disallow negated conditions in v-if/v-else
7432
+ * @see https://eslint.vuejs.org/rules/no-negated-v-if-condition.html
7433
+ */
7434
+ 'vue/no-negated-v-if-condition'?: Linter.RuleEntry<[]>;
7425
7435
  /**
7426
7436
  * disallow parsing errors in `<template>`
7427
7437
  * @see https://eslint.vuejs.org/rules/no-parsing-error.html
@@ -10542,10 +10552,17 @@ type NoRestrictedExports = [] | [({
10542
10552
  };
10543
10553
  })];
10544
10554
  // ----- no-restricted-globals -----
10545
- type NoRestrictedGlobals = (string | {
10555
+ type NoRestrictedGlobals = ((string | {
10546
10556
  name: string;
10547
10557
  message?: string;
10548
- })[];
10558
+ })[] | [] | [{
10559
+ globals: (string | {
10560
+ name: string;
10561
+ message?: string;
10562
+ })[];
10563
+ checkGlobalObject?: boolean;
10564
+ globalObjects?: string[];
10565
+ }]);
10549
10566
  // ----- no-restricted-imports -----
10550
10567
  type NoRestrictedImports = ((string | {
10551
10568
  name: string;
@@ -11040,6 +11057,8 @@ type OneVar = [] | [(("always" | "never" | "consecutive") | {
11040
11057
  var?: ("always" | "never" | "consecutive");
11041
11058
  let?: ("always" | "never" | "consecutive");
11042
11059
  const?: ("always" | "never" | "consecutive");
11060
+ using?: ("always" | "never" | "consecutive");
11061
+ awaitUsing?: ("always" | "never" | "consecutive");
11043
11062
  } | {
11044
11063
  initialized?: ("always" | "never" | "consecutive");
11045
11064
  uninitialized?: ("always" | "never" | "consecutive");
@@ -15903,6 +15922,12 @@ type UnocssEnforceClassCompile = [] | [{
15903
15922
  prefix?: string;
15904
15923
  enableFix?: boolean;
15905
15924
  }];
15925
+ // ----- unocss/order -----
15926
+ type UnocssOrder = [] | [{
15927
+ unoFunctions?: string[];
15928
+ unoVariables?: string[];
15929
+ [k: string]: unknown | undefined;
15930
+ }];
15906
15931
  // ----- unused-imports/no-unused-imports -----
15907
15932
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
15908
15933
  args?: ("all" | "after-used" | "none");
@@ -16655,6 +16680,7 @@ type VueNoDeprecatedRouterLinkTagProp = [] | [{
16655
16680
  // ----- vue/no-deprecated-slot-attribute -----
16656
16681
  type VueNoDeprecatedSlotAttribute = [] | [{
16657
16682
  ignore?: string[];
16683
+ ignoreParents?: string[];
16658
16684
  }];
16659
16685
  // ----- vue/no-dupe-keys -----
16660
16686
  type VueNoDupeKeys = [] | [{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "5.1.0",
4
+ "version": "5.2.1",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -101,9 +101,9 @@
101
101
  "@clack/prompts": "^0.11.0",
102
102
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
103
103
  "@eslint/markdown": "^7.1.0",
104
- "@stylistic/eslint-plugin": "^5.2.2",
105
- "@typescript-eslint/eslint-plugin": "^8.38.0",
106
- "@typescript-eslint/parser": "^8.38.0",
104
+ "@stylistic/eslint-plugin": "^5.2.3",
105
+ "@typescript-eslint/eslint-plugin": "^8.39.0",
106
+ "@typescript-eslint/parser": "^8.39.0",
107
107
  "@vitest/eslint-plugin": "^1.3.4",
108
108
  "ansis": "^4.1.0",
109
109
  "cac": "^6.7.14",
@@ -113,17 +113,17 @@
113
113
  "eslint-plugin-antfu": "^3.1.1",
114
114
  "eslint-plugin-command": "^3.3.1",
115
115
  "eslint-plugin-import-lite": "^0.3.0",
116
- "eslint-plugin-jsdoc": "^52.0.0",
116
+ "eslint-plugin-jsdoc": "^52.0.4",
117
117
  "eslint-plugin-jsonc": "^2.20.1",
118
118
  "eslint-plugin-n": "^17.21.3",
119
119
  "eslint-plugin-no-only-tests": "^3.3.0",
120
120
  "eslint-plugin-perfectionist": "^4.15.0",
121
121
  "eslint-plugin-pnpm": "^1.1.0",
122
- "eslint-plugin-regexp": "^2.9.0",
122
+ "eslint-plugin-regexp": "^2.10.0",
123
123
  "eslint-plugin-toml": "^0.12.0",
124
124
  "eslint-plugin-unicorn": "^60.0.0",
125
125
  "eslint-plugin-unused-imports": "^4.1.4",
126
- "eslint-plugin-vue": "^10.3.0",
126
+ "eslint-plugin-vue": "^10.4.0",
127
127
  "eslint-plugin-yml": "^1.18.0",
128
128
  "eslint-processor-vue-blocks": "^2.0.0",
129
129
  "globals": "^16.3.0",
@@ -138,14 +138,14 @@
138
138
  "@antfu/ni": "^25.0.0",
139
139
  "@eslint-react/eslint-plugin": "^1.52.3",
140
140
  "@eslint/config-inspector": "^1.1.0",
141
- "@next/eslint-plugin-next": "^15.4.4",
141
+ "@next/eslint-plugin-next": "^15.4.6",
142
142
  "@prettier/plugin-xml": "^3.4.2",
143
143
  "@types/eslint-plugin-jsx-a11y": "^6.10.0",
144
- "@types/node": "^24.1.0",
145
- "@unocss/eslint-plugin": "^66.3.3",
144
+ "@types/node": "^24.2.1",
145
+ "@unocss/eslint-plugin": "^66.4.2",
146
146
  "astro-eslint-parser": "^1.2.2",
147
- "bumpp": "^10.2.1",
148
- "eslint": "^9.32.0",
147
+ "bumpp": "^10.2.2",
148
+ "eslint": "^9.33.0",
149
149
  "eslint-plugin-astro": "^1.3.1",
150
150
  "eslint-plugin-format": "^1.0.1",
151
151
  "eslint-plugin-jsx-a11y": "^6.10.2",
@@ -157,20 +157,20 @@
157
157
  "eslint-typegen": "^2.3.0",
158
158
  "execa": "^9.6.0",
159
159
  "jiti": "^2.5.1",
160
- "lint-staged": "^16.1.2",
160
+ "lint-staged": "^16.1.5",
161
161
  "pnpm-workspace-yaml": "^1.1.0",
162
162
  "prettier-plugin-astro": "^0.14.1",
163
163
  "prettier-plugin-slidev": "^1.0.5",
164
- "simple-git-hooks": "^2.13.0",
165
- "svelte": "^5.37.1",
166
- "svelte-eslint-parser": "^1.3.0",
164
+ "simple-git-hooks": "^2.13.1",
165
+ "svelte": "^5.38.0",
166
+ "svelte-eslint-parser": "^1.3.1",
167
167
  "tinyglobby": "^0.2.14",
168
- "tsdown": "^0.13.0",
168
+ "tsdown": "^0.14.0",
169
169
  "tsx": "^4.20.3",
170
- "typescript": "^5.8.3",
170
+ "typescript": "^5.9.2",
171
171
  "vitest": "^3.2.4",
172
172
  "vue": "^3.5.18",
173
- "@antfu/eslint-config": "5.1.0"
173
+ "@antfu/eslint-config": "5.2.1"
174
174
  },
175
175
  "resolutions": {
176
176
  "eslint": "catalog:peer"