@xsynaptic/eslint-config 1.0.2 → 1.0.4
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 +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsynaptic/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
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
|
@@ -53,7 +53,7 @@ export function getConfig(
|
|
|
53
53
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
|
-
unicornPlugin.configs
|
|
56
|
+
unicornPlugin.configs.recommended,
|
|
57
57
|
{
|
|
58
58
|
rules: {
|
|
59
59
|
"unicorn/filename-case": "warn",
|
|
@@ -93,13 +93,12 @@ export function getConfig(
|
|
|
93
93
|
* @reference - https://github.com/Princesseuh/erika.florist/blob/main/eslint.config.js
|
|
94
94
|
*/
|
|
95
95
|
const astroConfig = [
|
|
96
|
-
...astroPlugin.configs
|
|
96
|
+
...astroPlugin.configs["flat/recommended"],
|
|
97
97
|
...astroPlugin.configs["jsx-a11y-strict"],
|
|
98
|
-
|
|
99
|
-
// Remove some safety rules around `any` for various reasons
|
|
100
|
-
// Astro.props isn't typed correctly in some contexts, so a bunch of things ends up being `any`
|
|
101
98
|
{
|
|
102
99
|
files: ["**/*.astro"],
|
|
100
|
+
// Remove some safety rules around `any` for various reasons
|
|
101
|
+
// Astro.props isn't typed correctly in some contexts, so a bunch of things ends up being `any`
|
|
103
102
|
rules: {
|
|
104
103
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
105
104
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
@@ -110,9 +109,8 @@ export function getConfig(
|
|
|
110
109
|
},
|
|
111
110
|
|
|
112
111
|
// Disable typed rules for scripts inside Astro files
|
|
113
|
-
// https://github.com/ota-meshi/eslint-plugin-astro/issues/240
|
|
114
112
|
{
|
|
115
|
-
files: ["**/*.astro/*.ts"],
|
|
113
|
+
files: ["**/*.astro/*.ts", "*.astro/*.ts"],
|
|
116
114
|
languageOptions: {
|
|
117
115
|
parserOptions: {
|
|
118
116
|
// eslint-disable-next-line unicorn/no-null
|