@ota-meshi/eslint-plugin 0.13.6 → 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.
@@ -1,27 +1,27 @@
1
1
  "use strict";
2
2
 
3
3
  module.exports = require("../utils/module").requireOf(
4
- ["eslint-plugin-node"],
4
+ ["eslint-plugin-n"],
5
5
  () => ({
6
6
  overrides: [
7
7
  {
8
8
  files: ["*.js", "*.mjs", "*.cjs"],
9
- extends: ["plugin:node/recommended"],
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
- "node/exports-style": ["error", "module.exports"],
17
- "node/file-extension-in-import": [
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
- "node/prefer-global/buffer": "error",
23
- "node/prefer-global/console": "error",
24
- "node/prefer-global/process": "error",
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/no-parameter-properties": "error",
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/lib/index.js CHANGED
@@ -26,10 +26,14 @@ module.exports = {
26
26
  processors: {
27
27
  "missing-parser": {
28
28
  preprocess() {
29
- return [{ text: "/* missing parser */", filename: "0.js" }];
29
+ return [
30
+ { text: "/* missing parser */", filename: "missing-parser.js" },
31
+ ];
30
32
  },
31
33
  postprocess(messages) {
32
- return [].concat(...messages);
34
+ return []
35
+ .concat(...messages)
36
+ .filter((r) => r.ruleId === "@ota-meshi/missing-module-for-config");
33
37
  },
34
38
 
35
39
  supportsAutofix: false,
@@ -58,6 +58,7 @@ function requireOf(names, getConfig, fallback) {
58
58
  "@ota-meshi/missing-module-for-config": ["error", missings],
59
59
  },
60
60
  ...fb,
61
+ files: [...fb.files, "*missing-parser.js"],
61
62
  },
62
63
  ],
63
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ota-meshi/eslint-plugin",
3
- "version": "0.13.6",
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": "^5.0.0-0",
35
- "@typescript-eslint/parser": "^5.0.0-0",
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-node": "^11.1.0",
44
- "eslint-plugin-node-dependencies": "^0.10.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.4.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": "^3.50.1",
55
+ "svelte": "^4.0.0",
56
56
  "typescript": "^5.0.0"
57
57
  },
58
58
  "publishConfig": {