@w5s/eslint-config 3.27.0 → 3.28.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/eslint-config",
3
- "version": "3.27.0",
3
+ "version": "3.28.0",
4
4
  "description": "ESLint configuration presets",
5
5
  "keywords": [
6
6
  "eslint",
@@ -37,8 +37,8 @@
37
37
  "postpack": "clean-package restore"
38
38
  },
39
39
  "dependencies": {
40
- "@e18e/eslint-plugin": "^0.6.0",
41
- "@eslint-react/eslint-plugin": "5.18.2",
40
+ "@e18e/eslint-plugin": "^0.8.0",
41
+ "@eslint-react/eslint-plugin": "5.18.3",
42
42
  "@eslint/js": "^10.0.0",
43
43
  "@eslint/markdown": "^8.0.0",
44
44
  "@next/eslint-plugin-next": "^16.0.0",
@@ -46,16 +46,16 @@
46
46
  "@typescript-eslint/eslint-plugin": "^8.0.0",
47
47
  "@typescript-eslint/parser": "^8.0.0",
48
48
  "@vitest/eslint-plugin": "~1.6.20",
49
- "@w5s/dev": "^3.18.0",
50
- "@w5s/eslint-config-ignore": "^1.17.0",
51
- "@w5s/prettier-config": "^3.12.0",
49
+ "@w5s/dev": "^3.19.0",
50
+ "@w5s/eslint-config-ignore": "^1.18.0",
51
+ "@w5s/prettier-config": "^3.13.0",
52
52
  "eslint-merge-processors": "^2.0.0",
53
53
  "eslint-plugin-import": "~2.32.0",
54
- "eslint-plugin-jsdoc": "~63.3.0",
54
+ "eslint-plugin-jsdoc": "~64.1.0",
55
55
  "eslint-plugin-jsonc": "~3.4.0",
56
- "eslint-plugin-n": "~18.2.0",
56
+ "eslint-plugin-n": "~18.3.0",
57
57
  "eslint-plugin-perfectionist": "~5.10.0",
58
- "eslint-plugin-unicorn": "~72.0.0",
58
+ "eslint-plugin-unicorn": "~73.0.0",
59
59
  "eslint-plugin-unused-imports": "~4.4.1",
60
60
  "eslint-plugin-yml": "~3.8.0",
61
61
  "globals": "^17.0.0",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "bfd01fd3fa35ecd40db35a2be0873860839c9c62"
88
+ "gitHead": "86fbbb9dc5e541529173a897bda1c0aa3efa0ec1"
89
89
  }
@@ -33,6 +33,7 @@ export async function e18e(options: e18e.Options = {}) {
33
33
  ...performanceImprovements ? e18ePlugin.configs.performanceImprovements.rules : {},
34
34
 
35
35
  // Disable dangerous (also prefer unicorn)
36
+ 'e18e/prefer-array-at': 'off',
36
37
  'e18e/prefer-array-from-map': 'off',
37
38
  'e18e/prefer-array-to-reversed': 'off',
38
39
  'e18e/prefer-array-to-sorted': 'off',
@@ -24,7 +24,7 @@ export async function jsdoc(options: jsdoc.Options = {}): Promise<ReadonlyArray<
24
24
  : {};
25
25
  const stylisticRules = stylisticEnabled
26
26
  ? {
27
- ...jsdocPlugin.configs['flat/stylistic-typescript'].rules,
27
+ ...jsdocPlugin.configs['flat/stylistic-typescript-flavor'].rules,
28
28
  'jsdoc/check-alignment': 'warn',
29
29
  'jsdoc/multiline-blocks': 'warn',
30
30
  'jsdoc/tag-lines': ['warn', 'any', { startLines: 1 }],
@@ -91,7 +91,7 @@ export interface RuleOptions {
91
91
  */
92
92
  'node/no-new-require'?: Linter.RuleEntry<[]>
93
93
  /**
94
- * disallow string concatenation with `__dirname` and `__filename`
94
+ * disallow string concatenation with `__dirname`, `__filename`, and `import.meta` paths
95
95
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
96
96
  */
97
97
  'node/no-path-concat'?: Linter.RuleEntry<[]>
@@ -200,11 +200,21 @@ export interface RuleOptions {
200
200
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
201
201
  */
202
202
  'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>
203
+ /**
204
+ * enforce using `node:assert/strict` instead of `node:assert`.
205
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-import/assert-strict.md
206
+ */
207
+ 'node/prefer-import/assert-strict'?: Linter.RuleEntry<[]>
203
208
  /**
204
209
  * enforce using the `node:` protocol when importing Node.js builtin modules.
205
210
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
206
211
  */
207
212
  'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>
213
+ /**
214
+ * enforce using `process.getBuiltinModule()` to load Node.js built-in modules
215
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-process-get-builtin-module.md
216
+ */
217
+ 'node/prefer-process-get-builtin-module'?: Linter.RuleEntry<NodePreferProcessGetBuiltinModule>
208
218
  /**
209
219
  * enforce `require("dns").promises`
210
220
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
@@ -515,6 +525,10 @@ type NodePreferGlobalUrlSearchParams = []|[("always" | "never")]
515
525
  type NodePreferNodeProtocol = []|[{
516
526
  version?: string
517
527
  }]
528
+ // ----- node/prefer-process-get-builtin-module -----
529
+ type NodePreferProcessGetBuiltinModule = []|[{
530
+ version?: string
531
+ }]
518
532
  // ----- node/shebang -----
519
533
  type NodeShebang = []|[{
520
534
  convertPath?: ({