@coderwyd/eslint-config 1.1.0-beta.2 → 1.1.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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "1.1.0-beta.2",
5
- "packageManager": "pnpm@8.7.4",
4
+ "version": "1.1.0",
5
+ "packageManager": "pnpm@8.11.0",
6
6
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/coderwyd/eslint-config",
@@ -18,7 +18,9 @@
18
18
  "main": "./dist/index.js",
19
19
  "module": "./dist/index.js",
20
20
  "types": "./dist/index.d.ts",
21
+ "bin": "./bin/index.js",
21
22
  "files": [
23
+ "bin",
22
24
  "dist"
23
25
  ],
24
26
  "publishConfig": {
@@ -28,49 +30,85 @@
28
30
  "node": ">=16.14.0"
29
31
  },
30
32
  "peerDependencies": {
31
- "eslint": ">=8.0.0"
33
+ "@unocss/eslint-plugin": ">=0.50.0",
34
+ "eslint": ">=8.40.0",
35
+ "eslint-plugin-react": "^7.33.2",
36
+ "eslint-plugin-react-hooks": "^4.6.0",
37
+ "eslint-plugin-react-refresh": "^0.4.4"
38
+ },
39
+ "peerDependenciesMeta": {
40
+ "@unocss/eslint-plugin": {
41
+ "optional": true
42
+ },
43
+ "eslint-plugin-react": {
44
+ "optional": true
45
+ },
46
+ "eslint-plugin-react-hooks": {
47
+ "optional": true
48
+ },
49
+ "eslint-plugin-react-refresh": {
50
+ "optional": true
51
+ }
32
52
  },
33
53
  "dependencies": {
34
- "@stylistic/eslint-plugin": "^0.0.5",
35
- "@typescript-eslint/eslint-plugin": "^6.7.2",
36
- "@typescript-eslint/parser": "^6.7.2",
37
- "astro-eslint-parser": "^0.15.0",
38
- "eslint-config-flat-gitignore": "^0.1.0",
39
- "eslint-define-config": "^1.23.0",
40
- "eslint-plugin-antfu": "1.0.0-beta.6",
41
- "eslint-plugin-astro": "^0.29.0",
54
+ "@antfu/eslint-define-config": "^1.23.0-2",
55
+ "@antfu/install-pkg": "^0.2.0",
56
+ "@eslint-types/jsdoc": "46.8.2-1",
57
+ "@eslint-types/typescript-eslint": "^6.12.0",
58
+ "@eslint-types/unicorn": "^49.0.0",
59
+ "@stylistic/eslint-plugin": "^1.4.0",
60
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
61
+ "@typescript-eslint/parser": "^6.12.0",
62
+ "eslint-config-flat-gitignore": "^0.1.1",
63
+ "eslint-plugin-antfu": "^1.0.10",
42
64
  "eslint-plugin-eslint-comments": "^3.2.0",
43
- "eslint-plugin-i": "^2.28.1",
44
- "eslint-plugin-jsdoc": "^46.8.2",
45
- "eslint-plugin-jsonc": "^2.9.0",
65
+ "eslint-plugin-i": "^2.29.0",
66
+ "eslint-plugin-jsdoc": "^46.9.0",
67
+ "eslint-plugin-jsonc": "^2.10.0",
46
68
  "eslint-plugin-markdown": "^3.0.1",
47
- "eslint-plugin-n": "^16.1.0",
69
+ "eslint-plugin-n": "^16.3.1",
48
70
  "eslint-plugin-no-only-tests": "^3.1.0",
49
- "eslint-plugin-react": "^7.33.2",
50
- "eslint-plugin-react-hooks": "^4.6.0",
51
- "eslint-plugin-unicorn": "^48.0.1",
71
+ "eslint-plugin-perfectionist": "^2.4.0",
72
+ "eslint-plugin-unicorn": "^49.0.0",
52
73
  "eslint-plugin-unused-imports": "^3.0.0",
53
- "eslint-plugin-vue": "^9.17.0",
54
- "eslint-plugin-yml": "^1.9.0",
55
- "globals": "^13.22.0",
56
- "jsonc-eslint-parser": "^2.3.0",
57
- "local-pkg": "^0.4.3",
58
- "vue-eslint-parser": "^9.3.1",
59
- "yaml-eslint-parser": "^1.2.2"
74
+ "eslint-plugin-vitest": "^0.3.10",
75
+ "eslint-plugin-vue": "^9.18.1",
76
+ "eslint-plugin-yml": "^1.10.0",
77
+ "globals": "^13.23.0",
78
+ "jsonc-eslint-parser": "^2.4.0",
79
+ "local-pkg": "^0.5.0",
80
+ "parse-gitignore": "^2.0.0",
81
+ "picocolors": "^1.0.0",
82
+ "prompts": "^2.4.2",
83
+ "vue-eslint-parser": "^9.3.2",
84
+ "yaml-eslint-parser": "^1.2.2",
85
+ "yargs": "^17.7.2"
60
86
  },
61
87
  "devDependencies": {
62
- "@types/node": "^20.6.3",
63
- "@types/react": "^18.2.22",
88
+ "@antfu/ni": "^0.21.10",
89
+ "@stylistic/eslint-plugin-migrate": "^1.4.0",
90
+ "@types/eslint": "^8.44.7",
91
+ "@types/fs-extra": "^11.0.4",
92
+ "@types/node": "^20.9.4",
93
+ "@types/prompts": "^2.4.9",
94
+ "@types/yargs": "^17.0.32",
95
+ "@unocss/eslint-plugin": "^0.57.7",
64
96
  "bumpp": "^9.2.0",
65
- "eslint": "^8.49.0",
66
- "eslint-plugin-sort-keys": "^2.3.5",
67
- "nano-staged": "^0.8.0",
68
- "react": "^18.2.0",
97
+ "eslint": "^8.54.0",
98
+ "eslint-flat-config-viewer": "^0.1.3",
99
+ "eslint-plugin-react": "^7.33.2",
100
+ "eslint-plugin-react-hooks": "^4.6.0",
101
+ "eslint-plugin-react-refresh": "^0.4.4",
102
+ "esno": "^4.0.0",
103
+ "execa": "^8.0.1",
104
+ "fast-glob": "^3.3.2",
105
+ "fs-extra": "^11.1.1",
106
+ "lint-staged": "^15.1.0",
107
+ "rimraf": "^5.0.5",
69
108
  "simple-git-hooks": "^2.9.0",
70
- "sucrase": "^3.34.0",
71
- "tsup": "^7.2.0",
72
- "typescript": "^5.2.2",
73
- "vitest": "^0.34.5"
109
+ "tsup": "^8.0.1",
110
+ "typescript": "^5.3.2",
111
+ "vitest": "^0.34.6"
74
112
  },
75
113
  "simple-git-hooks": {
76
114
  "pre-commit": "pnpx nano-staged"
@@ -79,8 +117,9 @@
79
117
  "*": "eslint --fix"
80
118
  },
81
119
  "scripts": {
82
- "build": "tsup src/index.ts --format esm,cjs --clean --dts",
83
- "stub": "tsup src/index.ts --format esm",
120
+ "build": "tsup --format esm,cjs --clean --dts",
121
+ "stub": "tsup --format esm",
122
+ "dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
84
123
  "lint": "pnpm run stub && eslint .",
85
124
  "release": "bumpp && pnpm publish",
86
125
  "test": "vitest",