@ota-meshi/eslint-plugin 0.13.7 → 0.14.0
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/+node.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
module.exports = require("../utils/module").requireOf(
|
|
4
|
-
["eslint-plugin-
|
|
4
|
+
["eslint-plugin-n"],
|
|
5
5
|
() => ({
|
|
6
6
|
overrides: [
|
|
7
7
|
{
|
|
8
8
|
files: ["*.js", "*.mjs", "*.cjs"],
|
|
9
|
-
extends: ["plugin:
|
|
9
|
+
extends: ["plugin:n/recommended"],
|
|
10
10
|
parserOptions: {
|
|
11
11
|
ecmaFeatures: { globalReturn: true },
|
|
12
12
|
ecmaVersion: 2020,
|
|
13
13
|
sourceType: "script",
|
|
14
14
|
},
|
|
15
15
|
rules: {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"n/exports-style": ["error", "module.exports"],
|
|
17
|
+
"n/file-extension-in-import": [
|
|
18
18
|
"error",
|
|
19
19
|
"always",
|
|
20
20
|
{ ".js": "never", ".ts": "never", ".tsx": "never" },
|
|
21
21
|
],
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
"n/prefer-global/buffer": "error",
|
|
23
|
+
"n/prefer-global/console": "error",
|
|
24
|
+
"n/prefer-global/process": "error",
|
|
25
25
|
},
|
|
26
26
|
globals: {
|
|
27
27
|
URL: "readonly",
|
|
@@ -63,7 +63,7 @@ module.exports = {
|
|
|
63
63
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
64
64
|
"@typescript-eslint/no-misused-new": "error",
|
|
65
65
|
"@typescript-eslint/no-misused-promises": "error",
|
|
66
|
-
"@typescript-eslint/
|
|
66
|
+
"@typescript-eslint/parameter-properties": "error",
|
|
67
67
|
"@typescript-eslint/no-require-imports": "error",
|
|
68
68
|
"@typescript-eslint/no-this-alias": ["error", { allowDestructuring: true }],
|
|
69
69
|
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ota-meshi/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
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",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"semver": "^7.3.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
35
|
-
"@typescript-eslint/parser": "^
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
35
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
36
36
|
"eslint": "^8.0.0",
|
|
37
37
|
"eslint-config-prettier": "^8.0.0",
|
|
38
38
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
"eslint-plugin-json-schema-validator": "^4.0.0",
|
|
41
41
|
"eslint-plugin-jsonc": "^2.0.0",
|
|
42
42
|
"eslint-plugin-markdown": "^3.0.0",
|
|
43
|
-
"eslint-plugin-
|
|
44
|
-
"eslint-plugin-node-dependencies": "^0.
|
|
43
|
+
"eslint-plugin-n": "^16.0.1",
|
|
44
|
+
"eslint-plugin-node-dependencies": "^0.11.0",
|
|
45
45
|
"eslint-plugin-prettier": "^4.0.0",
|
|
46
46
|
"eslint-plugin-regexp": "^1.0.0",
|
|
47
47
|
"eslint-plugin-svelte": "^2.9.0",
|
|
48
|
-
"eslint-plugin-toml": "^0.
|
|
48
|
+
"eslint-plugin-toml": "^0.5.0",
|
|
49
49
|
"eslint-plugin-vue": "^9.0.0",
|
|
50
50
|
"eslint-plugin-yml": "^1.0.0",
|
|
51
51
|
"mocha": "^10.0.0",
|
|
52
52
|
"prettier": "^2.0.5",
|
|
53
53
|
"prettier-plugin-pkg": "^0.17.0",
|
|
54
54
|
"prettier-plugin-svelte": "^2.7.1",
|
|
55
|
-
"svelte": "^
|
|
55
|
+
"svelte": "^4.0.0",
|
|
56
56
|
"typescript": "^5.0.0"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|