@d-zero/eslint-config 5.0.0-alpha.50 → 5.0.0-alpha.52

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/base.js CHANGED
@@ -44,6 +44,12 @@ module.exports = {
44
44
  selector: 'MethodDefinition:not([key.name=/^_/])[accessibility="protected"]',
45
45
  message: 'Start with `_` if you want to use protected',
46
46
  },
47
+ {
48
+ selector:
49
+ "CallExpression[callee.property.name='addEventListener'][arguments.0.value='DOMContentLoaded']",
50
+ message:
51
+ "Avoid using 'DOMContentLoaded'. Use 'defer' or 'type=module' attribute instead.",
52
+ },
47
53
  ],
48
54
  'no-unused-vars': 0,
49
55
  'no-var': 2,
package/frontend.js ADDED
@@ -0,0 +1,12 @@
1
+ const ts = require('./typescript');
2
+
3
+ /**
4
+ * @type {import('eslint/lib/shared/types').ConfigData}
5
+ */
6
+ module.exports = {
7
+ ...ts,
8
+ rules: {
9
+ ...ts.rules,
10
+ 'unicorn/prefer-top-level-await': 0,
11
+ },
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/eslint-config",
3
- "version": "5.0.0-alpha.50",
3
+ "version": "5.0.0-alpha.52",
4
4
  "description": "Configurations of ESLint",
5
5
  "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -13,29 +13,33 @@
13
13
  "node": ">=22.0.0"
14
14
  },
15
15
  "files": [
16
- "index.js",
17
- "base.js"
16
+ "base.js",
17
+ "frontend.js",
18
+ "typescript.js"
18
19
  ],
19
20
  "type": "commonjs",
20
- "main": "index.js",
21
+ "main": "frontend.js",
21
22
  "exports": {
22
23
  ".": {
23
- "require": "./index.js"
24
+ "require": "./frontend.js"
24
25
  },
25
26
  "./base": {
26
27
  "require": "./base.js"
28
+ },
29
+ "./node": {
30
+ "require": "./node.js"
27
31
  }
28
32
  },
29
33
  "dependencies": {
30
- "@typescript-eslint/eslint-plugin": "8.12.2",
31
- "@typescript-eslint/parser": "8.12.2",
34
+ "@typescript-eslint/eslint-plugin": "8.17.0",
35
+ "@typescript-eslint/parser": "8.17.0",
32
36
  "eslint": "8.57.1",
33
37
  "eslint-plugin-eslint-comments": "3.2.0",
34
38
  "eslint-plugin-import": "2.31.0",
35
- "eslint-plugin-jsdoc": "50.4.3",
36
- "eslint-plugin-regexp": "2.6.0",
39
+ "eslint-plugin-jsdoc": "50.6.0",
40
+ "eslint-plugin-regexp": "2.7.0",
37
41
  "eslint-plugin-sort-class-members": "1.21.0",
38
- "eslint-plugin-unicorn": "56.0.0"
42
+ "eslint-plugin-unicorn": "56.0.1"
39
43
  },
40
- "gitHead": "3a4066e697bbacc9c8c55decd27c784818dd76c8"
44
+ "gitHead": "68e226da6791383d100854506fc048a757436283"
41
45
  }
File without changes