Skip to content

Instantly share code, notes, and snippets.

@yaminmhd
Created March 24, 2018 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yaminmhd/8563519e56595e903995ee3ba46b7bae to your computer and use it in GitHub Desktop.
Save yaminmhd/8563519e56595e903995ee3ba46b7bae 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