You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -286,9 +286,10 @@ export default [
286
286
svelteFeatures: {
287
287
/* -- Experimental Svelte Features -- */
288
288
/* It may be changed or removed in minor versions without notice. */
289
-
// If true, it will analyze Runes.
290
-
// By default, it will try to read `compilerOptions.runes` from `svelte.config.js`.
291
-
// However, note that if `parserOptions.svelteConfig` is not specified and the file cannot be parsed by static analysis, it will behave as `false`.
289
+
// This option is for only Svelte 5. The default value is `true`.
290
+
// If `false`, ESLint will not recognize rune symbols.
291
+
// If not configured, it will try to read `compilerOptions.runes` from `svelte.config.js`.
292
+
// However, note that if `parserOptions.svelteConfig` is not specified and the file cannot be parsed by static analysis, it will behave as `true` if Svelte version is 5. Otherwise `false`.
292
293
runes:false,
293
294
/* -- Experimental Svelte Features -- */
294
295
/* It may be changed or removed in minor versions without notice. */
@@ -329,7 +330,8 @@ For example in `.eslintrc.*`:
329
330
330
331
**_This is an experimental feature. It may be changed or removed in minor versions without notice._**
331
332
332
-
If you install Svelte v5 and turn on runes (`compilerOptions.runes` in `svelte.config.js` or `parserOptions.svelteFeatures.runes` in ESLint config is `true`), the parser will be able to parse runes, and will also be able to parse `*.js` and `*.ts` files.
333
+
If you install Svelte v5 the parser will be able to parse runes, and will also be able to parse `*.js` and `*.ts` files.
334
+
If you don't want to use Runes, you may need to configure. Please read [parserOptions.svelteFeatures](#parseroptionssveltefeatures) for more details.
333
335
334
336
When using this mode in an ESLint configuration, it is recommended to set it per file pattern as below.
335
337
@@ -383,15 +385,13 @@ For example in `.eslintrc.*`:
0 commit comments