Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
tianyingchun committed Aug 3, 2024
1 parent a0d8a4a commit 047b7a5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -115,6 +115,16 @@ You can add two scripts to your package.json to lint and/or fix your code:
}
```

````json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
}
}
// yarn lint --fix
```

## If you use Next.js

You can also add additional rules for Next.js
@@ -131,7 +141,7 @@ export default defineConfig([
},
},
]);
```
````

## If you use React.js

@@ -166,17 +176,11 @@ Once you have done. You probably want your editor to lint and fix for you.
"source.fixAll": "explicit",
"source.organizeImports": "never"
},
"eslint.experimental.useFlatConfig": true,

"[jsonc]": {
"editor.formatOnSave": false,
"editor.tabSize": 2,
"editor.insertSpaces": true
"editor.formatOnSave": false
},
"[json]": {
"editor.formatOnSave": false,
"editor.tabSize": 2,
"editor.insertSpaces": true
"editor.formatOnSave": false
}
}
```
@@ -187,14 +191,10 @@ we need to disable vscode editor language formatter for `json, jsonc`

```json:settings.json
"[jsonc]": {
"editor.formatOnSave": false,
"editor.tabSize": 2,
"editor.insertSpaces": true
"editor.formatOnSave": false
},
"[json]": {
"editor.formatOnSave": false,
"editor.tabSize": 2,
"editor.insertSpaces": true
"editor.formatOnSave": false
}

```

0 comments on commit 047b7a5

Please sign in to comment.