@ota-meshi/eslint-plugin 0.11.1 → 0.12.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.
@@ -5,7 +5,7 @@ module.exports = require("../utils/module").requireOf(
5
5
  () => ({
6
6
  overrides: [
7
7
  {
8
- files: ["*.js"],
8
+ files: ["*.js", "*.mjs", "*.cjs"],
9
9
  extends: ["plugin:node/recommended"],
10
10
  parserOptions: {
11
11
  ecmaFeatures: { globalReturn: true },
@@ -23,8 +23,11 @@ module.exports = require("../utils/module").requireOf(
23
23
  "node/prefer-global/console": "error",
24
24
  "node/prefer-global/process": "error",
25
25
  },
26
+ globals: {
27
+ URL: "readonly",
28
+ },
26
29
  },
27
30
  ],
28
31
  }),
29
- { files: ["*.js"] }
32
+ { files: ["*.js", "*.mjs", "*.cjs"] }
30
33
  );
@@ -10,7 +10,7 @@ module.exports = require("../utils/module").requireOf(
10
10
  () => ({
11
11
  overrides: [
12
12
  {
13
- files: ["*.ts"],
13
+ files: ["*.ts", "*.mts", "*.cts"],
14
14
  extends: ["plugin:@typescript-eslint/recommended"],
15
15
  parser: require.resolve("@typescript-eslint/parser"),
16
16
  parserOptions: {
@@ -95,18 +95,7 @@ module.exports = require("../utils/module").requireOf(
95
95
  { ignoreStatic: true },
96
96
  ],
97
97
  "@typescript-eslint/unified-signatures": "error",
98
- "prettier/prettier": [
99
- "error",
100
- {
101
- tabWidth: 4,
102
- semi: false,
103
- trailingComma: "all",
104
- parser: "typescript",
105
- },
106
- {
107
- usePrettierrc: false,
108
- },
109
- ],
98
+ "prettier/prettier": "error",
110
99
 
111
100
  // Replacements
112
101
  camelcase: "off",
@@ -135,7 +124,14 @@ module.exports = require("../utils/module").requireOf(
135
124
  },
136
125
  },
137
126
  {
138
- files: ["test/**/*.ts", "tests/**/*.ts"],
127
+ files: [
128
+ "test/**/*.ts",
129
+ "tests/**/*.ts",
130
+ "test/**/*.mts",
131
+ "tests/**/*.mts",
132
+ "test/**/*.cts",
133
+ "tests/**/*.cts",
134
+ ],
139
135
  rules: {
140
136
  "@typescript-eslint/no-explicit-any": "off",
141
137
  },
@@ -143,7 +139,7 @@ module.exports = require("../utils/module").requireOf(
143
139
  ],
144
140
  }),
145
141
  {
146
- files: ["*.ts"],
142
+ files: ["*.ts", "*.mts", "*.cts"],
147
143
  fallback: () => ({
148
144
  processor: "@ota-meshi/missing-parser",
149
145
  }),
@@ -223,11 +223,24 @@ module.exports = {
223
223
  },
224
224
  overrides: [
225
225
  {
226
- files: ["*.js"],
226
+ files: ["*.js", "*.mjs", "*.cjs"],
227
227
  extends: [require.resolve("./json-schema/config")],
228
228
  },
229
229
  {
230
- files: ["test/**/*.js", "tests/**/*.js", "test/**/*.ts", "tests/**/*.ts"],
230
+ files: [
231
+ "test/**/*.js",
232
+ "tests/**/*.js",
233
+ "test/**/*.cjs",
234
+ "tests/**/*.cjs",
235
+ "test/**/*.mjs",
236
+ "tests/**/*.mjs",
237
+ "test/**/*.ts",
238
+ "tests/**/*.ts",
239
+ "test/**/*.mts",
240
+ "tests/**/*.mts",
241
+ "test/**/*.cts",
242
+ "tests/**/*.cts",
243
+ ],
231
244
  globals: {
232
245
  after: "readonly",
233
246
  afterEach: "readonly",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ota-meshi/eslint-plugin",
3
- "version": "0.11.1",
3
+ "version": "0.12.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",
@@ -36,12 +36,12 @@
36
36
  "eslint": "^8.0.0",
37
37
  "eslint-config-prettier": "^8.0.0",
38
38
  "eslint-plugin-eslint-comments": "^3.2.0",
39
- "eslint-plugin-eslint-plugin": "^4.0.0",
40
- "eslint-plugin-json-schema-validator": "^3.0.0",
39
+ "eslint-plugin-eslint-plugin": "^5.0.0",
40
+ "eslint-plugin-json-schema-validator": "^4.0.0",
41
41
  "eslint-plugin-jsonc": "^2.0.0",
42
- "eslint-plugin-markdown": "^2.0.0",
42
+ "eslint-plugin-markdown": "^3.0.0",
43
43
  "eslint-plugin-node": "^11.1.0",
44
- "eslint-plugin-node-dependencies": "^0.8.0",
44
+ "eslint-plugin-node-dependencies": "^0.9.0",
45
45
  "eslint-plugin-prettier": "^4.0.0",
46
46
  "eslint-plugin-regexp": "^1.0.0",
47
47
  "eslint-plugin-toml": "^0.3.1",
@@ -49,7 +49,7 @@
49
49
  "eslint-plugin-yml": "^1.0.0",
50
50
  "mocha": "^10.0.0",
51
51
  "prettier": "^2.0.5",
52
- "prettier-plugin-pkg": "^0.14.1",
52
+ "prettier-plugin-pkg": "^0.17.0",
53
53
  "typescript": "^4.1.5"
54
54
  },
55
55
  "publishConfig": {