eslint-plugin-svelte weekly downloads statistics
By sveltejs (4 listings) · npm · ESLint plugins
ESLint plugin for Svelte using AST
eslint-plugin-svelte has 2,526,633 recorded weekly downloads on npm, an increase of 13.3% over the past 30 days, ranking #213 of 3,247 tracked listings.
About eslint-plugin-svelte
eslint-plugin-svelte
ESLint plugin for Svelte using AST
Live Demo • Documentation • Discord
</div> <!--DOCS_IGNORE_END-->Introduction
eslint-plugin-svelte is the official ESLint plugin for Svelte.
It leverages the AST generated by svelte-eslint-parser to provide custom linting for Svelte.\
<!--USAGE_SECTION_START--> <!--USAGE_GUIDE_START-->[!NOTE]
eslint-plugin-svelteandsvelte-eslint-parsercannot be used alongside eslint-plugin-svelte3.
Installation
CLI
The recommended way to get started is to use the CLI.
# new project
npx sv create
# existing project
npx sv add eslint
See the CLI docs for more details.
Manual Setup
npm install --save-dev svelte eslint eslint-plugin-svelte globals
[!NOTE]
Requirements:
- ESLint v8.57.1, v9.0.0, and above
- Node.js v18.18.0, v20.9.0, v21.1.0 and above
Usage
Use eslint.config.js to configure rules. See ESLint documentation for more details.
Configuration
JavaScript project
// eslint.config.js
import svelteConfig from './svelte.config.js';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
export default defineConfig([
// ...
js.configs.recommended,
svelte.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
// for Sveltekit in non-SPA mode
...globals.node
}
}
},
{
files: ['**/*.svelte', '**/*.svelte.js'],
languageOptions: {
parserOptions: {
// explicitly importing allows for better compatibilty and functionality with rules and other tooling that depend on the config file.
//
// Note: `eslint --cache` will fail with non-serializable properties.
// In those cases, please remove the non-serializable properties.
// svelteConfig: {
// ...svelteConfig,
// kit: {
// ...svelteConfig.kit,
// typescript: undefined
// }
// }
svelteConfig
}
}
},
{
rules: {
// Override or add rule settings here, such as:
// 'svelte/rule-name': 'error'
}
}
]);
TypeScript project
npm install --save-dev typescript-eslint
// eslint.config.js
import svelteConfig from './svelte.config.js';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
export default defineConfig(
js.configs.recommended,
ts.configs.recommended,
svelte.configs.recommended,
{
languageOptions: {
parserOptions: {
// Keep this consistent for TypeScript and Svelte files to avoid project reloads.
extraFileExtensions: ['.svelte']
},
globals: {
...globals.browser,
// for Sveltekit in non-SPA mode
...globals.node
}
}
// ...
},
{
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
// See more details at: https://typescript-eslint.io/packages/parser/
languageOptions: {
parserOptions: {
projectService: true,
// Specify a parser for each language, if needed:
// parser: {
// ts: ts.parser,
// typescript: ts.parser
// js: espree, // add `import espree from 'espree'`
// },
parser: ts.parser,…
Description from the npm listing.
- eslint
- eslint-plugin
- eslintplugin
- svelte
- sveltejs
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (591)Similar npm ESLint plugins plugins
All 20 eslint-plugin-svelte alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-svelte. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.