@ota-meshi/eslint-plugin 0.11.1 → 0.11.2

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
  );
@@ -223,11 +223,20 @@ 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
+ ],
231
240
  globals: {
232
241
  after: "readonly",
233
242
  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.11.2",
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",
@@ -41,7 +41,7 @@
41
41
  "eslint-plugin-jsonc": "^2.0.0",
42
42
  "eslint-plugin-markdown": "^2.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.16.0",
53
53
  "typescript": "^4.1.5"
54
54
  },
55
55
  "publishConfig": {