Created
February 14, 2019 06:01
-
-
Save bbachi/addb74fbfb09e96dd4ca7458a4de899c to your computer and use it in GitHub Desktop.
How to write production ready Node.js Rest API with Javascript - eslint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| "extends": "airbnb-base" | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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