Skip to content

Instantly share code, notes, and snippets.

@lastday154
Forked from elijahmanor/.eslintrc
Last active June 8, 2018 12:31
Show Gist options
  • Save lastday154/36214e3ad121ecb6e34810dabf87d5bd to your computer and use it in GitHub Desktop.
Save lastday154/36214e3ad121ecb6e34810dabf87d5bd to your computer and use it in GitHub Desktop.
Add Prettier & ESLint to VS Code with a Create React App
{
"extends": ["react-app", "plugin:prettier/recommended"]
}
{
"scripts": {
"precommit": "pretty-quick --staged"
},
"devDependencies": {
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"husky": "^0.14.3",
"prettier": "^1.11.1",
"pretty-quick": "^1.4.1",
}
}
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"prettier.disableLanguages": [
"js"
],
"files.autoSave": "onFocusChange",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment