Skip to content

Instantly share code, notes, and snippets.

@shalkam
Last active November 9, 2018 11:35
Show Gist options
  • Save shalkam/ba966db6d3570a183dfd0dd02bef5254 to your computer and use it in GitHub Desktop.
Save shalkam/ba966db6d3570a183dfd0dd02bef5254 to your computer and use it in GitHub Desktop.
Eslint setup for server
{
"extends": ["standard", "prettier"],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
}
}
{
"singleQuote": true
}

Steps

Install eslint with dependencies

yarn add eslint eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node eslint-config-prettier eslint-plugin-prettier --dev

Download eslint config files

wget \
https://gist.github.com/shalkam/ba966db6d3570a183dfd0dd02bef5254/raw/83ba51ff1f159690aa6c788f566a80d4e4e6bd25/.eslintignore \
https://gist.github.com/shalkam/ba966db6d3570a183dfd0dd02bef5254/raw/83ba51ff1f159690aa6c788f566a80d4e4e6bd25/.eslintrc \
https://gist.github.com/shalkam/ba966db6d3570a183dfd0dd02bef5254/raw/22507e9f9c7e59e02b797f0d6ac8c28dee2046f7/.prettierrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment