File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 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 [
289289 parser: svelteParser,
290290 parserOptions: {
291291 svelteFeatures: {
292- /* -- Experimental Svelte Features -- */
293292 /* It may be changed or removed in minor versions without notice. */
294293 // This option is for Svelte 5. The default value is `true`.
295294 // If `false`, ESLint will not recognize rune symbols.
@@ -310,7 +309,6 @@ For example in `.eslintrc.*`:
310309 " parser" : " svelte-eslint-parser" ,
311310 " parserOptions" : {
312311 " svelteFeatures" : {
313- /* -- Experimental Svelte Features -- */
314312 /* It may be changed or removed in minor versions without notice. */
315313 // This option is for Svelte 5. The default value is `true`.
316314 // 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 = {
2020 [ key : string ] : any ;
2121 } ;
2222 svelteFeatures ?: {
23- /* -- Experimental Svelte Features -- */
2423 // This option is for Svelte 5. The default value is `true`.
2524 // If `false`, ESLint will not recognize rune symbols.
2625 // 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 = [
6665
6766export function isTypeScript (
6867 parserOptions : NormalizedParserOptions ,
69- lang : string | undefined ,
68+ lang : string | undefined
7069) : boolean {
7170 if ( ! lang ) {
7271 return false ;
@@ -89,7 +88,7 @@ export function isTypeScript(
8988 if ( fs . existsSync ( pkgPath ) ) {
9089 try {
9190 return TS_PARSER_NAMES . includes (
92- JSON . parse ( fs . readFileSync ( pkgPath , "utf-8" ) ) ?. name ,
91+ JSON . parse ( fs . readFileSync ( pkgPath , "utf-8" ) ) ?. name
9392 ) ;
9493 } catch {
9594 return false ;
You can’t perform that action at this time.
0 commit comments