@wkovacs64/eslint-config 8.0.0 → 8.0.2

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.
Files changed (2) hide show
  1. package/index.js +10 -7
  2. package/package.json +14 -12
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": (await import("eslint-plugin-testing-library")).default,
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": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "private": false,
5
5
  "description": "@wKovacs64 ESLint config",
6
6
  "keywords": [
@@ -36,27 +36,29 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@eslint/js": "^10.0.0",
40
- "@vitest/eslint-plugin": "^1.6.16",
41
- "eslint-plugin-astro": "^2.0.0",
42
- "eslint-plugin-import-x": "^4.16.2",
39
+ "@eslint/compat": "^2.1.0",
40
+ "@eslint/js": "^10.0.1",
41
+ "@vitest/eslint-plugin": "^1.6.23",
42
+ "eslint-plugin-astro": "^3.0.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.2",
46
+ "eslint-plugin-playwright": "^2.10.5",
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.6.0",
50
- "typescript-eslint": "^8.59.2"
50
+ "globals": "^17.7.0",
51
+ "typescript-eslint": "^8.64.0"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@changesets/changelog-github": "0.7.0",
54
- "@changesets/cli": "2.31.0",
55
- "@types/node": "24.13.2",
55
+ "@changesets/cli": "2.31.1",
56
+ "@types/node": "24.13.3",
56
57
  "@types/react": "19.2.17",
57
58
  "@types/react-dom": "19.2.3",
58
- "eslint": "10.5.0",
59
- "oxfmt": "0.56.0",
59
+ "eslint": "10.7.0",
60
+ "oxfmt": "0.59.0",
61
+ "react": "19.2.7",
60
62
  "typescript": "6.0.3"
61
63
  },
62
64
  "engines": {