@pengzhanbo/eslint-config 2.9.2 → 2.11.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 (3) hide show
  1. package/dist/index.d.ts +944 -529
  2. package/dist/index.js +10 -8
  3. package/package.json +48 -48
package/dist/index.js CHANGED
@@ -2547,14 +2547,16 @@ function eslintFlatConfig(options = {}, ...userConfigs) {
2547
2547
  const stylisticOptions = options.stylistic === false ? false : typeof options.stylistic === "object" ? options.stylistic : {};
2548
2548
  if (stylisticOptions && !("jsx" in stylisticOptions)) stylisticOptions.jsx = typeof enableJsx === "object" ? true : enableJsx;
2549
2549
  const configs = [];
2550
- if (enableGitignore) if (typeof enableGitignore !== "boolean") configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
2551
- name: "config/gitignore",
2552
- ...enableGitignore
2553
- })]));
2554
- else configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
2555
- name: "config/gitignore",
2556
- strict: false
2557
- })]));
2550
+ if (enableGitignore) {
2551
+ if (typeof enableGitignore !== "boolean") configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
2552
+ name: "config/gitignore",
2553
+ ...enableGitignore
2554
+ })]));
2555
+ else configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
2556
+ name: "config/gitignore",
2557
+ strict: false
2558
+ })]));
2559
+ }
2558
2560
  const typescriptOptions = resolveSubOptions(options, "typescript");
2559
2561
  const tsconfigPath = "tsconfigPath" in typescriptOptions ? typescriptOptions.tsconfigPath : void 0;
