@ota-meshi/eslint-plugin 0.13.2 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/configs/+json.js +1 -0
- package/lib/configs/+md.js +1 -0
- package/lib/configs/+package-json.js +1 -0
- package/lib/configs/+svelte-with-ts.js +3 -0
- package/lib/configs/+svelte.js +4 -1
- package/lib/configs/+toml.js +1 -0
- package/lib/configs/+typescript.js +1 -0
- package/lib/configs/+vue2-with-ts.js +3 -0
- package/lib/configs/+vue2.js +1 -0
- package/lib/configs/+vue3-with-ts.js +3 -0
- package/lib/configs/+vue3.js +1 -0
- package/lib/configs/+yaml.js +1 -0
- package/package.json +1 -1
package/lib/configs/+json.js
CHANGED
package/lib/configs/+md.js
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
6
6
|
"@typescript-eslint/parser",
|
|
7
7
|
"typescript",
|
|
8
8
|
"@typescript-eslint/eslint-plugin",
|
|
9
|
+
"svelte-eslint-parser",
|
|
9
10
|
],
|
|
10
11
|
() => ({
|
|
11
12
|
overrides: [
|
|
@@ -13,6 +14,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
13
14
|
files: ["*.svelte"],
|
|
14
15
|
extends: [require.resolve("./+svelte"), ...base.extends],
|
|
15
16
|
...base,
|
|
17
|
+
parser: require.resolve("svelte-eslint-parser"),
|
|
16
18
|
parserOptions: {
|
|
17
19
|
...base.parserOptions,
|
|
18
20
|
parser: require.resolve("@typescript-eslint/parser"),
|
|
@@ -25,6 +27,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
25
27
|
files: ["*.svelte"],
|
|
26
28
|
fallback: () => ({
|
|
27
29
|
processor: "@ota-meshi/missing-parser",
|
|
30
|
+
parser: "espree",
|
|
28
31
|
}),
|
|
29
32
|
}
|
|
30
33
|
);
|
package/lib/configs/+svelte.js
CHANGED
|
@@ -8,7 +8,9 @@ module.exports = require("../utils/module").requireOf(
|
|
|
8
8
|
files: ["*.svelte"],
|
|
9
9
|
extends: ["plugin:svelte/recommended"],
|
|
10
10
|
parserOptions: {
|
|
11
|
-
|
|
11
|
+
parser: {
|
|
12
|
+
ts: require.resolve("@typescript-eslint/parser"),
|
|
13
|
+
},
|
|
12
14
|
},
|
|
13
15
|
rules: {
|
|
14
16
|
"svelte/no-store-async": "error",
|
|
@@ -29,6 +31,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
29
31
|
files: ["*.svelte"],
|
|
30
32
|
fallback: () => ({
|
|
31
33
|
processor: "@ota-meshi/missing-parser",
|
|
34
|
+
parser: "espree",
|
|
32
35
|
}),
|
|
33
36
|
}
|
|
34
37
|
);
|
package/lib/configs/+toml.js
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
6
6
|
"@typescript-eslint/parser",
|
|
7
7
|
"typescript",
|
|
8
8
|
"@typescript-eslint/eslint-plugin",
|
|
9
|
+
"vue-eslint-parser",
|
|
9
10
|
],
|
|
10
11
|
() => ({
|
|
11
12
|
overrides: [
|
|
@@ -13,6 +14,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
13
14
|
files: ["*.vue"],
|
|
14
15
|
extends: [require.resolve("./+vue2"), ...base.extends],
|
|
15
16
|
...base,
|
|
17
|
+
parser: require.resolve("vue-eslint-parser"),
|
|
16
18
|
parserOptions: {
|
|
17
19
|
...base.parserOptions,
|
|
18
20
|
parser: require.resolve("@typescript-eslint/parser"),
|
|
@@ -25,6 +27,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
25
27
|
files: ["*.vue"],
|
|
26
28
|
fallback: () => ({
|
|
27
29
|
processor: "@ota-meshi/missing-parser",
|
|
30
|
+
parser: "espree",
|
|
28
31
|
}),
|
|
29
32
|
}
|
|
30
33
|
);
|
package/lib/configs/+vue2.js
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
6
6
|
"@typescript-eslint/parser",
|
|
7
7
|
"typescript",
|
|
8
8
|
"@typescript-eslint/eslint-plugin",
|
|
9
|
+
"vue-eslint-parser",
|
|
9
10
|
],
|
|
10
11
|
() => ({
|
|
11
12
|
overrides: [
|
|
@@ -13,6 +14,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
13
14
|
files: ["*.vue"],
|
|
14
15
|
extends: [require.resolve("./+vue3"), ...base.extends],
|
|
15
16
|
...base,
|
|
17
|
+
parser: require.resolve("vue-eslint-parser"),
|
|
16
18
|
parserOptions: {
|
|
17
19
|
...base.parserOptions,
|
|
18
20
|
parser: require.resolve("@typescript-eslint/parser"),
|
|
@@ -25,6 +27,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
25
27
|
files: ["*.vue"],
|
|
26
28
|
fallback: () => ({
|
|
27
29
|
processor: "@ota-meshi/missing-parser",
|
|
30
|
+
parser: "espree",
|
|
28
31
|
}),
|
|
29
32
|
}
|
|
30
33
|
);
|
package/lib/configs/+vue3.js
CHANGED
package/lib/configs/+yaml.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ota-meshi/eslint-plugin",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"description": "ESLint configuration plugin for me.",
|
|
5
5
|
"repository": "git+https://github.com/ota-meshi/eslint-plugin.git",
|
|
6
6
|
"homepage": "https://github.com/ota-meshi/eslint-plugin#readme",
|