@ota-meshi/eslint-plugin 0.14.0 → 0.15.1
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/+eslint-plugin.js +2 -2
- package/lib/configs/+json.js +1 -1
- package/lib/configs/+md.js +1 -1
- package/lib/configs/+node.js +2 -2
- package/lib/configs/+package-json.js +1 -1
- package/lib/configs/+prettier.js +1 -1
- package/lib/configs/+svelte-with-ts.js +1 -1
- package/lib/configs/+svelte.js +1 -1
- package/lib/configs/+toml.js +1 -1
- package/lib/configs/+typescript.js +1 -1
- package/lib/configs/+vue2-with-ts.js +1 -1
- package/lib/configs/+vue2.js +1 -1
- package/lib/configs/+vue3-with-ts.js +1 -1
- package/lib/configs/+vue3.js +1 -1
- package/lib/configs/+yaml.js +1 -1
- package/lib/configs/base-plugins/eslint-comments.js +1 -1
- package/lib/configs/base-plugins/regexp.js +1 -1
- package/lib/configs/json-schema/config.js +1 -1
- package/lib/configs/ts/index.js +1 -1
- package/lib/utils/get-linters.js +1 -1
- package/package.json +9 -9
|
@@ -58,7 +58,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
|
-
})
|
|
61
|
+
}),
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -68,7 +68,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
68
68
|
function rulesDocumentUrl() {
|
|
69
69
|
try {
|
|
70
70
|
const { version, repository } = JSON.parse(
|
|
71
|
-
fs.readFileSync(path.join(process.cwd(), "package.json"), "utf8")
|
|
71
|
+
fs.readFileSync(path.join(process.cwd(), "package.json"), "utf8"),
|
|
72
72
|
);
|
|
73
73
|
const baseUrl = getBaseUrl(repository);
|
|
74
74
|
if (baseUrl) {
|
package/lib/configs/+json.js
CHANGED
package/lib/configs/+md.js
CHANGED
package/lib/configs/+node.js
CHANGED
|
@@ -17,7 +17,7 @@ module.exports = require("../utils/module").requireOf(
|
|
|
17
17
|
"n/file-extension-in-import": [
|
|
18
18
|
"error",
|
|
19
19
|
"always",
|
|
20
|
-
{ ".js": "
|
|
20
|
+
{ ".js": "always", ".ts": "never", ".tsx": "never" },
|
|
21
21
|
],
|
|
22
22
|
"n/prefer-global/buffer": "error",
|
|
23
23
|
"n/prefer-global/console": "error",
|
|
@@ -29,5 +29,5 @@ module.exports = require("../utils/module").requireOf(
|
|
|
29
29
|
},
|
|
30
30
|
],
|
|
31
31
|
}),
|
|
32
|
-
{ files: ["*.js", "*.mjs", "*.cjs"] }
|
|
32
|
+
{ files: ["*.js", "*.mjs", "*.cjs"] },
|
|
33
33
|
);
|
package/lib/configs/+prettier.js
CHANGED
package/lib/configs/+svelte.js
CHANGED
package/lib/configs/+toml.js
CHANGED
package/lib/configs/+vue2.js
CHANGED
package/lib/configs/+vue3.js
CHANGED
package/lib/configs/+yaml.js
CHANGED
package/lib/configs/ts/index.js
CHANGED
package/lib/utils/get-linters.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = () => {
|
|
|
7
7
|
const eslintPaths = new Set(
|
|
8
8
|
Object.keys(require.cache)
|
|
9
9
|
.filter((id) => id.includes(needle))
|
|
10
|
-
.map((id) => id.slice(0, id.indexOf(needle) + needle.length))
|
|
10
|
+
.map((id) => id.slice(0, id.indexOf(needle) + needle.length)),
|
|
11
11
|
);
|
|
12
12
|
const linters = [];
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ota-meshi/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"eslint": "^7.0.0 || ^8.0.0",
|
|
27
27
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
28
|
-
"eslint-plugin-regexp": "^1.0.0"
|
|
28
|
+
"eslint-plugin-regexp": "^1.0.0 || ^2.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"semver": "^7.3.4"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
35
35
|
"@typescript-eslint/parser": "^6.0.0",
|
|
36
36
|
"eslint": "^8.0.0",
|
|
37
|
-
"eslint-config-prettier": "^
|
|
37
|
+
"eslint-config-prettier": "^9.0.0",
|
|
38
38
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
39
39
|
"eslint-plugin-eslint-plugin": "^5.0.0",
|
|
40
40
|
"eslint-plugin-json-schema-validator": "^4.0.0",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"eslint-plugin-markdown": "^3.0.0",
|
|
43
43
|
"eslint-plugin-n": "^16.0.1",
|
|
44
44
|
"eslint-plugin-node-dependencies": "^0.11.0",
|
|
45
|
-
"eslint-plugin-prettier": "^
|
|
46
|
-
"eslint-plugin-regexp": "^
|
|
45
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
46
|
+
"eslint-plugin-regexp": "^2.0.0",
|
|
47
47
|
"eslint-plugin-svelte": "^2.9.0",
|
|
48
|
-
"eslint-plugin-toml": "^0.
|
|
48
|
+
"eslint-plugin-toml": "^0.6.0",
|
|
49
49
|
"eslint-plugin-vue": "^9.0.0",
|
|
50
50
|
"eslint-plugin-yml": "^1.0.0",
|
|
51
51
|
"mocha": "^10.0.0",
|
|
52
|
-
"prettier": "^
|
|
53
|
-
"prettier-plugin-pkg": "^0.
|
|
54
|
-
"prettier-plugin-svelte": "^
|
|
52
|
+
"prettier": "^3.0.0",
|
|
53
|
+
"prettier-plugin-pkg": "^0.18.0",
|
|
54
|
+
"prettier-plugin-svelte": "^3.0.0",
|
|
55
55
|
"svelte": "^4.0.0",
|
|
56
56
|
"typescript": "^5.0.0"
|
|
57
57
|
},
|