https://github.com/bappy3a/node.js-uptime-monitoring-api
https://github.com/bappy3a/node.js-uptime-monitoring-api
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bappy3a/node.js-uptime-monitoring-api
- Owner: bappy3a
- License: 0bsd
- Created: 2024-07-31T17:32:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T19:51:17.000Z (almost 2 years ago)
- Last Synced: 2025-05-20T03:12:45.529Z (about 1 year ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"]
}
```