chore: update readme
This commit is contained in:
parent
9346e47d92
commit
b425b251ea
13
README.md
13
README.md
@ -14,19 +14,10 @@ pnpm add -D eslint @antfu/eslint-config
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": [
|
||||
"@antfu"
|
||||
]
|
||||
"extends": "@antfu"
|
||||
}
|
||||
```
|
||||
|
||||
### Config `.eslintignore`
|
||||
|
||||
```txt
|
||||
dist
|
||||
public
|
||||
```
|
||||
|
||||
### Add script for package.json
|
||||
|
||||
For example:
|
||||
@ -34,7 +25,7 @@ For example:
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"lint": "eslint \"**/*.{vue,ts,js}\""
|
||||
"lint": "eslint ."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user