2560
2562
  configs.push(ignores(userIgnores, !enableTypeScript), javascript({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pengzhanbo/eslint-config",
3
3
  "type": "module",
4
- "version": "2.9.2",
4
+ "version": "2.11.0",
5
5
  "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/pengzhanbo/configs#readme",
@@ -22,27 +22,27 @@
22
22
  "dist"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@angular-eslint/eslint-plugin": "^22.2.0",
26
- "@angular-eslint/eslint-plugin-template": "^22.2.0",
27
- "@angular-eslint/template-parser": "^22.2.0",
28
- "@eslint-react/eslint-plugin": "^5.18.7",
29
- "@next/eslint-plugin-next": "^16.3.4",
25
+ "@angular-eslint/eslint-plugin": "^22.6.0",
26
+ "@angular-eslint/eslint-plugin-template": "^22.6.0",
27
+ "@angular-eslint/template-parser": "^22.6.0",
28
+ "@eslint-react/eslint-plugin": "^5.28.2",
29
+ "@next/eslint-plugin-next": "^16.4.2",
30
30
  "@prettier/plugin-xml": "^3.4.2",
31
- "@unocss/eslint-plugin": "^66.9.2",
32
- "astro-eslint-parser": "^3.1.0",
33
- "eslint": "^10.9.1",
34
- "eslint-plugin-astro": "^3.1.0",
31
+ "@unocss/eslint-plugin": "^66.11.0",
32
+ "astro-eslint-parser": "^3.2.0",
33
+ "eslint": "^10.13.0",
34
+ "eslint-plugin-astro": "^3.2.1",
35
35
  "eslint-plugin-format": "^2.0.1",
36
- "eslint-plugin-react-refresh": "^0.5.6",
37
- "eslint-plugin-solid": "^0.17.0",
38
- "eslint-plugin-svelte": "^3.23.0",
36
+ "eslint-plugin-react-refresh": "^0.5.7",
37
+ "eslint-plugin-solid": "^0.18.1",
38
+ "eslint-plugin-svelte": "^3.23.1",
39
39
  "eslint-plugin-tailwindcss": "^4.4.0",
40
- "eslint-plugin-vue": "^10.10.0",
40
+ "eslint-plugin-vue": "^10.11.1",
41
41
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
42
42
  "eslint-processor-vue-blocks": "^2.0.0",
43
- "prettier-plugin-astro": "^0.14.1",
43
+ "prettier-plugin-astro": "^1.1.1",
44
44
  "prettier-plugin-slidev": "^1.0.5",
45
- "svelte-eslint-parser": "^1.8.1",
45
+ "svelte-eslint-parser": "^1.9.0",
46
46
  "vue-eslint-parser": "^10.4.1"
47
47
  },
48
48
  "peerDependenciesMeta": {
@@ -108,66 +108,66 @@
108
108
  }
109
109
  },
110
110
  "dependencies": {
111
- "@antfu/install-pkg": "^2.0.1",
112
- "@e18e/eslint-plugin": "^0.8.0",
113
- "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
111
+ "@antfu/install-pkg": "^2.1.0",
112
+ "@e18e/eslint-plugin": "^0.8.1",
113
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.8.1",
114
114
  "@eslint/markdown": "^8.0.3",
115
115
  "@stylistic/eslint-plugin": "^5.10.0",
116
- "@typescript-eslint/eslint-plugin": "^8.69.0",
117
- "@typescript-eslint/parser": "^8.69.0",
116
+ "@typescript-eslint/eslint-plugin": "^8.71.2",
117
+ "@typescript-eslint/parser": "^8.71.2",
118
118
  "@vitest/eslint-plugin": "^1.6.27",
119
119
  "eslint-config-flat-gitignore": "^2.4.0",
120
120
  "eslint-flat-config-utils": "^3.2.0",
121
121
  "eslint-merge-processors": "^2.0.0",
122
122
  "eslint-plugin-antfu": "^3.2.3",
123
123
  "eslint-plugin-command": "^4.0.0",
124
- "eslint-plugin-erasable-syntax-only": "^0.7.1",
124
+ "eslint-plugin-erasable-syntax-only": "^0.7.2",
125
125
  "eslint-plugin-import-lite": "^0.6.0",
126
- "eslint-plugin-jsdoc": "^64.3.4",
126
+ "eslint-plugin-jsdoc": "^65.3.15",
127
127
  "eslint-plugin-jsonc": "^3.4.2",
128
128
  "eslint-plugin-jsx-a11y": "^6.10.2",
129
- "eslint-plugin-n": "^18.3.0",
129
+ "eslint-plugin-n": "^18.5.0",
130
130
  "eslint-plugin-no-only-tests": "^3.4.0",
131
- "eslint-plugin-perfectionist": "^5.11.0",
131
+ "eslint-plugin-perfectionist": "^5.12.1",
132
132
  "eslint-plugin-pnpm": "^1.9.1",
133
- "eslint-plugin-regexp": "^3.2.0",
133
+ "eslint-plugin-regexp": "^3.3.1",
134
134
  "eslint-plugin-toml": "^1.5.0",
135
- "eslint-plugin-unicorn": "^74.0.0",
135
+ "eslint-plugin-unicorn": "^78.0.0",
136
136
  "eslint-plugin-unused-imports": "^4.4.1",
137
- "eslint-plugin-yml": "^3.8.1",
138
- "globals": "^17.12.0",
137
+ "eslint-plugin-yml": "^3.9.0",
138
+ "globals": "^17.13.0",
139
139
  "local-pkg": "^1.2.1",
140
140
  "parse-gitignore": "^2.0.0",
141
141
  "toml-eslint-parser": "^1.0.3",
142
142
  "yaml-eslint-parser": "^2.1.0"
143
143
  },
144
144
  "devDependencies": {
145
- "@angular-eslint/eslint-plugin": "^22.2.0",
146
- "@angular-eslint/eslint-plugin-template": "^22.2.0",
147
- "@angular-eslint/template-parser": "^22.2.0",
148
- "@angular/core": "^22.1.4",
149
- "@eslint-react/eslint-plugin": "^5.18.7",
150
- "@eslint/config-inspector": "^3.4.0",
151
- "@next/eslint-plugin-next": "^16.3.4",
145
+ "@angular-eslint/eslint-plugin": "^22.6.0",
146
+ "@angular-eslint/eslint-plugin-template": "^22.6.0",
147
+ "@angular-eslint/template-parser": "^22.6.0",
148
+ "@angular/core": "^22.2.3",
149
+ "@eslint-react/eslint-plugin": "^5.28.2",
150
+ "@eslint/config-inspector": "^3.5.0",
151
+ "@next/eslint-plugin-next": "^16.4.2",
152
152
  "@prettier/plugin-xml": "^3.4.2",
153
- "@unocss/eslint-plugin": "^66.9.2",
154
- "astro-eslint-parser": "^3.1.0",
155
- "eslint": "^10.9.1",
156
- "eslint-plugin-astro": "^3.1.0",
153
+ "@unocss/eslint-plugin": "^66.11.0",
154
+ "astro-eslint-parser": "^3.2.0",
155
+ "eslint": "^10.13.0",
156
+ "eslint-plugin-astro": "^3.2.1",
157
157
  "eslint-plugin-format": "^2.0.1",
158
- "eslint-plugin-react-refresh": "^0.5.6",
159
- "eslint-plugin-solid": "^0.17.0",
160
- "eslint-plugin-svelte": "^3.23.0",
158
+ "eslint-plugin-react-refresh": "^0.5.7",
159
+ "eslint-plugin-solid": "^0.18.1",
160
+ "eslint-plugin-svelte": "^3.23.1",
161
161
  "eslint-plugin-tailwindcss": "^4.4.0",
162
- "eslint-plugin-vue": "^10.10.0",
163
- "eslint-plugin-vuejs-accessibility": "^2.6.0",
162
+ "eslint-plugin-vue": "^10.11.1",
163
+ "eslint-plugin-vuejs-accessibility": "^2.6.2",
164
164
  "eslint-processor-vue-blocks": "^2.0.0",
165
165
  "eslint-typegen": "^2.3.1",
166
166
  "find-up-simple": "^1.0.1",
167
- "prettier-plugin-astro": "^0.14.1",
167
+ "prettier-plugin-astro": "^1.1.1",
168
168
  "prettier-plugin-slidev": "^1.0.5",
169
- "svelte": "^5.57.0",
170
- "svelte-eslint-parser": "^1.8.1",
169
+ "svelte": "^5.57.2",
170
+ "svelte-eslint-parser": "^1.9.0",
171
171
  "vue-eslint-parser": "^10.4.1"
172
172
  },
173
173
  "inlinedDependencies": {