-
-
Save brenopolanski/d484bf7cc8677a1c25af587c4a61dc17 to your computer and use it in GitHub Desktop.
Prettier/eslint configuration in create-react-app
This file contains hidden or 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
{ | |
"extends": ["react-app", "plugin:prettier/recommended"] | |
} | |
This file contains hidden or 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
{ | |
"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