@jiakun-zhao/eslint-config 4.2.0 → 4.3.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/oxfmt.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { runAsWorker } from 'synckit'
2
+
3
+ let oxfmt
4
+
5
+ runAsWorker(async(fileName, sourceText, options) => {
6
+ return (oxfmt ??= await import('oxfmt')).format(fileName, sourceText, options)
7
+ })
package/package.json CHANGED
@@ -1,71 +1,77 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
- "type": "module",
4
- "version": "4.2.0",
3
+ "version": "4.3.0",
5
4
  "description": "Jiakun Zhao's ESLint config.",
6
- "author": "Jiakun Zhao <hi@zhaojiakun.com>",
7
- "license": "MIT",
8
- "homepage": "https://github.com/jiakun-zhao/eslint-config",
9
5
  "keywords": [
10
6
  "eslint-config"
11
7
  ],
12
- "exports": {
13
- ".": {
14
- "import": "./dist/index.mjs",
15
- "types": "./dist/index.d.ts"
16
- }
17
- },
8
+ "homepage": "https://github.com/jiakun-zhao/eslint-config",
9
+ "license": "MIT",
10
+ "author": "Jiakun Zhao <hi@zhaojiakun.com>",
11
+ "files": [
12
+ "dist",
13
+ "generated-rules.d.ts",
14
+ "oxfmt.mjs"
15
+ ],
16
+ "type": "module",
18
17
  "main": "./dist/index.mjs",
19
18
  "module": "./dist/index.mjs",
20
19
  "types": "./dist/index.d.ts",
21
- "files": [
22
- "dist"
23
- ],
24
- "peerDependencies": {
25
- "eslint": "^9.0.0",
26
- "eslint-plugin-astro": "^1.3.1",
27
- "eslint-plugin-vue": "^10.0.0"
28
- },
29
- "peerDependenciesMeta": {
30
- "eslint-plugin-astro": {
31
- "optional": true
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.mjs"
32
24
  },
33
- "eslint-plugin-vue": {
34
- "optional": true
35
- }
25
+ "./oxfmt": "./oxfmt.mjs"
36
26
  },
37
27
  "dependencies": {
38
- "@stylistic/eslint-plugin": "^5.6.1",
39
- "@typescript-eslint/eslint-plugin": "^8.51.0",
28
+ "@stylistic/eslint-plugin": "^5.7.1",
29
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
40
30
  "@unocss/eslint-plugin": "66.1.0-beta.12",
41
31
  "eslint-config-flat-gitignore": "^2.1.0",
42
- "eslint-flat-config-utils": "^2.1.4",
43
- "eslint-plugin-antfu": "^3.1.1",
32
+ "eslint-flat-config-utils": "^3.0.0",
33
+ "eslint-formatting-reporter": "^0.0.0",
34
+ "eslint-parser-plain": "^0.1.1",
35
+ "eslint-plugin-antfu": "^3.1.3",
44
36
  "eslint-plugin-command": "^3.4.0",
45
37
  "eslint-plugin-import-x": "^4.16.1",
46
- "eslint-plugin-jsonc": "^2.21.0",
47
- "eslint-plugin-perfectionist": "^5.2.0",
48
- "eslint-plugin-regexp": "^2.10.0",
38
+ "eslint-plugin-perfectionist": "^5.4.0",
39
+ "eslint-plugin-regexp": "^3.0.0",
49
40
  "eslint-plugin-unicorn": "^62.0.0",
50
41
  "eslint-plugin-unused-imports": "^4.3.0",
51
- "globals": "^17.0.0"
42
+ "globals": "^17.3.0",
43
+ "oxfmt": "^0.28.0",
44
+ "synckit": "^0.11.12"
52
45
  },
53
46
  "devDependencies": {
54
47
  "@eslint/config-inspector": "^1.4.2",
55
- "@eslint/core": "^1.0.0",
56
- "@jiakun-zhao/utils": "^1.4.2",
57
- "@types/node": "^25.0.3",
58
- "@typescript-eslint/types": "^8.51.0",
59
- "bumpp": "^10.3.2",
48
+ "@eslint/core": "^1.1.0",
49
+ "@jiakun-zhao/utils": "^1.4.5",
50
+ "@types/node": "^25.2.0",
51
+ "@typescript-eslint/types": "^8.54.0",
52
+ "bumpp": "^10.4.0",
60
53
  "eslint": "^9.39.2",
61
54
  "eslint-plugin-astro": "^1.5.0",
62
- "eslint-plugin-vue": "^10.6.2",
55
+ "eslint-plugin-vue": "^10.7.0",
63
56
  "eslint-typegen": "^2.3.0",
64
57
  "eslint-vitest-rule-tester": "^3.0.1",
65
- "tsdown": "^0.18.4",
58
+ "tsdown": "^0.20.1",
66
59
  "tsx": "^4.21.0",
67
60
  "typescript": "^5.9.3",
68
- "vitest": "^4.0.16"
61
+ "vitest": "^4.0.18"
62
+ },
63
+ "peerDependencies": {
64
+ "eslint": "^9.0.0",
65
+ "eslint-plugin-astro": "^1.3.1",
66
+ "eslint-plugin-vue": "^10.0.0"
67
+ },
68
+ "peerDependenciesMeta": {
69
+ "eslint-plugin-astro": {
70
+ "optional": true
71
+ },
72
+ "eslint-plugin-vue": {
73
+ "optional": true
74
+ }
69
75
  },
70
76
  "scripts": {
71
77
  "build": "tsdown",