@mikey-pro/eslint-config-svelte 10.0.2 → 10.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.
Files changed (2) hide show
  1. package/index.js +7 -2
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -4,6 +4,12 @@ import { baseOverrides } from '@mikey-pro/eslint-config/overrides.js';
4
4
  import svelte from 'eslint-plugin-svelte';
5
5
  import svelteParser from 'svelte-eslint-parser';
6
6
 
7
+ // Extract rules from the flat config array (recommended is an array, not a legacy object)
8
+ const svelteRecommendedRules = svelte.configs['flat/recommended'].reduce(
9
+ (rules, item) => ({ ...rules, ...(item.rules || {}) }),
10
+ {},
11
+ );
12
+
7
13
  // Svelte-specific configuration
8
14
  const svelteConfig = {
9
15
  files: ['**/*.svelte'],
@@ -21,8 +27,7 @@ const svelteConfig = {
21
27
  svelte,
22
28
  },
23
29
  rules: {
24
- // Svelte rules - use recommended configuration
25
- ...svelte.configs.recommended.rules,
30
+ ...svelteRecommendedRules,
26
31
  },
27
32
  settings: {
28
33
  'import-x/resolver': {
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config-svelte",
3
- "version": "10.0.2",
3
+ "version": "10.0.4",
4
4
  "description": "Mikey Pro ESLint Svelte configuration - Ultimate Svelte coding style guide",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "dependencies": {
8
- "@babel/eslint-parser": "^7.28.4",
9
- "@mikey-pro/eslint-config": "^10.0.0",
10
- "@typescript-eslint/parser": "^8.56.0",
8
+ "@babel/eslint-parser": "^7.28.6",
9
+ "@mikey-pro/eslint-config": "^10.0.2",
10
+ "@typescript-eslint/parser": "^8.56.1",
11
11
  "eslint-plugin-svelte": "^3.15.0",
12
12
  "svelte-eslint-parser": "^1.5.1"
13
13
  },
14
14
  "peerDependencies": {
15
- "@mikey-pro/eslint-config": "^10.0.0"
15
+ "@mikey-pro/eslint-config": "^10.0.2"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "typescript": {