https://github.com/bappy3a/vs-code-settings
Vs code settings codes
https://github.com/bappy3a/vs-code-settings
Last synced: 4 months ago
JSON representation
Vs code settings codes
- Host: GitHub
- URL: https://github.com/bappy3a/vs-code-settings
- Owner: bappy3a
- Created: 2022-09-08T16:10:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T06:41:13.000Z (over 1 year ago)
- Last Synced: 2025-10-16T21:24:55.585Z (8 months ago)
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Linting Setup
In order to lint and format your code automatically according to popular airbnb style guide, I recommend you to follow the instructions as described in video. References are as below.
### Install Dev Dependencies
```sh
yarn add -D eslint prettier
npx install-peerdeps --dev eslint-config-airbnb-base
yarn add -D eslint-config-prettier eslint-plugin-prettier
```
### Setup Linting Configuration file
Create a `.eslintrc.json` file in the project root and enter the below contents:
```json
{
"extends": ["prettier", "airbnb-base"],
"parserOptions": {
"ecmaVersion": 12
},
"env": {
"commonjs": true,
"node": true
},
"rules": {
"no-console": 0,
"indent": 0,
"linebreak-style": 0,
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 4,
"semi": true
}
]
},
"plugins": ["prettier"]
}
```