@pengzhanbo/eslint-config 2.9.2 → 2.10.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 +702 -487
  2. package/dist/index.js +10 -8
  3. package/package.json +38 -38
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.10.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,25 +22,25 @@
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.5.0",
26
+ "@angular-eslint/eslint-plugin-template": "^22.5.0",
27
+ "@angular-eslint/template-parser": "^22.5.0",
28
+ "@eslint-react/eslint-plugin": "^5.20.5",
29
+ "@next/eslint-plugin-next": "^16.3.5",
30
30
  "@prettier/plugin-xml": "^3.4.2",
31
- "@unocss/eslint-plugin": "^66.9.2",
31
+ "@unocss/eslint-plugin": "^66.10.5",
32
32
  "astro-eslint-parser": "^3.1.0",
33
- "eslint": "^10.9.1",
34
- "eslint-plugin-astro": "^3.1.0",
33
+ "eslint": "^10.11.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",
36
+ "eslint-plugin-react-refresh": "^0.5.7",
37
+ "eslint-plugin-solid": "^0.18.0",
38
38
  "eslint-plugin-svelte": "^3.23.0",
39
39
  "eslint-plugin-tailwindcss": "^4.4.0",
40
- "eslint-plugin-vue": "^10.10.0",
40
+ "eslint-plugin-vue": "^10.11.0",
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.0.1",
44
44
  "prettier-plugin-slidev": "^1.0.5",
45
45
  "svelte-eslint-parser": "^1.8.1",
46
46
  "vue-eslint-parser": "^10.4.1"
@@ -108,31 +108,31 @@
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.70.1",
117
+ "@typescript-eslint/parser": "^8.70.1",
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": "^64.5.4",
127
127
  "eslint-plugin-jsonc": "^3.4.2",
128
128
  "eslint-plugin-jsx-a11y": "^6.10.2",
129
129
  "eslint-plugin-n": "^18.3.0",
130
130
  "eslint-plugin-no-only-tests": "^3.4.0",
131
- "eslint-plugin-perfectionist": "^5.11.0",
131
+ "eslint-plugin-perfectionist": "^5.11.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": "^76.0.0",
136
136
  "eslint-plugin-unused-imports": "^4.4.1",
137
137
  "eslint-plugin-yml": "^3.8.1",
138
138
  "globals": "^17.12.0",
@@ -142,31 +142,31 @@
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.5.0",
146
+ "@angular-eslint/eslint-plugin-template": "^22.5.0",
147
+ "@angular-eslint/template-parser": "^22.5.0",
148
+ "@angular/core": "^22.1.7",
149
+ "@eslint-react/eslint-plugin": "^5.20.5",
150
+ "@eslint/config-inspector": "^3.5.0",
151
+ "@next/eslint-plugin-next": "^16.3.5",
152
152
  "@prettier/plugin-xml": "^3.4.2",
153
- "@unocss/eslint-plugin": "^66.9.2",
153
+ "@unocss/eslint-plugin": "^66.10.5",
154
154
  "astro-eslint-parser": "^3.1.0",
155
- "eslint": "^10.9.1",
156
- "eslint-plugin-astro": "^3.1.0",
155
+ "eslint": "^10.11.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",
158
+ "eslint-plugin-react-refresh": "^0.5.7",
159
+ "eslint-plugin-solid": "^0.18.0",
160
160
  "eslint-plugin-svelte": "^3.23.0",
161
161
  "eslint-plugin-tailwindcss": "^4.4.0",
162
- "eslint-plugin-vue": "^10.10.0",
162
+ "eslint-plugin-vue": "^10.11.0",
163
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",
167
- "prettier-plugin-astro": "^0.14.1",
167
+ "prettier-plugin-astro": "^1.0.1",
168
168
  "prettier-plugin-slidev": "^1.0.5",
169
- "svelte": "^5.57.0",
169
+ "svelte": "^5.57.1",
170
170
  "svelte-eslint-parser": "^1.8.1",
171
171
  "vue-eslint-parser": "^10.4.1"
172
172
  },