Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tcrowe
Last active November 20, 2018 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcrowe/d7253e0fbc44be473bc1810169fe6ef3 to your computer and use it in GitHub Desktop.
Save tcrowe/d7253e0fbc44be473bc1810169fe6ef3 to your computer and use it in GitHub Desktop.
.eslintrc with prettier
{
"env": {
"es6": true,
"node": true
},
"plugins": ["prettier"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": "error",
"no-console": [0]
},
"globals": {
}
}
@tcrowe
Copy link
Author

tcrowe commented Oct 24, 2018

npm install eslint prettier eslint-config-prettier eslint-plugin-prettier

for node:

"env": {
  "node": true
},

for browser:

"env": {
  "browser": true
},

for node mocha tests:

"globals": {
  "describe": true,
  "it": true,
  "before": true
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment