docs: update organizeImports
config for VS Code (#202)
This commit is contained in:
parent
bbed70b969
commit
6cf4794985
@ -50,14 +50,15 @@ Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?it
|
|||||||
"prettier.enable": false,
|
"prettier.enable": false,
|
||||||
"editor.formatOnSave": false,
|
"editor.formatOnSave": false,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": true,
|
||||||
|
"source.organizeImports": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### TypeScript Aware Rules
|
### TypeScript Aware Rules
|
||||||
|
|
||||||
Type aware rules are enabled when a `tsconfig.eslint.json` is found in the project root, which will introduce some stricter rules into your project. If you want to enable it while have no `tsconfig.eslint.json` in the project root, you can change tsconfig name by modifying `ESLINT_TSCONFIG` env.
|
Type aware rules are enabled when a `tsconfig.eslint.json` is found in the project root, which will introduce some stricter rules into your project. If you want to enable it while have no `tsconfig.eslint.json` in the project root, you can change tsconfig name by modifying `ESLINT_TSCONFIG` env.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// .eslintrc.js
|
// .eslintrc.js
|
||||||
|
Loading…
Reference in New Issue
Block a user