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
We are working on support for Svelte v5, but it is still an experimental feature. Please note that rules and features related to Svelte v5 may be changed or removed in minor versions without notice.
33
+
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
34
+
It offers a variety of unique linting rules by leveraging the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser).
35
+
It provides a variety of unique linting rules by utilizing the template AST.
44
36
45
-
<!--DOCS_IGNORE_START-->
37
+
> [!WARNING]
38
+
> The [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) and `eslint-plugin-svelte` cannot be used alongside [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3).
46
39
47
-
## Versioning policy
48
-
49
-
This plugin follows [Semantic Versioning](https://semver.org/).
50
-
However, unlike [ESLint’s Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy), this plugin adds new rules to its configs even in minor releases. For example, if you are using the recommended config, a minor update may add new rules, which could cause new lint errors in your project.
51
-
While [ESLint’s Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy) only adds new rules to configs in major releases, most users (myself included) don’t regularly monitor new rules. This makes it challenging to manually add them to projects whenever they are introduced.
52
-
By adding new rules to configs in minor releases, this plugin ensures users can adopt them more easily. If any new rules cause issues, you can simply disable them. I believe this approach helps maintain and improve code quality with minimal effort.
40
+
<!--DOCS_IGNORE_START-->
53
41
54
42
## Migration Guide
55
43
56
44
To migrate from `eslint-plugin-svelte` v1, or [`@ota-meshi/eslint-plugin-svelte`](https://www.npmjs.com/package/@ota-meshi/eslint-plugin-svelte), please refer to the [migration guide](https://sveltejs.github.io/eslint-plugin-svelte/migration/).
57
45
58
-
## :book: Documentation
59
-
60
-
See [documents](https://sveltejs.github.io/eslint-plugin-svelte/).
46
+
## Installation
61
47
62
-
## :cd: Installation
48
+
> [!NOTE] > **Requirements**
49
+
>
50
+
> - ESLint v8.57.1, v9.0.0, and above
51
+
> - Node.js v18.20.4, v20.18.0, v22.10.0, and above
> - Node.js v18.20.4, v20.18.0, v22.10.0 and above
72
-
73
57
<!--DOCS_IGNORE_END-->
74
58
75
59
## :book: Usage
@@ -453,6 +437,13 @@ These rules relate to this plugin works:
453
437
454
438
<!--DOCS_IGNORE_START-->
455
439
440
+
## Versioning policy
441
+
442
+
This plugin follows [Semantic Versioning](https://semver.org/).
443
+
However, unlike [ESLint’s Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy), this plugin adds new rules to its configs even in minor releases. For example, if you are using the recommended config, a minor update may add new rules, which could cause new lint errors in your project.
444
+
While [ESLint’s Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy) only adds new rules to configs in major releases, most users (myself included) don’t regularly monitor new rules. This makes it challenging to manually add them to projects whenever they are introduced.
445
+
By adding new rules to configs in minor releases, this plugin ensures users can adopt them more easily. If any new rules cause issues, you can simply disable them. I believe this approach helps maintain and improve code quality with minimal effort.
Copy file name to clipboardExpand all lines: docs/README.md
+5-40Lines changed: 5 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,47 +4,12 @@ title: 'eslint-plugin-svelte'
4
4
5
5
# Introduction
6
6
7
-
`eslint-plugin-svelte` is the official [ESLint] plugin for [Svelte].
8
-
It provides many unique check rules by using the template AST.
9
-
You can check on the [Online DEMO](https://eslint-online-playground.netlify.app/#eslint-plugin-svelte%20with%20typescript).
7
+
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
8
+
It offers a variety of unique linting rules by leveraging the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser).
9
+
It provides a variety of unique linting rules by utilizing the template AST.
10
10
11
-
> [!NOTE]
12
-
> This document is in development.\
13
-
> Please refer to the document for the version you are using.\
14
-
> For example, <https://github.com/sveltejs/eslint-plugin-svelte/blob/eslint-plugin-svelte%402.46.0/README.md>
15
-
> and <https://github.com/sveltejs/eslint-plugin-svelte/blob/eslint-plugin-svelte%402.46.0/docs>
We are working on support for Svelte v5, but it is still an experimental feature. Please note that rules and features related to Svelte v5 may be changed or removed in minor versions without notice.
11
+
> [!WARNING]
12
+
> The [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) and `eslint-plugin-svelte` cannot be used alongside [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3).
0 commit comments