@pengzhanbo/eslint-config 0.4.3 → 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/README.md CHANGED
@@ -1,29 +1,40 @@
1
1
  # @pengzhanbo/eslint-config
2
2
 
3
- ## Install
3
+ Fork for [@antfu/eslint-config](https://github.com/antfu/eslint-config).
4
4
 
5
- ```sh
6
- pnpm add eslint prettier @pengzhanbo/eslint-config @pengzhanbo/prettier-config
7
- ```
5
+ 与 [@antfu/eslint-config](https://github.com/antfu/eslint-config) 不同的是,
6
+ framework 相关的配置划分为独立的 eslint 配置包。
7
+
8
+ 包括 `vue` 、 `react` 等都移动到其他的 package 中,只保留 通用的配置,
9
+ 再根据项目的需求引入对应的 package。 并添加了 `solid-js` , `svelte` 等的配置支持。
10
+
11
+ ## Documentation
8
12
 
9
- ## Config
13
+ [Document](https://github.com/pengzhanbo/configs/tree/main/docs/eslint.md)
10
14
 
11
- `.eslintrc`/`.eslintrc.json`
15
+ ## Usage
12
16
 
13
- ```json
14
- {
15
- "extends": "@pengzhanbo"
16
- }
17
+ ## Install
18
+
19
+ ```bash
20
+ pnpm add @pengzhanbo/eslint-config
17
21
  ```
18
22
 
19
- **package.json**
23
+ ## Configuration
20
24
 
21
- ```json
22
- {
23
- "scripts": {
24
- "lint": "eslint .",
25
- "lint:fix": "eslint . --fix"
26
- },
27
- "prettier": "@pengzhanbo/prettier-config"
28
- }
25
+ `eslint.config.js`
26
+ ```js
27
+ import eslintConfig from '@pengzhanbo/eslint-config'
28
+
29
+ export default eslintConfig()
29
30
  ```
31
+
32
+ ## 相关资源
33
+ - [@pengzhanbo/eslint-config](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config)
34
+ - [@pengzhanbo/eslint-config-vue](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-vue)
35
+ - [@pengzhanbo/eslint-config-react](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-react)
36
+ - [@pengzhanbo/eslint-config-svelte](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-svelte)
37
+ - [@pengzhanbo/eslint-config-solid](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-solid)
38
+ - [@pengzhanbo/eslint-config-astro](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-astro)
39
+ - [@pengzhanbo/prettier-config](https://github.com/pengzhanbo/configs/tree/main/packages/prettier-config)
40
+ - [@pengzhanbo/stylelint-config](https://github.com/pengzhanbo/configs/tree/main/packages/stylelint-config)