@xsynaptic/eslint-config 1.0.2 → 1.0.3
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/package.json +9 -9
- package/src/get-config.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsynaptic/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A common ESLint config factory for TypeScript and Astro projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"check-types": "tsc --noEmit --extendedDiagnostics"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@eslint/js": "^9.
|
|
14
|
-
"eslint": "^9.
|
|
13
|
+
"@eslint/js": "^9.28.0",
|
|
14
|
+
"eslint": "^9.28.0",
|
|
15
15
|
"eslint-plugin-astro": "^1.3.1",
|
|
16
16
|
"eslint-plugin-import": "^2.31.0",
|
|
17
17
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
18
|
-
"eslint-plugin-perfectionist": "^4.
|
|
19
|
-
"eslint-plugin-unicorn": "^
|
|
20
|
-
"globals": "^16.
|
|
18
|
+
"eslint-plugin-perfectionist": "^4.14.0",
|
|
19
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
20
|
+
"globals": "^16.2.0",
|
|
21
21
|
"prettier": "^3.5.3",
|
|
22
|
-
"typescript-eslint": "^8.
|
|
22
|
+
"typescript-eslint": "^8.34.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"jiti": "^2.4.2",
|
|
26
|
-
"typescript": "^5.8.
|
|
26
|
+
"typescript": "^5.8.3"
|
|
27
27
|
},
|
|
28
|
-
"packageManager": "pnpm@10.
|
|
28
|
+
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
|
|
29
29
|
}
|
package/src/get-config.ts
CHANGED
|
@@ -31,7 +31,8 @@ export function getConfig(
|
|
|
31
31
|
parser: tseslint.parser,
|
|
32
32
|
parserOptions: {
|
|
33
33
|
// projectService: true, // Astro ecosystem tools can't use this yet; 2024Q4
|
|
34
|
-
|
|
34
|
+
projectService: true,
|
|
35
|
+
// project: ["./tsconfig.json"],
|
|
35
36
|
},
|
|
36
37
|
},
|
|
37
38
|
plugins: {
|
|
@@ -53,7 +54,7 @@ export function getConfig(
|
|
|
53
54
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
54
55
|
},
|
|
55
56
|
},
|
|
56
|
-
unicornPlugin.configs
|
|
57
|
+
unicornPlugin.configs.recommended,
|
|
57
58
|
{
|
|
58
59
|
rules: {
|
|
59
60
|
"unicorn/filename-case": "warn",
|
|
@@ -93,7 +94,7 @@ export function getConfig(
|
|
|
93
94
|
* @reference - https://github.com/Princesseuh/erika.florist/blob/main/eslint.config.js
|
|
94
95
|
*/
|
|
95
96
|
const astroConfig = [
|
|
96
|
-
...astroPlugin.configs
|
|
97
|
+
...astroPlugin.configs["flat/recommended"],
|
|
97
98
|
...astroPlugin.configs["jsx-a11y-strict"],
|
|
98
99
|
|
|
99
100
|
// Remove some safety rules around `any` for various reasons
|