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
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -272,7 +272,7 @@ 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 ||
275
+
|[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:|
276
276
|[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
277
|[svelte/valid-compile](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-compile/)| disallow warnings when compiling. ||
278
278
|[svelte/valid-style-parse](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-style-parse/)| require valid style element parsing ||
@@ -294,7 +294,7 @@ These rules relate to better ways of doing things to help you avoid problems:
294
294
|:--------|:------------|:---|
295
295
|[svelte/block-lang](https://sveltejs.github.io/eslint-plugin-svelte/rules/block-lang/)| disallows the use of languages other than those specified in the configuration for the lang attribute of `<script>` and `<style>` blocks. |:bulb:|
296
296
|[svelte/button-has-type](https://sveltejs.github.io/eslint-plugin-svelte/rules/button-has-type/)| disallow usage of button without an explicit type attribute ||
297
-
|[svelte/no-at-debug-tags](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/)| disallow the use of `{@debug}`|:star:|
297
+
|[svelte/no-at-debug-tags](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/)| disallow the use of `{@debug}`|:star::bulb:|
298
298
|[svelte/no-ignored-unsubscribe](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-ignored-unsubscribe/)| disallow ignoring the unsubscribe method returned by the `subscribe()` on Svelte stores. ||
299
299
|[svelte/no-immutable-reactive-statements](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-immutable-reactive-statements/)| disallow reactive statements that don't reference reactive values. |:star:|
300
300
|[svelte/no-inline-styles](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inline-styles/)| disallow attributes and directives that produce inline styles ||
@@ -323,7 +323,7 @@ These rules relate to style guidelines, and are therefore quite subjective:
323
323
| Rule ID | Description ||
324
324
|:--------|:------------|:---|
325
325
|[svelte/consistent-selector-style](https://sveltejs.github.io/eslint-plugin-svelte/rules/consistent-selector-style/)| enforce a consistent style for CSS selectors ||
326
-
|[svelte/derived-has-same-inputs-outputs](https://sveltejs.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/)| derived store should use same variable names between values and callback ||
326
+
|[svelte/derived-has-same-inputs-outputs](https://sveltejs.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/)| derived store should use same variable names between values and callback |:bulb:|
327
327
|[svelte/first-attribute-linebreak](https://sveltejs.github.io/eslint-plugin-svelte/rules/first-attribute-linebreak/)| enforce the location of first attribute |:wrench:|
328
328
|[svelte/html-closing-bracket-new-line](https://sveltejs.github.io/eslint-plugin-svelte/rules/html-closing-bracket-new-line/)| Require or disallow a line break before tag's closing brackets |:wrench:|
329
329
|[svelte/html-closing-bracket-spacing](https://sveltejs.github.io/eslint-plugin-svelte/rules/html-closing-bracket-spacing/)| require or disallow a space before tag's closing brackets |:wrench:|
@@ -337,6 +337,7 @@ These rules relate to style guidelines, and are therefore quite subjective:
337
337
|[svelte/no-spaces-around-equal-signs-in-attribute](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-spaces-around-equal-signs-in-attribute/)| disallow spaces around equal signs in attribute |:wrench:|
338
338
|[svelte/prefer-class-directive](https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/)| require class directives instead of ternary expressions |:wrench:|
339
339
|[svelte/prefer-style-directive](https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-style-directive/)| require style directives instead of style attribute |:wrench:|
340
+
|[svelte/require-event-prefix](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-event-prefix/)| require component event names to start with "on" ||
340
341
|[svelte/shorthand-attribute](https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-attribute/)| enforce use of shorthand syntax in attribute |:wrench:|
341
342
|[svelte/shorthand-directive](https://sveltejs.github.io/eslint-plugin-svelte/rules/shorthand-directive/)| enforce use of shorthand syntax in directives |:wrench:|
342
343
|[svelte/sort-attributes](https://sveltejs.github.io/eslint-plugin-svelte/rules/sort-attributes/)| enforce order of attributes |:wrench:|
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
@@ -29,7 +29,7 @@ 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 ||
32
+
|[svelte/require-store-callbacks-use-set-param](./rules/require-store-callbacks-use-set-param.md)| store callbacks must use `set` param |:bulb:|
33
33
|[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
34
|[svelte/valid-compile](./rules/valid-compile.md)| disallow warnings when compiling. ||
35
35
|[svelte/valid-style-parse](./rules/valid-style-parse.md)| require valid style element parsing ||
@@ -51,7 +51,7 @@ These rules relate to better ways of doing things to help you avoid problems:
|[svelte/block-lang](./rules/block-lang.md)| disallows the use of languages other than those specified in the configuration for the lang attribute of `<script>` and `<style>` blocks. |:bulb:|
53
53
|[svelte/button-has-type](./rules/button-has-type.md)| disallow usage of button without an explicit type attribute ||
54
-
|[svelte/no-at-debug-tags](./rules/no-at-debug-tags.md)| disallow the use of `{@debug}`|:star:|
54
+
|[svelte/no-at-debug-tags](./rules/no-at-debug-tags.md)| disallow the use of `{@debug}`|:star::bulb:|
55
55
|[svelte/no-ignored-unsubscribe](./rules/no-ignored-unsubscribe.md)| disallow ignoring the unsubscribe method returned by the `subscribe()` on Svelte stores. ||
56
56
|[svelte/no-immutable-reactive-statements](./rules/no-immutable-reactive-statements.md)| disallow reactive statements that don't reference reactive values. |:star:|
57
57
|[svelte/no-inline-styles](./rules/no-inline-styles.md)| disallow attributes and directives that produce inline styles ||
@@ -80,7 +80,7 @@ These rules relate to style guidelines, and are therefore quite subjective:
|[svelte/consistent-selector-style](./rules/consistent-selector-style.md)| enforce a consistent style for CSS selectors ||
83
-
|[svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md)| derived store should use same variable names between values and callback ||
83
+
|[svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md)| derived store should use same variable names between values and callback |:bulb:|
84
84
|[svelte/first-attribute-linebreak](./rules/first-attribute-linebreak.md)| enforce the location of first attribute |:wrench:|
85
85
|[svelte/html-closing-bracket-new-line](./rules/html-closing-bracket-new-line.md)| Require or disallow a line break before tag's closing brackets |:wrench:|
86
86
|[svelte/html-closing-bracket-spacing](./rules/html-closing-bracket-spacing.md)| require or disallow a space before tag's closing brackets |:wrench:|
@@ -94,6 +94,7 @@ These rules relate to style guidelines, and are therefore quite subjective:
94
94
|[svelte/no-spaces-around-equal-signs-in-attribute](./rules/no-spaces-around-equal-signs-in-attribute.md)| disallow spaces around equal signs in attribute |:wrench:|
95
95
|[svelte/prefer-class-directive](./rules/prefer-class-directive.md)| require class directives instead of ternary expressions |:wrench:|
96
96
|[svelte/prefer-style-directive](./rules/prefer-style-directive.md)| require style directives instead of style attribute |:wrench:|
97
+
|[svelte/require-event-prefix](./rules/require-event-prefix.md)| require component event names to start with "on" ||
97
98
|[svelte/shorthand-attribute](./rules/shorthand-attribute.md)| enforce use of shorthand syntax in attribute |:wrench:|
98
99
|[svelte/shorthand-directive](./rules/shorthand-directive.md)| enforce use of shorthand syntax in directives |:wrench:|
99
100
|[svelte/sort-attributes](./rules/sort-attributes.md)| enforce order of attributes |:wrench:|
Copy file name to clipboardExpand all lines: docs/rules/derived-has-same-inputs-outputs.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ since: 'v2.8.0'
10
10
11
11
> derived store should use same variable names between values and callback
12
12
13
+
-:bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
14
+
13
15
## :book: Rule Details
14
16
15
17
This rule reports where variable names and callback function's argument names are different.
Copy file name to clipboardExpand all lines: docs/rules/no-at-debug-tags.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ since: 'v0.0.1'
11
11
> disallow the use of `{@debug}`
12
12
13
13
-:gear: This rule is included in `"plugin:svelte/recommended"`.
14
+
-:bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
0 commit comments