@wkovacs64/eslint-config 7.7.0 → 7.8.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/index.js +18 -0
- package/package.json +11 -10
package/index.js
CHANGED
@@ -7,6 +7,7 @@ import tseslint from 'typescript-eslint';
|
|
7
7
|
import reactPlugin from 'eslint-plugin-react';
|
8
8
|
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
9
9
|
import playwright from 'eslint-plugin-playwright';
|
10
|
+
import astro from 'eslint-plugin-astro';
|
10
11
|
|
11
12
|
const ERROR = 'error';
|
12
13
|
const WARN = 'warn';
|
@@ -27,6 +28,7 @@ const hasTestingLibrary = has('@testing-library/dom');
|
|
27
28
|
const hasJestDom = has('@testing-library/jest-dom');
|
28
29
|
const hasVitest = has('vitest');
|
29
30
|
const hasPlaywright = has('@playwright/test');
|
31
|
+
const hasAstro = has('astro');
|
30
32
|
|
31
33
|
const vitestFiles = ['**/__tests__/**/*', '**/*.test.*'];
|
32
34
|
const testFiles = ['**/tests/**', '**/#tests/**', ...vitestFiles];
|
@@ -366,6 +368,22 @@ export const config = [
|
|
366
368
|
}
|
367
369
|
: null,
|
368
370
|
|
371
|
+
// Astro support
|
372
|
+
...(hasAstro
|
373
|
+
? [
|
374
|
+
...astro.configs['flat/recommended'],
|
375
|
+
// No idea why this override is needed as it should inherit from the base config, but for
|
376
|
+
// some reason, enabling the Astro plugin screws that up and it tries to enforce interfaces
|
377
|
+
// over types. 🤷♂️
|
378
|
+
{
|
379
|
+
files: ['**/*.astro'],
|
380
|
+
rules: {
|
381
|
+
'@typescript-eslint/consistent-type-definitions': OFF,
|
382
|
+
},
|
383
|
+
},
|
384
|
+
]
|
385
|
+
: []),
|
386
|
+
|
369
387
|
hasPlaywright
|
370
388
|
? {
|
371
389
|
files: playwrightTestFiles,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wkovacs64/eslint-config",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.8.0",
|
4
4
|
"description": "@wKovacs64 ESLint config",
|
5
5
|
"keywords": [
|
6
6
|
"eslint",
|
@@ -50,26 +50,27 @@
|
|
50
50
|
"node": "^18.18.0 || >=20.0.0"
|
51
51
|
},
|
52
52
|
"dependencies": {
|
53
|
-
"@eslint/js": "^9.
|
54
|
-
"@vitest/eslint-plugin": "^1.2.
|
55
|
-
"eslint-plugin-
|
53
|
+
"@eslint/js": "^9.29.0",
|
54
|
+
"@vitest/eslint-plugin": "^1.2.5",
|
55
|
+
"eslint-plugin-astro": "^1.3.1",
|
56
|
+
"eslint-plugin-import-x": "^4.15.2",
|
56
57
|
"eslint-plugin-jest-dom": "^5.5.0",
|
57
58
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
58
59
|
"eslint-plugin-playwright": "^2.2.0",
|
59
60
|
"eslint-plugin-react": "^7.37.5",
|
60
61
|
"eslint-plugin-react-hooks": "^5.2.0",
|
61
|
-
"eslint-plugin-testing-library": "^7.3
|
62
|
+
"eslint-plugin-testing-library": "^7.5.3",
|
62
63
|
"globals": "^16.2.0",
|
63
|
-
"typescript-eslint": "^8.
|
64
|
+
"typescript-eslint": "^8.34.0"
|
64
65
|
},
|
65
66
|
"devDependencies": {
|
66
67
|
"@changesets/changelog-github": "0.5.1",
|
67
68
|
"@changesets/cli": "2.29.4",
|
68
|
-
"@types/node": "22.15.
|
69
|
-
"@types/react": "19.1.
|
69
|
+
"@types/node": "22.15.31",
|
70
|
+
"@types/react": "19.1.8",
|
70
71
|
"@types/react-dom": "19.1.6",
|
71
|
-
"@wkovacs64/prettier-config": "4.
|
72
|
-
"eslint": "9.
|
72
|
+
"@wkovacs64/prettier-config": "4.2.1",
|
73
|
+
"eslint": "9.29.0",
|
73
74
|
"prettier": "3.5.3",
|
74
75
|
"typescript": "5.8.3"
|
75
76
|
}
|