Last active
November 20, 2018 00:42
-
-
Save tcrowe/d7253e0fbc44be473bc1810169fe6ef3 to your computer and use it in GitHub Desktop.
.eslintrc with prettier
This file contains 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
{ | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"plugins": ["prettier"], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:prettier/recommended" | |
], | |
"rules": { | |
"prettier/prettier": "error", | |
"no-console": [0] | |
}, | |
"globals": { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm install eslint prettier eslint-config-prettier eslint-plugin-prettier
for node:
for browser:
for node mocha tests: