@pengzhanbo/eslint-config 2.8.4 → 2.9.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -1
  2. package/package.json +15 -15
package/dist/index.d.ts CHANGED
@@ -3214,7 +3214,7 @@ interface RuleOptions {
3214
3214
  */
3215
3215
  'node/no-new-require'?: Linter.RuleEntry<[]>;
3216
3216
  /**
3217
- * disallow string concatenation with `__dirname` and `__filename`
3217
+ * disallow string concatenation with `__dirname`, `__filename`, and `import.meta` paths
3218
3218
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
3219
3219
  */
3220
3220
  'node/no-path-concat'?: Linter.RuleEntry<[]>;
@@ -3323,11 +3323,21 @@ interface RuleOptions {
3323
3323
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
3324
3324
  */
3325
3325
  'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>;
3326
+ /**
3327
+ * enforce using `node:assert/strict` instead of `node:assert`.
3328
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-import/assert-strict.md
3329
+ */
3330
+ 'node/prefer-import/assert-strict'?: Linter.RuleEntry<[]>;
3326
3331
  /**
3327
3332
  * enforce using the `node:` protocol when importing Node.js builtin modules.
3328
3333
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
3329
3334
  */
3330
3335
  'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>;
3336
+ /**
3337
+ * enforce using `process.getBuiltinModule()` to load Node.js built-in modules
3338
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-process-get-builtin-module.md
3339
+ */
3340
+ 'node/prefer-process-get-builtin-module'?: Linter.RuleEntry<NodePreferProcessGetBuiltinModule>;
3331
3341
  /**
3332
3342
  * enforce `require("dns").promises`
3333
3343
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
@@ -13462,6 +13472,10 @@ type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")];
13462
13472
  type NodePreferNodeProtocol = [] | [{
13463
13473
  version?: string;
13464
13474
  }];
13475
+ // ----- node/prefer-process-get-builtin-module -----
13476
+ type NodePreferProcessGetBuiltinModule = [] | [{
13477
+ version?: string;
13478
+ }];
13465
13479
  // ----- node/shebang -----
13466
13480
  type NodeShebang = [] | [{
13467
13481
  convertPath?: ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pengzhanbo/eslint-config",
3
3
  "type": "module",
4
- "version": "2.8.4",
4
+ "version": "2.9.0",
5
5
  "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/pengzhanbo/configs#readme",
@@ -25,15 +25,15 @@
25
25
  "@angular-eslint/eslint-plugin": "^22.1.0",
26
26
  "@angular-eslint/eslint-plugin-template": "^22.1.0",
27
27
  "@angular-eslint/template-parser": "^22.1.0",
28
- "@eslint-react/eslint-plugin": "^5.18.2",
28
+ "@eslint-react/eslint-plugin": "^5.18.4",
29
29
  "@next/eslint-plugin-next": "^16.3.0",
30
30
  "@prettier/plugin-xml": "^3.4.2",
31
31
  "@unocss/eslint-plugin": "^66.7.5",
32
32
  "astro-eslint-parser": "^3.0.0",
33
- "eslint": "^10.8.0",
33
+ "eslint": "^10.8.1",
34
34
  "eslint-plugin-astro": "^3.1.0",
35
35
  "eslint-plugin-format": "^2.0.1",
36
- "eslint-plugin-react-refresh": "^0.5.3",
36
+ "eslint-plugin-react-refresh": "^0.5.4",
37
37
  "eslint-plugin-solid": "^0.14.5",
38
38
  "eslint-plugin-svelte": "^3.22.0",
39
39
  "eslint-plugin-tailwindcss": "^4.2.0",
@@ -113,9 +113,9 @@
113
113
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
114
114
  "@eslint/markdown": "^8.0.3",
115
115
  "@stylistic/eslint-plugin": "^5.10.0",
116
- "@typescript-eslint/eslint-plugin": "^8.66.0",
117
- "@typescript-eslint/parser": "^8.66.0",
118
- "@vitest/eslint-plugin": "^1.6.26",
116
+ "@typescript-eslint/eslint-plugin": "^8.67.0",
117
+ "@typescript-eslint/parser": "^8.67.0",
118
+ "@vitest/eslint-plugin": "^1.6.27",
119
119
  "eslint-config-flat-gitignore": "^2.3.0",
120
120
  "eslint-flat-config-utils": "^3.2.0",
121
121
  "eslint-merge-processors": "^2.0.0",
@@ -123,10 +123,10 @@
123
123
  "eslint-plugin-command": "^4.0.0",
124
124
  "eslint-plugin-erasable-syntax-only": "^0.4.2",
125
125
  "eslint-plugin-import-lite": "^0.6.0",
126
- "eslint-plugin-jsdoc": "^63.3.3",
126
+ "eslint-plugin-jsdoc": "^64.1.0",
127
127
  "eslint-plugin-jsonc": "^3.4.1",
128
128
  "eslint-plugin-jsx-a11y": "^6.10.2",
129
- "eslint-plugin-n": "^18.2.2",
129
+ "eslint-plugin-n": "^18.3.0",
130
130
  "eslint-plugin-no-only-tests": "^3.4.0",
131
131
  "eslint-plugin-perfectionist": "^5.10.1",
132
132
  "eslint-plugin-pnpm": "^1.7.0",
@@ -135,7 +135,7 @@
135
135
  "eslint-plugin-unicorn": "^73.0.0",
136
136
  "eslint-plugin-unused-imports": "^4.4.1",
137
137
  "eslint-plugin-yml": "^3.8.1",
138
- "globals": "^17.9.0",
138
+ "globals": "^17.10.0",
139
139
  "local-pkg": "^1.2.1",
140
140
  "parse-gitignore": "^2.0.0",
141
141
  "toml-eslint-parser": "^1.0.3",
@@ -145,22 +145,22 @@
145
145
  "@angular-eslint/eslint-plugin": "^22.1.0",
146
146
  "@angular-eslint/eslint-plugin-template": "^22.1.0",
147
147
  "@angular-eslint/template-parser": "^22.1.0",
148
- "@angular/core": "^22.1.0",
149
- "@eslint-react/eslint-plugin": "^5.18.2",
148
+ "@angular/core": "^22.1.1",
149
+ "@eslint-react/eslint-plugin": "^5.18.4",
150
150
  "@eslint/config-inspector": "^3.2.0",
151
151
  "@next/eslint-plugin-next": "^16.3.0",
152
152
  "@prettier/plugin-xml": "^3.4.2",
153
153
  "@unocss/eslint-plugin": "^66.7.5",
154
154
  "astro-eslint-parser": "^3.0.0",
155
- "eslint": "^10.8.0",
155
+ "eslint": "^10.8.1",
156
156
  "eslint-plugin-astro": "^3.1.0",
157
157
  "eslint-plugin-format": "^2.0.1",
158
- "eslint-plugin-react-refresh": "^0.5.3",
158
+ "eslint-plugin-react-refresh": "^0.5.4",
159
159
  "eslint-plugin-solid": "^0.14.5",
160
160
  "eslint-plugin-svelte": "^3.22.0",
161
161
  "eslint-plugin-tailwindcss": "^4.2.0",
162
162
  "eslint-plugin-vue": "^10.10.0",
163
- "eslint-plugin-vuejs-accessibility": "^2.5.0",
163
+ "eslint-plugin-vuejs-accessibility": "^2.6.0",
164
164
  "eslint-processor-vue-blocks": "^2.0.0",
165
165
  "eslint-typegen": "^2.3.1",
166
166
  "find-up-simple": "^1.0.1",