eslint-config-gristow 3.0.1 → 3.0.2
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/index.js +11 -0
- package/package.json +1 -1
- package/rules/typescript-only-rules.js +5 -0
package/index.js
CHANGED
|
@@ -110,6 +110,17 @@ export default defineConfig(
|
|
|
110
110
|
rules: typescriptOnlyRules,
|
|
111
111
|
},
|
|
112
112
|
|
|
113
|
+
// Svelte-specific overrides
|
|
114
|
+
{
|
|
115
|
+
files: ['**/*.svelte'],
|
|
116
|
+
rules: {
|
|
117
|
+
// Svelte 5 $props() requires 'let' for reactive destructuring
|
|
118
|
+
'prefer-const': 'off',
|
|
119
|
+
// Disable import/no-duplicates - same issue as TS files with .d.ts resolution
|
|
120
|
+
'import/no-duplicates': 'off',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
|
|
113
124
|
// Prettier must be last to override formatting rules
|
|
114
125
|
eslintConfigPrettier,
|
|
115
126
|
|
package/package.json
CHANGED
|
@@ -5,4 +5,9 @@ export default {
|
|
|
5
5
|
// Everything we get in .js from this, we get in .ts for free. And, if we
|
|
6
6
|
// add this, we can't hoist type definitions any more.
|
|
7
7
|
'no-use-before-define': 'off',
|
|
8
|
+
|
|
9
|
+
// Disable import/no-duplicates for TS - it incorrectly flags different
|
|
10
|
+
// subpath imports (e.g., 'svelte' vs 'svelte/transition') when they
|
|
11
|
+
// resolve to the same .d.ts file
|
|
12
|
+
'import/no-duplicates': 'off',
|
|
8
13
|
};
|