Skip to content

Commit 27ef2c6

Browse files
committed
fix(eslint-config): Enhanced ESLint comments plugin configuration to report unused directives and inline configs as errors.
- Added "esbuild" to the list of built dependencies in package.json. - Updated "@arethetypeswrong/cli" to version 0.18.1 in eslint-config package.json. - Upgraded "@tanstack/eslint-plugin-query" to version 5.78.0 in eslint-config package.json. - Updated "eslint-plugin-react-you-might-not-need-an-effect" to version 0.0.35 in eslint-config package.json. - Bumped "execa" to version 9.6.0 in eslint-config package.json. - Updated esbuild version to 0.25.5 across various dependencies in pnpm-lock.yaml.
1 parent 6ba005c commit 27ef2c6

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
},
136136
"pnpm": {
137137
"onlyBuiltDependencies": [
138+
"esbuild",
138139
"nx"
139140
],
140141
"overrides": {

packages/eslint-config/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@
171171
},
172172
"devDependencies": {
173173
"@anolilab/semantic-release-preset": "10.0.5",
174-
"@arethetypeswrong/cli": "^0.17.4",
174+
"@arethetypeswrong/cli": "^0.18.1",
175175
"@eslint-react/eslint-plugin": "^1.50.0",
176176
"@eslint/config-inspector": "^1.0.2",
177177
"@eslint/css": "^0.8.1",
178178
"@stylistic/eslint-plugin-migrate": "^4.4.0",
179-
"@tanstack/eslint-plugin-query": "^5.74.7",
179+
"@tanstack/eslint-plugin-query": "^5.78.0",
180180
"@tanstack/eslint-plugin-router": "^1.115.0",
181181
"@testing-library/dom": "^10.4.0",
182182
"@total-typescript/ts-reset": "^0.6.1",
@@ -188,7 +188,7 @@
188188
"@unocss/eslint-plugin": "^66.1.2",
189189
"@visulima/packem": "^1.19.1",
190190
"astro-eslint-parser": "^1.2.2",
191-
"esbuild": "^0.25.4",
191+
"esbuild": "^0.25.5",
192192
"eslint": "^9.27.0",
193193
"eslint-plugin-astro": "^1.3.1",
194194
"eslint-plugin-format": "^1.0.1",
@@ -198,7 +198,7 @@
198198
"eslint-plugin-react-hooks": "^5.2.0",
199199
"eslint-plugin-react-perf": "^3.3.3",
200200
"eslint-plugin-react-refresh": "^0.4.20",
201-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.0.33",
201+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.0.35",
202202
"eslint-plugin-storybook": "^0.12.0",
203203
"eslint-plugin-tailwindcss": "^3.18.0",
204204
"eslint-plugin-testing-library": "^7.2.2",
@@ -208,7 +208,7 @@
208208
"eslint-plugin-you-dont-need-lodash-underscore": "^6.14.0",
209209
"eslint-plugin-zod": "^1.4.0",
210210
"eslint-typegen": "^2.2.0",
211-
"execa": "^9.5.3",
211+
"execa": "^9.6.0",
212212
"react": "^19.1.0",
213213
"rimraf": "^6.0.1",
214214
"semantic-release": "^24.2.5",

packages/eslint-config/src/config/plugins/comments.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export default createConfig<OptionsFiles & OptionsOverrides>("all", async (confi
1010
return [
1111
{
1212
files,
13+
linterOptions: {
14+
reportUnusedDisableDirectives: "error",
15+
reportUnusedInlineConfigs: "error",
16+
},
1317
name: "anolilab/eslint-comments/rules",
1418
plugins: {
1519
"eslint-comments": pluginComments,

packages/eslint-config/src/config/plugins/unicorn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export default createConfig<OptionsFiles & OptionsHasPrettier & OptionsOverrides
5454
},
5555
],
5656

57+
"unicorn/no-abusive-eslint-disable": "error",
58+
5759
"unicorn/no-array-for-each": "off",
5860

5961
"unicorn/no-instanceof-builtins": "error",

0 commit comments

Comments
 (0)