@fast-china/eslint-config 1.0.47 → 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,11 +1,18 @@
1
1
  {
2
2
  "name": "@fast-china/eslint-config",
3
- "version": "1.0.47",
4
- "description": "Fast ESLint Flat 规则库.",
3
+ "version": "1.1.0",
4
+ "packageManager": "pnpm@11.9.0",
5
+ "description": "A practical ESLint Flat Config for Vue 3, TypeScript, Vite, and JavaScript projects.",
5
6
  "type": "module",
6
7
  "keywords": [
7
8
  "fast",
8
- "ESLint"
9
+ "eslint",
10
+ "eslint-config",
11
+ "flat-config",
12
+ "typescript",
13
+ "vite",
14
+ "vue",
15
+ "vue3"
9
16
  ],
10
17
  "license": "Apache-2.0",
11
18
  "homepage": "https://fastdotnet.com",
@@ -18,70 +25,77 @@
18
25
  },
19
26
  "author": "小方",
20
27
  "files": [
21
- "./Fast.png",
22
- "./LICENSE",
23
- "./README.md",
24
- "./README.zh.md",
25
- "./dist"
28
+ "Fast.png",
29
+ "LICENSE",
30
+ "README.md",
31
+ "README.zh.md",
32
+ "dist",
33
+ "docs"
26
34
  ],
27
- "main": "dist/dist/index.js",
35
+ "main": "./dist/index.js",
36
+ "module": "./dist/index.js",
37
+ "types": "./dist/index.d.ts",
28
38
  "exports": {
29
39
  ".": {
30
40
  "types": "./dist/index.d.ts",
31
- "require": "./dist/index.js",
32
- "import": "./dist/index.js"
41
+ "import": "./dist/index.js",
42
+ "default": "./dist/index.js"
33
43
  },
34
44
  "./rules": {
35
45
  "types": "./dist/rules/index.d.ts",
36
- "require": "./dist/rules/index.js",
37
- "import": "./dist/rules/index.js"
38
- }
46
+ "import": "./dist/rules/index.js",
47
+ "default": "./dist/rules/index.js"
48
+ },
49
+ "./package.json": "./package.json"
39
50
  },
51
+ "sideEffects": false,
40
52
  "publishConfig": {
41
53
  "access": "public"
42
54
  },
43
55
  "scripts": {
44
56
  "dev": "eslint-config-inspector --config src/eslint-inspector.config.ts",
45
- "build:dev": "eslint-config-inspector build --config src/eslint-inspector.config.ts",
57
+ "build": "pnpm run typegen:check && tsup",
58
+ "build:inspector": "eslint-config-inspector build --config src/eslint-inspector.config.ts",
46
59
  "typegen": "tsx scripts/typegen.ts",
47
- "build": "tsup && pnpm run typegen ",
48
- "lint:eslint": "eslint --max-warnings 0 \"src/**/*.{vue,js,ts,tsx}\" --fix",
49
- "lint:prettier": "prettier --write \"src/**/*.{vue,js,ts,jsx,tsx,md,json,css,scss,less,html}\"",
50
- "lint": "pnpm lint:eslint && pnpm lint:prettier"
60
+ "typegen:check": "tsx scripts/typegen.ts --check",
61
+ "typecheck": "tsc --noEmit",
62
+ "lint": "eslint . --max-warnings 0",
63
+ "lint:fix": "eslint . --fix",
64
+ "format": "prettier --write .",
65
+ "format:check": "prettier --check .",
66
+ "test": "pnpm run test:types && node --test tests/*.test.mjs",
67
+ "test:types": "tsc --noEmit --project tests/tsconfig.json",
68
+ "check": "pnpm run build && pnpm run typecheck && pnpm run lint && pnpm run format:check && pnpm run test",
69
+ "prepack": "pnpm run check"
51
70
  },
52
71
  "peerDependencies": {
53
- "eslint": "^10",
54
- "prettier": "^3"
72
+ "eslint": "^10.0.0",
73
+ "typescript": ">=5.3.0 <6.1.0"
55
74
  },
56
75
  "dependencies": {
57
- "@eslint/js": "^10",
58
- "@eslint/markdown": "^8",
59
- "@typescript-eslint/eslint-plugin": "^8",
60
- "@typescript-eslint/parser": "^8",
61
- "eslint-config-flat-gitignore": "^2",
62
- "eslint-config-prettier": "^10",
63
- "eslint-import-resolver-typescript": "^4",
64
- "eslint-plugin-import-x": "^4",
65
- "eslint-plugin-jsonc": "^3",
66
- "eslint-plugin-prettier": "^5",
67
- "eslint-plugin-regexp": "^3",
68
- "eslint-plugin-vue": "^10",
69
- "globals": "^17",
70
- "jsonc-eslint-parser": "^3",
71
- "local-pkg": "^1",
72
- "typescript-eslint": "^8",
73
- "vue-eslint-parser": "^10"
76
+ "@eslint/js": "^10.0.0",
77
+ "@eslint/markdown": "^8.0.3",
78
+ "eslint-config-flat-gitignore": "^2.0.0",
79
+ "eslint-config-prettier": "^10.0.0",
80
+ "eslint-plugin-import-x": "^4.17.1",
81
+ "eslint-plugin-jsonc": "^3.3.0",
82
+ "eslint-plugin-regexp": "^3.1.1",
83
+ "eslint-plugin-vue": "^10.10.0",
84
+ "globals": "^17.7.0",
85
+ "typescript-eslint": "^8.65.0",
86
+ "vue-eslint-parser": "^10.4.1"
74
87
  },
75
88
  "devDependencies": {
76
- "@eslint/config-inspector": "^1",
77
- "@types/node": "^25",
78
- "eslint": "^10",
79
- "eslint-typegen": "^2",
80
- "prettier": "^3",
81
- "tsup": "^8",
82
- "typescript": "^6"
89
+ "@eslint/config-inspector": "^3.1.0",
90
+ "@types/node": "^24.13.3",
91
+ "eslint": "^10.7.0",
92
+ "eslint-typegen": "^2.3.1",
93
+ "prettier": "^3.9.6",
94
+ "tsup": "^8.0.0",
95
+ "tsx": "^4.23.1",
96
+ "typescript": "^5.9.0"
83
97
  },
84
98
  "engines": {
85
- "node": ">=18.18.0"
99
+ "node": "^20.19.0 || ^22.13.0 || >=24"
86
100
  }
87
101
  }