# create eslint config file (assume eslint installed globally)
# and selecting airbnb style guide
eslint --init
# install prettier required dependencies
npm i -D prettier eslint-config-prettier eslint-plugin-prettier
Last active
July 23, 2022 16:41
-
-
Save robertoandres24/c56559eb5ebe5a490c881dbddfa78ab4 to your computer and use it in GitHub Desktop.
eslint + airbnb style + prettier config for Node js
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
Show hidden characters
{ | |
"env": { | |
"node": true, | |
"commonjs": true, | |
"es2021": true | |
}, | |
"extends": ["airbnb-base", "prettier"], | |
"plugins": ["prettier"], | |
"parserOptions": { | |
"ecmaVersion": "latest" | |
}, | |
"rules": { | |
"prettier/prettier": "error" | |
} | |
} |
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
{ | |
"printWidth": 80, | |
"tabWidth": 2, | |
"semi": true, | |
"singleQuote": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment