docs: update organizeImports config for VS Code (#202)

This commit is contained in:
Mert 2023-06-18 12:42:25 +02:00 committed by GitHub
parent bbed70b969
commit 6cf4794985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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