@cuiqg/eslint-config 2.3.0 → 2.4.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.
Files changed (2) hide show
  1. package/README.md +45 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,3 +1,45 @@
1
- <p align="center">
2
- <img loading="lazy" src="https://boost.jpgcdn.com/c2.jpgcdn.com/2025/08/26/DzA8.png" width="100%"/>
3
- </p>
1
+ # @cuiqg/eslint-config [![npm](https://img.shields.io/npm/v/%40cuiqg%2Feslint-config?registry_uri=https%3A%2F%2Fregistry.npmmirror.com&style=social&logo=npm&logoColor=%23CB3837)](https://npmmirror.com/package/@cuiqg/eslint-config)
2
+
3
+ ## 使用
4
+
5
+ ```bash
6
+ npm i -D eslint @cuiqg/eslint-config
7
+ ```
8
+
9
+ 修改 `package.json` 文件
10
+
11
+ ```diff
12
+ {
13
+ + "type": "module",
14
+ "scripts": {
15
+ + "lint": "eslint .",
16
+ + "lint:fix": "eslint . --fix"
17
+ }
18
+ }
19
+ ```
20
+
21
+ 创建 `eslint.config.js` 文件
22
+
23
+ ```js
24
+ import cuiqg from '@cuiqg/eslint-config'
25
+
26
+ export default cuiqg()
27
+ ```
28
+
29
+ ## 插件配置
30
+
31
+ 安装 [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
32
+
33
+ 创建配置文件 `.vscode/settings.json`
34
+
35
+ ```json
36
+ {
37
+ "prettier.enable": false,
38
+ "editor.formatOnSave": false,
39
+ "eslint.useFlatConfig": true,
40
+ "editor.codeActionsOnSave": {
41
+ "source.fixAll.eslint": "explicit",
42
+ "source.organizeImports": "never"
43
+ }
44
+ }
45
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuiqg/eslint-config",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Eslint config for @cuiqg",
5
5
  "keywords": [
6
6
  "eslint-config"