eslint-config-gristow 3.0.1 → 3.0.2-alpha.1
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 +9 -0
- package/package.json +1 -1
- package/rules/typescript-only-rules.js +5 -0
package/index.js
CHANGED
|
@@ -110,6 +110,15 @@ 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
|
+
},
|
|
120
|
+
},
|
|
121
|
+
|
|
113
122
|
// Prettier must be last to override formatting rules
|
|
114
123
|
eslintConfigPrettier,
|
|
115
124
|
|
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
|
};
|