Skip to content

Instantly share code, notes, and snippets.

@wila-diaz
Created December 1, 2020 20:30
Show Gist options
  • Save wila-diaz/a98d7bfa3dd463f3856ca3d9bf24142c to your computer and use it in GitHub Desktop.
Save wila-diaz/a98d7bfa3dd463f3856ca3d9bf24142c to your computer and use it in GitHub Desktop.
Node complements
{
"parserOptions": {
"ecmaVersion": 2018
},
"extends": [
"eslint:recommended",
"prettier"
],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"rules": {
"no-console": "warn"
}
}
{
"name": "req-res",
"version": "1.0.0",
"description": "",
"main": "req.js",
"scripts": {
"dev": "DEBUG=app:* nodemon index.js",
"start": "NODE_ENV=production node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.17.1"
},
"devDependencies": {
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.3.0",
"lint-staged": "^10.5.2",
"nodemon": "^2.0.6",
"prettier": "^2.2.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "eslint --cache --fix"
}
}
{
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment