@wkovacs64/eslint-config 7.14.1 → 8.0.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/index.js +10 -7
- package/package.json +16 -14
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Forked from https://github.com/epicweb-dev/config
|
|
3
3
|
//
|
|
4
|
+
import { fixupPluginRules } from "@eslint/compat";
|
|
4
5
|
import globals from "globals";
|
|
5
6
|
import eslint from "@eslint/js";
|
|
6
7
|
import tseslint from "typescript-eslint";
|
|
@@ -60,7 +61,7 @@ export const config = [
|
|
|
60
61
|
eslint.configs.recommended,
|
|
61
62
|
{
|
|
62
63
|
plugins: {
|
|
63
|
-
import: (await import("eslint-plugin-import-x")).default,
|
|
64
|
+
import: fixupPluginRules((await import("eslint-plugin-import-x")).default),
|
|
64
65
|
},
|
|
65
66
|
languageOptions: {
|
|
66
67
|
globals: {
|
|
@@ -88,8 +89,8 @@ export const config = [
|
|
|
88
89
|
? {
|
|
89
90
|
files: ["**/*.tsx", "**/*.jsx"],
|
|
90
91
|
plugins: {
|
|
91
|
-
react: reactPlugin,
|
|
92
|
-
"jsx-a11y": jsxA11yPlugin,
|
|
92
|
+
react: fixupPluginRules(reactPlugin),
|
|
93
|
+
"jsx-a11y": fixupPluginRules(jsxA11yPlugin),
|
|
93
94
|
},
|
|
94
95
|
languageOptions: {
|
|
95
96
|
parserOptions: {
|
|
@@ -131,7 +132,7 @@ export const config = [
|
|
|
131
132
|
files: ["**/*.ts?(x)", "**/*.js?(x)"],
|
|
132
133
|
ignores: [...allPlaywrightFiles],
|
|
133
134
|
plugins: {
|
|
134
|
-
"react-hooks": (await import("eslint-plugin-react-hooks")).default,
|
|
135
|
+
"react-hooks": fixupPluginRules((await import("eslint-plugin-react-hooks")).default),
|
|
135
136
|
},
|
|
136
137
|
rules: {
|
|
137
138
|
// Core hooks rules
|
|
@@ -314,7 +315,9 @@ export const config = [
|
|
|
314
315
|
files: testFiles,
|
|
315
316
|
ignores: [...playwrightTestFiles],
|
|
316
317
|
plugins: {
|
|
317
|
-
"testing-library": (
|
|
318
|
+
"testing-library": fixupPluginRules(
|
|
319
|
+
(await import("eslint-plugin-testing-library")).default,
|
|
320
|
+
),
|
|
318
321
|
},
|
|
319
322
|
rules: {
|
|
320
323
|
"testing-library/await-async-events": ERROR,
|
|
@@ -352,7 +355,7 @@ export const config = [
|
|
|
352
355
|
files: testFiles,
|
|
353
356
|
ignores: [...playwrightTestFiles],
|
|
354
357
|
plugins: {
|
|
355
|
-
"jest-dom": (await import("eslint-plugin-jest-dom")).default,
|
|
358
|
+
"jest-dom": fixupPluginRules((await import("eslint-plugin-jest-dom")).default),
|
|
356
359
|
},
|
|
357
360
|
rules: {
|
|
358
361
|
"jest-dom/prefer-checked": ERROR,
|
|
@@ -375,7 +378,7 @@ export const config = [
|
|
|
375
378
|
files: testFiles,
|
|
376
379
|
ignores: [...playwrightTestFiles],
|
|
377
380
|
plugins: {
|
|
378
|
-
vitest: (await import("@vitest/eslint-plugin")).default,
|
|
381
|
+
vitest: fixupPluginRules((await import("@vitest/eslint-plugin")).default),
|
|
379
382
|
},
|
|
380
383
|
rules: {
|
|
381
384
|
// you don't want the editor to autofix this, but we do want to be
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wkovacs64/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "@wKovacs64 ESLint config",
|
|
6
6
|
"keywords": [
|
|
@@ -36,28 +36,30 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eslint/
|
|
40
|
-
"@
|
|
41
|
-
"eslint-plugin
|
|
42
|
-
"eslint-plugin-
|
|
39
|
+
"@eslint/compat": "^2.1.0",
|
|
40
|
+
"@eslint/js": "^10.0.1",
|
|
41
|
+
"@vitest/eslint-plugin": "^1.6.21",
|
|
42
|
+
"eslint-plugin-astro": "^2.1.1",
|
|
43
|
+
"eslint-plugin-import-x": "^4.17.1",
|
|
43
44
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
44
45
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
45
|
-
"eslint-plugin-playwright": "^2.10.
|
|
46
|
+
"eslint-plugin-playwright": "^2.10.4",
|
|
46
47
|
"eslint-plugin-react": "^7.37.5",
|
|
47
48
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
48
49
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
49
|
-
"globals": "^17.
|
|
50
|
-
"typescript-eslint": "^8.
|
|
50
|
+
"globals": "^17.7.0",
|
|
51
|
+
"typescript-eslint": "^8.62.1"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@changesets/changelog-github": "0.
|
|
54
|
+
"@changesets/changelog-github": "0.7.0",
|
|
54
55
|
"@changesets/cli": "2.31.0",
|
|
55
|
-
"@types/node": "24.
|
|
56
|
-
"@types/react": "19.2.
|
|
56
|
+
"@types/node": "24.13.2",
|
|
57
|
+
"@types/react": "19.2.17",
|
|
57
58
|
"@types/react-dom": "19.2.3",
|
|
58
|
-
"eslint": "
|
|
59
|
-
"oxfmt": "0.
|
|
60
|
-
"
|
|
59
|
+
"eslint": "10.6.0",
|
|
60
|
+
"oxfmt": "0.57.0",
|
|
61
|
+
"react": "19.2.7",
|
|
62
|
+
"typescript": "6.0.3"
|
|
61
63
|
},
|
|
62
64
|
"engines": {
|
|
63
65
|
"node": "^18.18.0 || >=20.0.0"
|