@aiou/eslint-config 3.0.1 → 3.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 +131 -0
- package/dist/index.mjs +13 -8
- package/package.json +5 -7
- package/dist/index.cjs +0 -1402
- package/readme.md +0 -77
package/readme.md
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# @aiou/eslint-config
|
|
2
|
-
*my flat eslint config*
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/@aiou/eslint-config) [](https://github.com/JiangWeixian/eslint-config/tree/master/packages/default)
|
|
5
|
-
|
|
6
|
-
## features
|
|
7
|
-
|
|
8
|
-
- Common ignore patterns from [nodejs's gitignore](https://github.com/github/gitignore/blob/master/Node.gitignore)
|
|
9
|
-
- Support typescript, yaml, jsonc, markdown, etc..
|
|
10
|
-
- Built-in best practices react rules, react-refresh and ssr-friendly rules...
|
|
11
|
-
- Friendly fix reporter
|
|
12
|
-
|
|
13
|
-
<div align='center'>
|
|
14
|
-
|
|
15
|
-
<img src="https://user-images.githubusercontent.com/6839576/148364688-6a9fa8ac-94a3-4897-89fc-a3b64606e93c.png" width="400px" />
|
|
16
|
-
|
|
17
|
-
*▲ @aiou/eslint-plugin-progress*
|
|
18
|
-
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
## install
|
|
22
|
-
|
|
23
|
-
```console
|
|
24
|
-
npm install @aiou/eslint-config --save-dev
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## usage
|
|
28
|
-
|
|
29
|
-
in `eslint.config.mjs`
|
|
30
|
-
|
|
31
|
-
```js
|
|
32
|
-
import { aiou } from '@aiou/eslint-config'
|
|
33
|
-
|
|
34
|
-
export default await aiou()
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### options
|
|
38
|
-
|
|
39
|
-
#### `options.ssr`
|
|
40
|
-
|
|
41
|
-
- default: `true`
|
|
42
|
-
|
|
43
|
-
enabled ssr-friendly rules
|
|
44
|
-
|
|
45
|
-
#### `options.regexp`
|
|
46
|
-
|
|
47
|
-
- default: `true`
|
|
48
|
-
|
|
49
|
-
enabled regexp rules
|
|
50
|
-
|
|
51
|
-
## rules
|
|
52
|
-
|
|
53
|
-
extends from
|
|
54
|
-
|
|
55
|
-
```console
|
|
56
|
-
eslint-config-standard
|
|
57
|
-
@eslint-community/eslint-plugin-eslint-comments
|
|
58
|
-
eslint-plugin-html
|
|
59
|
-
eslint-plugin-import-x
|
|
60
|
-
eslint-plugin-regexp (configured when regexp enabled)
|
|
61
|
-
eslint-plugin-markdown
|
|
62
|
-
eslint-plugin-simple-import-sort
|
|
63
|
-
eslint-plugin-import-newlines
|
|
64
|
-
eslint-plugin-unused-imports
|
|
65
|
-
eslint-plugin-jsonc
|
|
66
|
-
eslint-plugin-n (forked eslint-plugin-node)
|
|
67
|
-
eslint-plugin-promise
|
|
68
|
-
eslint-plugin-unicorn
|
|
69
|
-
eslint-plugin-yml
|
|
70
|
-
@eslint-react/eslint-plugin
|
|
71
|
-
eslint-plugin-react-refresh
|
|
72
|
-
@next/eslint-plugin-next (enabled when next found)
|
|
73
|
-
eslint-plugin-react-hooks
|
|
74
|
-
eslint-plugin-tailwindcss
|
|
75
|
-
@typescript-eslint/eslint-plugin
|
|
76
|
-
@stylistic/eslint-plugin
|
|
77
|
-
```
|