Skip to content

Instantly share code, notes, and snippets.

@bbachi
Created February 14, 2019 06:01
Show Gist options
  • Select an option

  • Save bbachi/addb74fbfb09e96dd4ca7458a4de899c to your computer and use it in GitHub Desktop.

Select an option

Save bbachi/addb74fbfb09e96dd4ca7458a4de899c to your computer and use it in GitHub Desktop.
How to write production ready Node.js Rest API with Javascript - eslint
module.exports = {
"extends": "airbnb-base"
};
{
"name": "user_api",
"version": "1.0.0",
"description": "sample rest api",
"main": "index.js",
"scripts": {
"start": "node index.js",
"start:dev": "nodemon index.js",
"eslint": "eslint ./",
"eslint-fix": "eslint ./ --fix",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Bhargav Bachina",
"license": "ISC",
"dependencies": {
"body-parser": "^1.18.3",
"express": "^4.16.4"
},
"devDependencies": {
"eslint": "^5.13.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.16.0",
"nodemon": "^1.18.10"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment