@qlover/fe-standard 0.0.4 → 0.0.8

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.
Files changed (2) hide show
  1. package/README.md +55 -4
  2. package/package.json +3 -12
package/README.md CHANGED
@@ -1,6 +1,57 @@
1
- # fe-config
1
+ # @qlover/fe-standard
2
2
 
3
- 1. eslint config
3
+ 前端开发标准和规范,确保代码质量的一致性。
4
4
 
5
- - base.json
6
- - bate.ts.json
5
+ 👉 中文文档 | [English Docs](./README_EN.md)
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ npm install --save-dev @qlover/fe-standard
11
+ # 或
12
+ pnpm add -D @qlover/fe-standard
13
+ ```
14
+
15
+ ## 内容
16
+
17
+ 本包包含:
18
+
19
+ 1. **ESLint 配置**
20
+ - base.json - 基础 ESLint 配置
21
+ - base.ts.json - TypeScript ESLint 配置
22
+
23
+ 2. **代码风格指南**
24
+ - 命名约定
25
+ - 文件组织
26
+ - 最佳实践
27
+
28
+ ## 使用
29
+
30
+ ### ESLint 配置
31
+
32
+ 在你的 `.eslintrc` 中扩展配置:
33
+
34
+ ```json
35
+ {
36
+ "extends": ["@qlover/fe-standard/config/base.json"]
37
+ }
38
+ ```
39
+
40
+ 对于 TypeScript 项目:
41
+
42
+ ```json
43
+ {
44
+ "extends": ["@qlover/fe-standard/config/base.ts.json"]
45
+ }
46
+ ```
47
+
48
+ ## 特性
49
+
50
+ - 跨项目的一致代码风格
51
+ - TypeScript 支持
52
+ - 现代 JavaScript 标准
53
+ - 最佳实践强制执行
54
+
55
+ ## 许可证
56
+
57
+ ISC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlover/fe-standard",
3
- "version": "0.0.4",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -33,20 +33,11 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@eslint/js": "^9.13.0",
36
- "@typescript-eslint/eslint-plugin": "^8.12.0",
37
- "@typescript-eslint/parser": "^8.12.0",
38
36
  "eslint": "^9.13.0",
39
37
  "eslint-config-prettier": "^9.1.0",
40
38
  "eslint-plugin-import": "^2.31.0",
41
- "eslint-plugin-jest": "^28.8.3",
42
39
  "eslint-plugin-n": "^17.11.1",
43
40
  "eslint-plugin-prettier": "^5.2.1",
44
- "eslint-plugin-promise": "^7.1.0",
45
- "eslint-plugin-unused-imports": "^4.1.4",
46
- "globals": "^15.11.0",
47
- "prettier": "^3.3.3",
48
- "ts-jest": "^29.2.5",
49
- "typescript": "~5.4.0",
50
- "typescript-eslint": "^8.18.0"
41
+ "lodash": "^4.17.21"
51
42
  }
52
- }
43
+ }