ESLint plugin for Svelte using AST
eslint-plugin-svelte is the official ESLint plugin for Svelte. It provides unique check rules using the template AST. It is designed to be used with ESLint version 7.0.0 and above and requires Node.js version 14.17.x or higher.
To install eslint-plugin-svelte, follow these steps:
npm install eslint-plugin-svelte --save-dev
module.exports = {
plugins: ['svelte'],
extends: ['plugin:svelte/base'],
rules: {
// Add specific rules here
},
};
eslint-plugin-svelte is the official ESLint plugin for Svelte that provides unique check rules using the template AST. It requires ESLint version 7.0.0 and above and Node.js version 14.17.x or higher. It offers various configuration options and can be easily installed using npm.