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
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@
30
30
31
31
## Introduction
32
32
33
-
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
34
-
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.
33
+
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
34
+
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.
35
35
Note that `eslint-plugin-svelte` and `svelte-eslint-parser` cannot be used alongside [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3).
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
251
-
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
250
+
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
251
+
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
252
252
:star: Indicates that the rule is included in the `plugin:svelte/recommended` config.
253
253
254
254
<!--RULES_TABLE_START-->
@@ -272,7 +272,8 @@ These rules relate to possible syntax or logic errors in Svelte code:
272
272
|[svelte/no-shorthand-style-property-overrides](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-shorthand-style-property-overrides/)| disallow shorthand style properties that override related longhand properties |:star:|
273
273
|[svelte/no-store-async](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-store-async/)| disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features |:star:|
|[svelte/require-store-callbacks-use-set-param](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-callbacks-use-set-param/)| store callbacks must use `set` param |:bulb:|
275
+
|[svelte/prefer-svelte-reactivity](https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-svelte-reactivity/)| disallow using built-in classes where a reactive alternative is provided by svelte/reactivity |:star:|
276
+
|[svelte/require-store-callbacks-use-set-param](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-callbacks-use-set-param/)| store callbacks must use `set` param ||
276
277
|[svelte/require-store-reactive-access](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-reactive-access/)| disallow to use of the store itself as an operand. Need to use $ prefix or get function. |:star::wrench:|
277
278
|[svelte/valid-compile](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-compile/)| disallow warnings when compiling. ||
278
279
|[svelte/valid-style-parse](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-style-parse/)| require valid style element parsing ||
@@ -400,7 +401,7 @@ These rules relate to this plugin works:
400
401
401
402
## Contributing
402
403
403
-
Contributions are welcome! Please open an issue or submit a PR. For more details, see [CONTRIBUTING.md](./CONTRIBUTING.md).
404
+
Contributions are welcome! Please open an issue or submit a PR. For more details, see [CONTRIBUTING.md](./CONTRIBUTING.md).
404
405
Refer to [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) for AST details.
Copy file name to clipboardExpand all lines: docs/rules.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ sidebarDepth: 0
4
4
5
5
# Available Rules
6
6
7
-
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
8
-
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
7
+
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
8
+
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
9
9
:star: Indicates that the rule is included in the `plugin:svelte/recommended` config.
10
10
11
11
<!-- This file is automatically generated in tools/update-docs-rules-index.js, do not change! -->
@@ -29,7 +29,8 @@ These rules relate to possible syntax or logic errors in Svelte code:
29
29
|[svelte/no-shorthand-style-property-overrides](./rules/no-shorthand-style-property-overrides.md)| disallow shorthand style properties that override related longhand properties |:star:|
30
30
|[svelte/no-store-async](./rules/no-store-async.md)| disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features |:star:|
|[svelte/require-store-callbacks-use-set-param](./rules/require-store-callbacks-use-set-param.md)| store callbacks must use `set` param |:bulb:|
32
+
|[svelte/prefer-svelte-reactivity](./rules/prefer-svelte-reactivity.md)| disallow using built-in classes where a reactive alternative is provided by svelte/reactivity |:star:|
33
+
|[svelte/require-store-callbacks-use-set-param](./rules/require-store-callbacks-use-set-param.md)| store callbacks must use `set` param ||
33
34
|[svelte/require-store-reactive-access](./rules/require-store-reactive-access.md)| disallow to use of the store itself as an operand. Need to use $ prefix or get function. |:star::wrench:|
34
35
|[svelte/valid-compile](./rules/valid-compile.md)| disallow warnings when compiling. ||
35
36
|[svelte/valid-style-parse](./rules/valid-style-parse.md)| require valid style element parsing ||
0 commit comments