Svelte parser for ESLint
Svelte-eslint-parser is a parser for ESLint that is specifically designed for Svelte applications. It allows developers to create their own ESLint rules for Svelte and provides unique check rules for template AST. It is used by eslint-plugin-svelte, an ESLint plugin for Svelte, and @intlify/eslint-plugin-svelte, an ESLint plugin for internationalization (i18n) with Svelte.
To install svelte-eslint-parser, follow these steps:
npm install svelte-eslint-parser
{
"parserOptions": {
"parser": "svelte-eslint-parser"
}
}
--ext .svelte
CLI option.Svelte-eslint-parser is a parser for ESLint that is specifically designed for Svelte applications. It enables the creation of custom ESLint rules for Svelte and provides unique check rules for template AST. It is used by eslint-plugin-svelte and @intlify/eslint-plugin-svelte to enhance the linting capabilities of Svelte applications. The installation and usage of svelte-eslint-parser are straightforward, making it a valuable tool for Svelte developers.