Skip to content

Commit f05a9e7

Browse files
committed
chore: remove experimental for svelteFeatures.runes option parserOptions
1 parent 10a218c commit f05a9e7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.changeset/lucky-boxes-tell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte-eslint-parser": patch
3+
---
4+
5+
chore: remove experimental for svelteFeatures.runes option parserOptions

README.md

-2
Original file line numberDiff line numberDiff 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.

src/parser/parser-options.ts

+2-3
Original file line numberDiff line numberDiff 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

6766
export 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;

0 commit comments

Comments
 (0)