Skip to content

Instantly share code, notes, and snippets.

@tcrowe tcrowe/.eslintrc
Last active Nov 20, 2018

Embed
What would you like to do?
.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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.