@pengzhanbo/eslint-config 2.5.0 → 2.6.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/dist/index.mjs CHANGED
@@ -1048,6 +1048,7 @@ async function markdown(options = {}) {
1048
1048
  },
1049
1049
  {
1050
1050
  files,
1051
+ ignores: [GLOB_MARKDOWN_IN_MARKDOWN],
1051
1052
  name: "config/markdown/processor",
1052
1053
  processor: mergeProcessors([markdown.processors.markdown, processorPassThrough])
1053
1054
  },
@@ -1061,6 +1062,7 @@ async function markdown(options = {}) {
1061
1062
  name: "config/markdown/rules",
1062
1063
  rules: {
1063
1064
  ...markdown.configs.recommended.at(0)?.rules,
1065
+ "markdown/fenced-code-language": "off",
1064
1066
  "markdown/no-missing-label-refs": "off",
1065
1067
  ...overridesMarkdown
1066
1068
  }
@@ -1070,7 +1072,8 @@ async function markdown(options = {}) {
1070
1072
  languageOptions: { parserOptions: { ecmaFeatures: { impliedStrict: true } } },
1071
1073
  name: "config/markdown/disables/code",
1072
1074
  rules: {
1073
- "antfu/no-top-level-await": "off",
1075
+ "config/no-top-level-await": "off",
1076
+ "e18e/prefer-static-regex": "off",
1074
1077
  "no-alert": "off",
1075
1078
  "no-console": "off",
1076
1079
  "no-labels": "off",
@@ -1085,10 +1088,10 @@ async function markdown(options = {}) {
1085
1088
  "style/eol-last": "off",
1086
1089
  "style/padding-line-between-statements": "off",
1087
1090
  "ts/consistent-type-imports": "off",
1091
+ "ts/explicit-function-return-type": "off",
1088
1092
  "ts/no-namespace": "off",
1089
1093
  "ts/no-redeclare": "off",
1090
1094
  "ts/no-require-imports": "off",
1091
- "ts/explicit-function-return-type": "off",
1092
1095
  "ts/no-unused-expressions": "off",
1093
1096
  "ts/no-unused-vars": "off",
1094
1097
  "ts/no-use-before-define": "off",
@@ -2503,6 +2506,7 @@ function eslintFlatConfig(options = {}, ...userConfigs) {
2503
2506
  if (Object.keys(fusedConfig).length) configs.push([fusedConfig]);
2504
2507
  let composer = new FlatConfigComposer();
2505
2508
  composer = composer.append(...configs, ...userConfigs);
2509
+ if (options.markdown ?? true) composer = composer.setDefaultIgnores((prev) => [...prev, GLOB_MARKDOWN]);
2506
2510
  if (autoRenamePlugins) composer = composer.renamePlugins(defaultPluginRenaming);
2507
2511
  if (isInEditor) composer = composer.disableRulesFix([
2508
2512
  "unused-imports/no-unused-imports",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pengzhanbo/eslint-config",
3
3
  "type": "module",
4
- "version": "2.5.0",
4
+ "version": "2.6.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,10 +22,10 @@
22
22
  "dist"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@angular-eslint/eslint-plugin": "^21.4.0",
26
- "@angular-eslint/eslint-plugin-template": "^21.4.0",
27
- "@angular-eslint/template-parser": "^21.4.0",
28
- "@eslint-react/eslint-plugin": "^5.8.10",
25
+ "@angular-eslint/eslint-plugin": "^22.0.0",
26
+ "@angular-eslint/eslint-plugin-template": "^22.0.0",
27
+ "@angular-eslint/template-parser": "^22.0.0",
28
+ "@eslint-react/eslint-plugin": "^5.8.16",
29
29
  "@next/eslint-plugin-next": "^16.2.7",
30
30
  "@prettier/plugin-xml": "^3.4.2",
31
31
  "@unocss/eslint-plugin": "^66.7.0",
@@ -37,12 +37,12 @@
37
37
  "eslint-plugin-solid": "^0.14.5",
38
38
  "eslint-plugin-svelte": "^3.19.0",
39
39
  "eslint-plugin-tailwindcss": "^3.18.3",
40
- "eslint-plugin-vue": "^10.9.1",
40
+ "eslint-plugin-vue": "^10.9.2",
41
41
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
42
42
  "eslint-processor-vue-blocks": "^2.0.0",
43
43
  "prettier-plugin-astro": "^0.14.1",
44
44
  "prettier-plugin-slidev": "^1.0.5",
45
- "svelte-eslint-parser": "^1.7.1",
45
+ "svelte-eslint-parser": "^1.8.0",
46
46
  "vue-eslint-parser": "^10.4.1"
47
47
  },
48
48
  "peerDependenciesMeta": {
@@ -123,7 +123,7 @@
123
123
  "eslint-plugin-command": "^3.5.2",
124
124
  "eslint-plugin-erasable-syntax-only": "^0.4.1",
125
125
  "eslint-plugin-import-lite": "^0.6.0",
126
- "eslint-plugin-jsdoc": "^63.0.1",
126
+ "eslint-plugin-jsdoc": "^63.0.2",
127
127
  "eslint-plugin-jsonc": "^3.2.0",
128
128
  "eslint-plugin-jsx-a11y": "^6.10.2",
129
129
  "eslint-plugin-n": "^18.0.1",
@@ -132,7 +132,7 @@
132
132
  "eslint-plugin-pnpm": "^1.6.1",
133
133
  "eslint-plugin-regexp": "^3.1.0",
134
134
  "eslint-plugin-toml": "^1.4.0",
135
- "eslint-plugin-unicorn": "^64.0.0",
135
+ "eslint-plugin-unicorn": "^65.0.0",
136
136
  "eslint-plugin-unused-imports": "^4.4.1",
137
137
  "eslint-plugin-yml": "^3.4.0",
138
138
  "globals": "^17.6.0",
@@ -142,11 +142,11 @@
142
142
  "yaml-eslint-parser": "^2.0.0"
143
143
  },
144
144
  "devDependencies": {
145
- "@angular-eslint/eslint-plugin": "^21.4.0",
146
- "@angular-eslint/eslint-plugin-template": "^21.4.0",
147
- "@angular-eslint/template-parser": "^21.4.0",
148
- "@angular/core": "^21.2.15",
149
- "@eslint-react/eslint-plugin": "^5.8.10",
145
+ "@angular-eslint/eslint-plugin": "^22.0.0",
146
+ "@angular-eslint/eslint-plugin-template": "^22.0.0",
147
+ "@angular-eslint/template-parser": "^22.0.0",
148
+ "@angular/core": "^22.0.0",
149
+ "@eslint-react/eslint-plugin": "^5.8.16",
150
150
  "@eslint/config-inspector": "^3.0.4",
151
151
  "@next/eslint-plugin-next": "^16.2.7",
152
152
  "@prettier/plugin-xml": "^3.4.2",
@@ -159,15 +159,15 @@
159
159
  "eslint-plugin-solid": "^0.14.5",
160
160
  "eslint-plugin-svelte": "^3.19.0",
161
161
  "eslint-plugin-tailwindcss": "^3.18.3",
162
- "eslint-plugin-vue": "^10.9.1",
162
+ "eslint-plugin-vue": "^10.9.2",
163
163
  "eslint-plugin-vuejs-accessibility": "^2.5.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
167
  "prettier-plugin-astro": "^0.14.1",
168
168
  "prettier-plugin-slidev": "^1.0.5",
169
- "svelte": "^5.56.1",
170
- "svelte-eslint-parser": "^1.7.1",
169
+ "svelte": "^5.56.3",
170
+ "svelte-eslint-parser": "^1.8.0",
171
171
  "vue-eslint-parser": "^10.4.1"
172
172
  },
173
173
  "inlinedDependencies": {
@@ -179,7 +179,7 @@
179
179
  },
180
180
  "scripts": {
181
181
  "dev": "tsdown src/index.ts --shims --format esm --watch & npx @eslint/config-inspector",
182
- "build": "pnpm typegen && tsdown src/index.ts --format esm --dts --exports --no-inline-only",
182
+ "build": "pnpm typegen && tsdown src/index.ts --format esm --dts --exports --shims",
183
183
  "build:inspector": "pnpm build && npx @eslint/config-inspector build",
184
184
  "stub": "tsdown src/index.ts --format esm",
185
185
  "typegen": "tsx scripts/typegen.ts"