Skip to content

Commit

Permalink
chore(docs-ui): add docs for VSCode configuration eslint
Browse files Browse the repository at this point in the history
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
  • Loading branch information
Marvin9 committed May 4, 2024
1 parent ff6b146 commit 7f132ca
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,25 @@ Make sure your code passes the lint checks:

```
yarn lint --fix
```
```

If you are using VSCode, add this configuration to `.vscode/settings.json` in the root of this repository to identify and fix lint issues automatically before you save file.

Install [Eslint Extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) in VSCode.

`.vscode/settings.json`
```json
{
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"eslint.workingDirectories": [
{
"directory": "./ui",
"!cwd": false
}
],
"eslint.experimental.useFlatConfig": true
}
```

0 comments on commit 7f132ca

Please sign in to comment.