@infernodesign/eslint-config 2.6.0 → 2.7.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_NAME } from "./constants-BBBpjSg4.js";
1
+ import { t as PACKAGE_NAME } from "./constants-BxEizS7D.js";
2
2
  import fs from "node:fs/promises";
3
3
  import fs$1 from "node:fs";
4
4
  import path from "node:path";
@@ -8,7 +8,7 @@ import { cac } from "cac";
8
8
  import parse from "parse-gitignore";
9
9
  import { execSync } from "node:child_process";
10
10
  //#region package.json
11
- var version = "2.6.0";
11
+ var version = "2.7.0";
12
12
  //#endregion
13
13
  //#region src/cli/constants.ts
14
14
  const vscodeSettingsString = `
@@ -186,21 +186,21 @@ async function updateEslintFiles(result) {
186
186
  //#endregion
187
187
  //#region src/cli/constants-generated.ts
188
188
  const versionsMap = {
189
- "@eslint-react/eslint-plugin": "^5.8.1",
190
- "@next/eslint-plugin-next": "^16.2.6",
191
- "@unocss/eslint-plugin": "^66.6.8",
189
+ "@eslint-react/eslint-plugin": "^5.8.10",
190
+ "@next/eslint-plugin-next": "^16.2.7",
191
+ "@unocss/eslint-plugin": "^66.7.0",
192
192
  "astro-eslint-parser": "^1.4.0",
193
- "eslint": "^10.4.0",
193
+ "eslint": "^10.4.1",
194
194
  "eslint-plugin-astro": "^1.7.0",
195
195
  "eslint-plugin-better-tailwindcss": "^4.5.0",
196
196
  "eslint-plugin-format": "^2.0.1",
197
197
  "eslint-plugin-react-refresh": "^0.5.2",
198
198
  "eslint-plugin-solid": "^0.14.5",
199
- "eslint-plugin-storybook": "^10.4.0",
200
- "eslint-plugin-svelte": "^3.17.1",
199
+ "eslint-plugin-storybook": "^10.4.2",
200
+ "eslint-plugin-svelte": "^3.19.0",
201
201
  "prettier-plugin-astro": "^0.14.1",
202
202
  "prettier-plugin-slidev": "^1.0.5",
203
- "svelte-eslint-parser": "^1.6.1"
203
+ "svelte-eslint-parser": "^1.7.1"
204
204
  };
205
205
  //#endregion
206
206
  //#region src/cli/stages/update-package-json.ts
package/dist/index.d.ts CHANGED
@@ -3463,7 +3463,7 @@ interface RuleOptions {
3463
3463
  */
3464
3464
  'react/jsx-no-useless-fragment'?: Linter.RuleEntry<ReactJsxNoUselessFragment>;
3465
3465
  /**
3466
- * Enforces the context name to be a valid component name with the suffix 'Context'.
3466
+ * Enforces identifier names assigned from `createContext` calls to be a valid component name with the suffix `Context`.
3467
3467
  * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3468
3468
  */
3469
3469
  'react/naming-convention-context-name'?: Linter.RuleEntry<[]>;
@@ -3543,7 +3543,7 @@ interface RuleOptions {
3543
3543
  */
3544
3544
  'react/no-context-provider'?: Linter.RuleEntry<[]>;
3545
3545
  /**
3546
- * Disallows 'createRef' in function components.
3546
+ * Disallows 'createRef' in function components and Hooks.
3547
3547
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3548
3548
  */
3549
3549
  'react/no-create-ref'?: Linter.RuleEntry<[]>;
@@ -3668,7 +3668,7 @@ interface RuleOptions {
3668
3668
  */
3669
3669
  'react/no-unused-props'?: Linter.RuleEntry<[]>;
3670
3670
  /**
3671
- * Warns about state variables that are defined but never used, or only used in effects.
3671
+ * Warns about state variables that are defined but never used.
3672
3672
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3673
3673
  */
3674
3674
  'react/no-unused-state'?: Linter.RuleEntry<[]>;
@@ -3838,7 +3838,7 @@ interface RuleOptions {
3838
3838
  */
3839
3839
  'react/x-no-context-provider'?: Linter.RuleEntry<[]>;
3840
3840
  /**
3841
- * Disallows 'createRef' in function components.
3841
+ * Disallows 'createRef' in function components and Hooks.
3842
3842
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3843
3843
  */
3844
3844
  'react/x-no-create-ref'?: Linter.RuleEntry<[]>;
@@ -3963,7 +3963,7 @@ interface RuleOptions {
3963
3963
  */
3964
3964
  'react/x-no-unused-props'?: Linter.RuleEntry<[]>;
3965
3965
  /**
3966
- * Warns about state variables that are defined but never used, or only used in effects.
3966
+ * Warns about state variables that are defined but never used.
3967
3967
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3968
3968
  */
3969
3969
  'react/x-no-unused-state'?: Linter.RuleEntry<[]>;
@@ -5385,6 +5385,11 @@ interface RuleOptions {
5385
5385
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
5386
5386
  */
5387
5387
  'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
5388
+ /**
5389
+ * disallow `<style>` elements nested inside other elements or blocks
5390
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-nested-style-tag/
5391
+ */
5392
+ 'svelte/no-nested-style-tag'?: Linter.RuleEntry<[]>;
5388
5393
  /**
5389
5394
  * disallow use of not function in event handler
5390
5395
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
@@ -5500,6 +5505,11 @@ interface RuleOptions {
5500
5505
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
5501
5506
  */
5502
5507
  'svelte/prefer-const'?: Linter.RuleEntry<SveltePreferConst>;
5508
+ /**
5509
+ * disallow unnecessary `$derived.by()` when `$derived()` is sufficient
5510
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-derived-over-derived-by/
5511
+ */
5512
+ 'svelte/prefer-derived-over-derived-by'?: Linter.RuleEntry<[]>;
5503
5513
  /**
5504
5514
  * destructure values from object stores for better change tracking & fewer redraws
5505
5515
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_NAME } from "./constants-BBBpjSg4.js";
1
+ import { t as PACKAGE_NAME } from "./constants-BxEizS7D.js";
2
2
  import { FlatConfigComposer } from "eslint-flat-config-utils";
3
3
  import process$1 from "node:process";
4
4
  import fs from "node:fs/promises";
@@ -2084,7 +2084,8 @@ function sortTsconfig() {
2084
2084
  "include",
2085
2085
  "exclude"
2086
2086
  ],
2087
- pathPattern: "^$"
2087
+ pathPattern: "^$",
2088
+ allowLineSeparatedGroups: true
2088
2089
  },
2089
2090
  {
2090
2091
  order: [
@@ -2180,7 +2181,8 @@ function sortTsconfig() {
2180
2181
  "skipDefaultLibCheck",
2181
2182
  "skipLibCheck"
2182
2183
  ],
2183
- pathPattern: "^compilerOptions$"
2184
+ pathPattern: "^compilerOptions$",
2185
+ allowLineSeparatedGroups: true
2184
2186
  }
2185
2187
  ] }
2186
2188
  }];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infernodesign/eslint-config",
3
3
  "description": "ESLint config for Inferno Design.",
4
- "version": "2.6.0",
4
+ "version": "2.7.0",
5
5
  "type": "module",
6
6
  "author": "Inferno Design <support@infernodesign.com>",
7
7
  "license": "MIT",
@@ -33,8 +33,7 @@
33
33
  "package.json"
34
34
  ],
35
35
  "publishConfig": {
36
- "registry": "https://registry.npmjs.org",
37
- "provenance": true
36
+ "registry": "https://registry.npmjs.org"
38
37
  },
39
38
  "scripts": {
40
39
  "build": "bun run gen && tsdown --clean --dts",
@@ -48,19 +47,19 @@
48
47
  },
49
48
  "dependencies": {
50
49
  "@antfu/install-pkg": "1.1.0",
51
- "@clack/prompts": "1.4.0",
50
+ "@clack/prompts": "1.5.0",
52
51
  "@e18e/eslint-plugin": "0.5.0",
53
- "@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
52
+ "@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
54
53
  "@eslint/compat": "2.1.0",
55
54
  "@eslint/config-array": "0.23.5",
56
55
  "@eslint/config-helpers": "0.6.0",
57
- "@eslint/markdown": "8.0.1",
56
+ "@eslint/markdown": "8.0.2",
58
57
  "@stylistic/eslint-plugin": "5.10.0",
59
- "@typescript-eslint/eslint-plugin": "8.59.4",
60
- "@typescript-eslint/parser": "8.59.4",
61
- "@typescript-eslint/utils": "8.59.4",
62
- "@vitest/eslint-plugin": "1.6.17",
63
- "ansis": "4.3.0",
58
+ "@typescript-eslint/eslint-plugin": "8.60.1",
59
+ "@typescript-eslint/parser": "8.60.1",
60
+ "@typescript-eslint/utils": "8.60.1",
61
+ "@vitest/eslint-plugin": "1.6.19",
62
+ "ansis": "4.3.1",
64
63
  "cac": "7.0.0",
65
64
  "eslint-config-flat-gitignore": "2.3.0",
66
65
  "eslint-flat-config-utils": "3.2.0",
@@ -68,38 +67,38 @@
68
67
  "eslint-plugin-antfu": "3.2.3",
69
68
  "eslint-plugin-command": "3.5.2",
70
69
  "eslint-plugin-import-lite": "0.6.0",
71
- "eslint-plugin-jsdoc": "62.9.0",
72
- "eslint-plugin-jsonc": "3.1.2",
70
+ "eslint-plugin-jsdoc": "63.0.1",
71
+ "eslint-plugin-jsonc": "3.2.0",
73
72
  "eslint-plugin-n": "18.0.1",
74
73
  "eslint-plugin-no-only-tests": "3.4.0",
75
74
  "eslint-plugin-perfectionist": "5.9.0",
76
- "eslint-plugin-pnpm": "1.6.0",
75
+ "eslint-plugin-pnpm": "1.6.1",
77
76
  "eslint-plugin-regexp": "3.1.0",
78
- "eslint-plugin-toml": "1.3.1",
77
+ "eslint-plugin-toml": "1.4.0",
79
78
  "eslint-plugin-unicorn": "64.0.0",
80
79
  "eslint-plugin-unused-imports": "4.4.1",
81
- "eslint-plugin-vue": "10.9.1",
82
- "eslint-plugin-yml": "3.3.2",
80
+ "eslint-plugin-vue": "10.9.2",
81
+ "eslint-plugin-yml": "3.4.0",
83
82
  "eslint-processor-vue-blocks": "2.0.0",
84
83
  "globals": "17.6.0",
85
84
  "jsonc-eslint-parser": "3.1.0",
86
- "local-pkg": "1.1.2",
85
+ "local-pkg": "1.2.1",
87
86
  "parse-gitignore": "2.0.0",
88
87
  "toml-eslint-parser": "1.0.3",
89
- "vue-eslint-parser": "10.4.0",
88
+ "vue-eslint-parser": "10.4.1",
90
89
  "yaml-eslint-parser": "2.0.0"
91
90
  },
92
91
  "devDependencies": {
93
- "@eslint-react/eslint-plugin": "5.8.1",
94
- "@eslint/config-inspector": "3.0.2",
92
+ "@eslint-react/eslint-plugin": "5.8.10",
93
+ "@eslint/config-inspector": "3.0.4",
95
94
  "@infernodesign/typescript-config": "workspace:*",
96
- "@next/eslint-plugin-next": "16.2.6",
95
+ "@next/eslint-plugin-next": "16.2.7",
97
96
  "@prettier/plugin-xml": "3.4.2",
98
97
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
99
- "@types/node": "25.9.0",
100
- "@unocss/eslint-plugin": "66.6.8",
98
+ "@types/node": "25.9.1",
99
+ "@unocss/eslint-plugin": "66.7.0",
101
100
  "astro-eslint-parser": "1.4.0",
102
- "eslint": "10.4.0",
101
+ "eslint": "10.4.1",
103
102
  "eslint-plugin-astro": "1.7.0",
104
103
  "eslint-plugin-better-tailwindcss": "4.5.0",
105
104
  "eslint-plugin-erasable-syntax-only": "0.4.1",
@@ -107,31 +106,31 @@
107
106
  "eslint-plugin-jsx-a11y": "6.10.2",
108
107
  "eslint-plugin-react-refresh": "0.5.2",
109
108
  "eslint-plugin-solid": "0.14.5",
110
- "eslint-plugin-storybook": "10.4.0",
111
- "eslint-plugin-svelte": "3.17.1",
109
+ "eslint-plugin-storybook": "10.4.2",
110
+ "eslint-plugin-svelte": "3.19.0",
112
111
  "eslint-plugin-vuejs-accessibility": "2.5.0",
113
112
  "eslint-typegen": "2.3.1",
114
113
  "execa": "9.6.1",
115
114
  "find-up-simple": "1.0.1",
116
115
  "jiti": "2.7.0",
117
- "pnpm-workspace-yaml": "1.6.0",
116
+ "pnpm-workspace-yaml": "1.6.1",
118
117
  "prettier-plugin-astro": "0.14.1",
119
118
  "prettier-plugin-slidev": "1.0.5",
120
- "svelte": "5.55.8",
121
- "svelte-eslint-parser": "1.6.1",
122
- "tinyglobby": "0.2.16",
123
- "tsdown": "0.22.0",
119
+ "svelte": "5.56.1",
120
+ "svelte-eslint-parser": "1.7.1",
121
+ "tinyglobby": "0.2.17",
122
+ "tsdown": "0.22.1",
124
123
  "typescript": "6.0.3",
125
- "vitest": "4.1.6",
126
- "vue": "3.5.34"
124
+ "vitest": "4.1.8",
125
+ "vue": "3.5.35"
127
126
  },
128
127
  "peerDependencies": {
129
- "@eslint-react/eslint-plugin": "^5.8.1",
130
- "@next/eslint-plugin-next": "^16.2.6",
128
+ "@eslint-react/eslint-plugin": "^5.8.10",
129
+ "@next/eslint-plugin-next": "^16.2.7",
131
130
  "@prettier/plugin-xml": "^3.4.2",
132
- "@unocss/eslint-plugin": "^66.6.8",
131
+ "@unocss/eslint-plugin": "^66.7.0",
133
132
  "astro-eslint-parser": "^1.4.0",
134
- "eslint": "^10.4.0",
133
+ "eslint": "^10.4.1",
135
134
  "eslint-plugin-astro": "^1.7.0",
136
135
  "eslint-plugin-better-tailwindcss": "^4.5.0",
137
136
  "eslint-plugin-erasable-syntax-only": "^0.4.1",
@@ -139,12 +138,12 @@
139
138
  "eslint-plugin-jsx-a11y": "^6.10.2",
140
139
  "eslint-plugin-react-refresh": "^0.5.2",
141
140
  "eslint-plugin-solid": "^0.14.5",
142
- "eslint-plugin-storybook": "^10.4.0",
143
- "eslint-plugin-svelte": "^3.17.1",
141
+ "eslint-plugin-storybook": "^10.4.2",
142
+ "eslint-plugin-svelte": "^3.19.0",
144
143
  "eslint-plugin-vuejs-accessibility": "^2.5.0",
145
144
  "prettier-plugin-astro": "^0.14.1",
146
145
  "prettier-plugin-slidev": "^1.0.5",
147
- "svelte-eslint-parser": "^1.6.1"
146
+ "svelte-eslint-parser": "^1.7.1"
148
147
  },
149
148
  "peerDependenciesMeta": {
150
149
  "@eslint-react/eslint-plugin": {