@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsynaptic/eslint-config",
3
- "version": "1.0.2",
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.23.0",
14
- "eslint": "^9.23.0",
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.10.1",
19
- "eslint-plugin-unicorn": "^58.0.0",
20
- "globals": "^16.0.0",
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.28.0"
22
+ "typescript-eslint": "^8.34.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "jiti": "^2.4.2",
26
- "typescript": "^5.8.2"
26
+ "typescript": "^5.8.3"
27
27
  },
28
- "packageManager": "pnpm@10.6.3+sha512.bb45e34d50a9a76e858a95837301bfb6bd6d35aea2c5d52094fa497a467c43f5c440103ce2511e9e0a2f89c3d6071baac3358fc68ac6fb75e2ceb3d2736065e6"
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["flat/recommended"],
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.recommended,
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