@xsynaptic/eslint-config 1.0.1 → 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.
Files changed (2) hide show
  1. package/package.json +9 -10
  2. 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.1",
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,21 +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": "^56.0.1",
20
- "globals": "^15.15.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
- "@types/eslint__js": "^8.42.3",
26
25
  "jiti": "^2.4.2",
27
- "typescript": "^5.8.2"
26
+ "typescript": "^5.8.3"
28
27
  },
29
- "packageManager": "pnpm@10.6.3+sha512.bb45e34d50a9a76e858a95837301bfb6bd6d35aea2c5d52094fa497a467c43f5c440103ce2511e9e0a2f89c3d6071baac3358fc68ac6fb75e2ceb3d2736065e6"
28
+ "packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
30
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
- project: ["./tsconfig.json"],
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["flat/recommended"],
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.recommended,
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