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-1
Original file line number
Diff line number
Diff line change
@@ -304,9 +304,17 @@ These rules relate to this plugin works:
304
304
| Rule ID | Description ||
305
305
|:--------|:------------|:---|
306
306
|[@ota-meshi/svelte/comment-directive](https://ota-meshi.github.io/eslint-plugin-svelte/rules/comment-directive/)| support comment-directives in HTML template |:star:|
307
-
|[@ota-meshi/svelte/dollar-prefixed-store-uses-vars](https://ota-meshi.github.io/eslint-plugin-svelte/rules/dollar-prefixed-store-uses-vars/)| prevent $-prefixed variables to be marked as unused |:star:|
308
307
|[@ota-meshi/svelte/system](https://ota-meshi.github.io/eslint-plugin-svelte/rules/system/)| system rule for working this plugin |:star:|
309
308
309
+
## Deprecated
310
+
311
+
-:warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
312
+
-:innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
313
+
314
+
| Rule ID | Replaced by |
315
+
|:--------|:------------|
316
+
|[@ota-meshi/svelte/dollar-prefixed-store-uses-vars](https://ota-meshi.github.io/eslint-plugin-svelte/rules/dollar-prefixed-store-uses-vars/)| (no replacement) |
Copy file name to clipboardExpand all lines: docs/rules.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -73,5 +73,13 @@ These rules relate to this plugin works:
73
73
| Rule ID | Description ||
74
74
|:--------|:------------|:---|
75
75
|[@ota-meshi/svelte/comment-directive](./rules/comment-directive.md)| support comment-directives in HTML template |:star:|
76
-
|[@ota-meshi/svelte/dollar-prefixed-store-uses-vars](./rules/dollar-prefixed-store-uses-vars.md)| prevent $-prefixed variables to be marked as unused |:star:|
77
76
|[@ota-meshi/svelte/system](./rules/system.md)| system rule for working this plugin |:star:|
77
+
78
+
## Deprecated
79
+
80
+
-:warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
81
+
-:innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
82
+
83
+
| Rule ID | Replaced by |
84
+
|:--------|:------------|
85
+
|[@ota-meshi/svelte/dollar-prefixed-store-uses-vars](./rules/dollar-prefixed-store-uses-vars.md)| (no replacement) |
Copy file name to clipboardExpand all lines: tools/update-rulesets.ts
+47-12
Original file line number
Diff line number
Diff line change
@@ -2,30 +2,65 @@ import path from "path"
2
2
importfsfrom"fs"
3
3
import{rules}from"./lib/load-rules"
4
4
5
-
constcontent=`
6
-
import path from "path"
7
-
const base = require.resolve("./base")
8
-
const baseExtend =
9
-
path.extname(\`\${base}\`) === ".ts" ? "plugin:@ota-meshi/svelte/base" : base
10
-
export = {
11
-
extends: [baseExtend],
12
-
rules: {
5
+
constbaseContent=`export = {
6
+
plugins: ["@ota-meshi/svelte"],
7
+
overrides: [
8
+
{
9
+
files: ["*.svelte"],
10
+
parser: require.resolve("svelte-eslint-parser"),
11
+
rules: {
12
+
// ESLint core rules known to cause problems with \`.svelte\`.
13
+
"no-inner-declarations": "off", // The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the \`Program\`.
0 commit comments