@tofrankie/eslint 0.2.2 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## eslint@0.3.1 (2026-05-21)
4
+
5
+ - Disable `markdown/require-alt-text` rule
6
+
7
+ ## eslint@0.3.0 (2026-05-12)
8
+
9
+ ### Breaking changes
10
+
11
+ - Update `@antfu/eslint-config` to `v9.0.0`
12
+ - Update `@eslint-react/eslint-plugin` to `v5.7.6` ([Release](https://github.com/Rel1cx/eslint-react/releases/tag/v5.6.0))
13
+
14
+ ### Rules changes 🚨
15
+
16
+ > Details: [antfu/eslint-config#839](https://github.com/antfu/eslint-config/pull/839/changes#diff-399d91c5730fe8c956a45beb380a60404c1fcea16640f3a5f58b82e052aebfda)
17
+
18
+ - Rename `react-dom/*` to `react/dom-*`
19
+ - Rename `react-rsc/*` to `react/rsc-*`
20
+ - Rename `react-web-api/*` to `react/web-api-*`
21
+ - Rename `react-naming-convention/*` to `react/naming-convention-*`
22
+
3
23
  ## eslint@0.2.2 (2026-05-12)
4
24
 
5
25
  - Update `@antfu/eslint-config` to `v8.3.0`
package/README.md CHANGED
@@ -12,8 +12,8 @@ Shared [ESLint](https://eslint.org/) configuration built on [@antfu/eslint-confi
12
12
  > [!NOTE]
13
13
  >
14
14
  > - Node.js: 22.0.0
15
- > - ESLint: 10.0.0
16
- > - TypeScript: 5.0.0
15
+ > - ESLint: 10.2.1
16
+ > - TypeScript: 6.0.3
17
17
 
18
18
  Install dependencies:
19
19
 
package/dist/index.cjs CHANGED
@@ -106,6 +106,15 @@ const JSDOC_TYPESCRIPT_RULES = {
106
106
  "jsdoc/require-param-type": "off"
107
107
  };
108
108
  //#endregion
109
+ //#region src/presets/markdown.ts
110
+ /**
111
+ * - rule: `markdown/*`
112
+ * - plugin: `@eslint/markdown`
113
+ * @see https://github.com/antfu/eslint-config
114
+ * @see https://github.com/eslint/markdown
115
+ */
116
+ const MARKDOWN_RULES = { "markdown/require-alt-text": "off" };
117
+ //#endregion
109
118
  //#region src/presets/node.ts
110
119
  /**
111
120
  * - rule: `node/*`
@@ -251,6 +260,11 @@ const CONFIG_ITEM_RULE_PRESETS = [
251
260
  name: "eslint-comments",
252
261
  rules: ESLINT_COMMENTS_RULES
253
262
  },
263
+ {
264
+ name: "markdown",
265
+ option: "markdown",
266
+ rules: MARKDOWN_RULES
267
+ },
254
268
  {
255
269
  name: "node",
256
270
  option: "node",
@@ -272,6 +286,7 @@ const CONFIG_ITEM_RULE_PRESETS = [
272
286
  const CONFIG_ITEM_RULE_TARGETS = {
273
287
  "eslint-comments/": "antfu/eslint-comments/rules",
274
288
  "jsdoc/": "antfu/jsdoc/rules",
289
+ "markdown/": "antfu/markdown/rules",
275
290
  "node/": "antfu/node/rules",
276
291
  "pnpm/": "antfu/pnpm/pnpm-workspace-yaml"
277
292
  };
@@ -504,6 +519,7 @@ function resolveConfigOptions(options) {
504
519
  jsdoc: isEnabledByDefault(options.jsdoc),
505
520
  jsdocMode: INTERNAL_JSDOC_MODE,
506
521
  lessOpinionated: options.lessOpinionated === true,
522
+ markdown: isEnabledByDefault(options.markdown),
507
523
  node: isEnabledByDefault(options.node),
508
524
  pnpm: isPnpmEnabled(options.pnpm),
509
525
  react: isExplicitlyEnabled(options.react),
package/dist/index.mjs CHANGED
@@ -83,6 +83,15 @@ const JSDOC_TYPESCRIPT_RULES = {
83
83
  "jsdoc/require-param-type": "off"
84
84
  };
85
85
  //#endregion
86
+ //#region src/presets/markdown.ts
87
+ /**
88
+ * - rule: `markdown/*`
89
+ * - plugin: `@eslint/markdown`
90
+ * @see https://github.com/antfu/eslint-config
91
+ * @see https://github.com/eslint/markdown
92
+ */
93
+ const MARKDOWN_RULES = { "markdown/require-alt-text": "off" };
94
+ //#endregion
86
95
  //#region src/presets/node.ts
87
96
  /**
88
97
  * - rule: `node/*`
@@ -228,6 +237,11 @@ const CONFIG_ITEM_RULE_PRESETS = [
228
237
  name: "eslint-comments",
229
238
  rules: ESLINT_COMMENTS_RULES
230
239
  },
240
+ {
241
+ name: "markdown",
242
+ option: "markdown",
243
+ rules: MARKDOWN_RULES
244
+ },
231
245
  {
232
246
  name: "node",
233
247
  option: "node",
@@ -249,6 +263,7 @@ const CONFIG_ITEM_RULE_PRESETS = [
249
263
  const CONFIG_ITEM_RULE_TARGETS = {
250
264
  "eslint-comments/": "antfu/eslint-comments/rules",
251
265
  "jsdoc/": "antfu/jsdoc/rules",
266
+ "markdown/": "antfu/markdown/rules",
252
267
  "node/": "antfu/node/rules",
253
268
  "pnpm/": "antfu/pnpm/pnpm-workspace-yaml"
254
269
  };
@@ -481,6 +496,7 @@ function resolveConfigOptions(options) {
481
496
  jsdoc: isEnabledByDefault(options.jsdoc),
482
497
  jsdocMode: INTERNAL_JSDOC_MODE,
483
498
  lessOpinionated: options.lessOpinionated === true,
499
+ markdown: isEnabledByDefault(options.markdown),
484
500
  node: isEnabledByDefault(options.node),
485
501
  pnpm: isPnpmEnabled(options.pnpm),
486
502
  react: isExplicitlyEnabled(options.react),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tofrankie/eslint",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.3.1",
5
5
  "description": "Shared ESLint configuration",
6
6
  "author": "Frankie <1426203851@qq.com>",
7
7
  "license": "MIT",
@@ -49,14 +49,14 @@
49
49
  "node": "^22.0.0 || ^24.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "eslint": "^10.0.0"
52
+ "eslint": "^10.2.1"
53
53
  },
54
54
  "dependencies": {
55
55
  "@angular-eslint/eslint-plugin": "^21.3.1",
56
56
  "@angular-eslint/eslint-plugin-template": "^21.3.1",
57
57
  "@angular-eslint/template-parser": "^21.3.1",
58
- "@antfu/eslint-config": "^8.3.0",
59
- "@eslint-react/eslint-plugin": "^3.0.0",
58
+ "@antfu/eslint-config": "^9.0.0",
59
+ "@eslint-react/eslint-plugin": "^5.7.6",
60
60
  "@next/eslint-plugin-next": "^16.2.6",
61
61
  "@prettier/plugin-xml": "^3.4.2",
62
62
  "@unocss/eslint-plugin": "^66.6.8",