@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 +30 -19
- package/dist/index.cjs +1450 -6
- package/dist/index.d.cts +258 -3
- package/dist/index.d.ts +258 -3
- package/dist/index.js +1366 -0
- package/package.json +46 -44
- package/dist/index.d.mts +0 -5
- package/dist/index.mjs +0 -8
package/README.md
CHANGED
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
# @pengzhanbo/eslint-config
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Fork for [@antfu/eslint-config](https://github.com/antfu/eslint-config).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
13
|
+
[Document](https://github.com/pengzhanbo/configs/tree/main/docs/eslint.md)
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
## Usage
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm add @pengzhanbo/eslint-config
|
|
17
21
|
```
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
## Configuration
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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)
|