Skip to content

Instantly share code, notes, and snippets.

@brenopolanski
Forked from yaminmhd/.eslintrc
Created May 19, 2018 23:26
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brenopolanski/d484bf7cc8677a1c25af587c4a61dc17 to your computer and use it in GitHub Desktop.
Save brenopolanski/d484bf7cc8677a1c25af587c4a61dc17 to your computer and use it in GitHub Desktop.
Prettier/eslint configuration in create-react-app
{
"extends": ["react-app", "plugin:prettier/recommended"]
}
{
"name": "playground",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"precommit": "pretty-quick --stage"
},
"devDependencies": {
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"husky": "^0.14.3",
"lint-staged": "^7.0.0",
"prettier": "^1.11.1",
"pretty-quick": "^1.4.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment