File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " svelte-eslint-parser " : patch
3
+ ---
4
+
5
+ chore: remove experimental for svelteFeatures.runes option parserOptions
Original file line number Diff line number Diff line change @@ -289,7 +289,6 @@ export default [
289
289
parser: svelteParser,
290
290
parserOptions: {
291
291
svelteFeatures: {
292
- /* -- Experimental Svelte Features -- */
293
292
/* It may be changed or removed in minor versions without notice. */
294
293
// This option is for Svelte 5. The default value is `true`.
295
294
// If `false`, ESLint will not recognize rune symbols.
@@ -310,7 +309,6 @@ For example in `.eslintrc.*`:
310
309
" parser" : " svelte-eslint-parser" ,
311
310
" parserOptions" : {
312
311
" svelteFeatures" : {
313
- /* -- Experimental Svelte Features -- */
314
312
/* It may be changed or removed in minor versions without notice. */
315
313
// This option is for Svelte 5. The default value is `true`.
316
314
// If `false`, ESLint will not recognize rune symbols.
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export type NormalizedParserOptions = {
20
20
[ key : string ] : any ;
21
21
} ;
22
22
svelteFeatures ?: {
23
- /* -- Experimental Svelte Features -- */
24
23
// This option is for Svelte 5. The default value is `true`.
25
24
// If `false`, ESLint will not recognize rune symbols.
26
25
// If not configured this option, The parser will try to read the option from `compilerOptions.runes` from `svelte.config.js`.
@@ -66,7 +65,7 @@ const TS_PARSER_NAMES = [
66
65
67
66
export function isTypeScript (
68
67
parserOptions : NormalizedParserOptions ,
69
- lang : string | undefined ,
68
+ lang : string | undefined
70
69
) : boolean {
71
70
if ( ! lang ) {
72
71
return false ;
@@ -89,7 +88,7 @@ export function isTypeScript(
89
88
if ( fs . existsSync ( pkgPath ) ) {
90
89
try {
91
90
return TS_PARSER_NAMES . includes (
92
- JSON . parse ( fs . readFileSync ( pkgPath , "utf-8" ) ) ?. name ,
91
+ JSON . parse ( fs . readFileSync ( pkgPath , "utf-8" ) ) ?. name
93
92
) ;
94
93
} catch {
95
94
return false ;
You can’t perform that action at this time.
0 commit comments