svelte-eslint-parser
Advanced tools
Comparing version 0.39.0 to 0.39.1
export declare const name = "svelte-eslint-parser"; | ||
export declare const version = "0.39.0"; | ||
export declare const version = "0.39.1"; |
@@ -8,2 +8,2 @@ "use strict"; | ||
exports.name = "svelte-eslint-parser"; | ||
exports.version = "0.39.0"; | ||
exports.version = "0.39.1"; |
@@ -12,6 +12,6 @@ "use strict"; | ||
} | ||
else if (((_b = svelteConfig === null || svelteConfig === void 0 ? void 0 : svelteConfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.runes) != null) { | ||
if (((_b = svelteConfig === null || svelteConfig === void 0 ? void 0 : svelteConfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.runes) != null) { | ||
return Boolean(svelteConfig.compilerOptions.runes); | ||
} | ||
return false; | ||
return true; | ||
} | ||
@@ -18,0 +18,0 @@ exports.isEnableRunes = isEnableRunes; |
{ | ||
"name": "svelte-eslint-parser", | ||
"version": "0.39.0", | ||
"version": "0.39.1", | ||
"description": "Svelte parser for ESLint", | ||
@@ -5,0 +5,0 @@ "repository": "git+https://github.com/sveltejs/svelte-eslint-parser.git", |
@@ -289,6 +289,7 @@ # svelte-eslint-parser | ||
/* It may be changed or removed in minor versions without notice. */ | ||
// If true, it will analyze Runes. | ||
// By default, it will try to read `compilerOptions.runes` from `svelte.config.js`. | ||
// However, note that if `parserOptions.svelteConfig` is not specified and the file cannot be parsed by static analysis, it will behave as `false`. | ||
runes: false, | ||
// This option is for Svelte 5. The default value is `true`. | ||
// If `false`, ESLint will not recognize rune symbols. | ||
// If not configured this option, The parser will try to read the option from `compilerOptions.runes` from `svelte.config.js`. | ||
// If `parserOptions.svelteConfig` is not specified and the file cannot be parsed by static analysis, it will behave as `true`. | ||
runes: true, | ||
/* -- Experimental Svelte Features -- */ | ||
@@ -315,6 +316,7 @@ /* It may be changed or removed in minor versions without notice. */ | ||
/* It may be changed or removed in minor versions without notice. */ | ||
// If true, it will analyze Runes. | ||
// By default, it will try to read `compilerOptions.runes` from `svelte.config.js`. | ||
// However, note that if the file cannot be parsed by static analysis, it will behave as false. | ||
"runes": false, | ||
// This option is for Svelte 5. The default value is `true`. | ||
// If `false`, ESLint will not recognize rune symbols. | ||
// If not configured this option, The parser will try to read the option from `compilerOptions.runes` from `svelte.config.js`. | ||
// If `parserOptions.svelteConfig` is not specified and the file cannot be parsed by static analysis, it will behave as `true`. | ||
"runes": true, | ||
/* -- Experimental Svelte Features -- */ | ||
@@ -334,3 +336,4 @@ /* It may be changed or removed in minor versions without notice. */ | ||
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. | ||
If you install Svelte v5 the parser will be able to parse runes, and will also be able to parse `*.js` and `*.ts` files. | ||
If you don't want to use Runes, you may need to configure. Please read [parserOptions.svelteFeatures](#parseroptionssveltefeatures) for more details. | ||
@@ -389,3 +392,2 @@ When using this mode in an ESLint configuration, it is recommended to set it per file pattern as below. | ||
"parser": "...", | ||
"svelteFeatures": { "runes": true }, | ||
/* ... */ | ||
@@ -398,3 +400,2 @@ }, | ||
"parserOptions": { | ||
"svelteFeatures": { "runes": true }, | ||
/* ... */ | ||
@@ -408,3 +409,2 @@ }, | ||
"parser": "...(ts parser)...", | ||
"svelteFeatures": { "runes": true }, | ||
/* ... */ | ||
@@ -411,0 +411,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
345671