https://github.com/stil/eslint-config-favorite
https://github.com/stil/eslint-config-favorite
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stil/eslint-config-favorite
- Owner: stil
- License: mit
- Created: 2021-04-10T19:32:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-10T18:50:51.000Z (about 3 years ago)
- Last Synced: 2024-12-31T20:15:35.356Z (over 1 year ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-favorite
This project is closed for PRs. Only for my personal use.
## Installation
To install it in your project, simply run the following command:
```shell
yarn add -D eslint-config-favorite
```
Then you can create an `.eslintrc` file with following contents
```json
{
"extends": "eslint-config-favorite"
}
```
## Prettier
Install Prettier VSCode extension first: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
In workspace settings add following setting:
```json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true
}
```