Created by: chyipin
Allow react app to configure eslint without resorting to eject
Test Instructions
- npm link react-scripts globally
- create new create-react-app
- npm link react-scripts in new app
- modify
eslintConfig
inpackage.json
as follows:
"extends": [
"eslint:recommended",
"react-app"
]
- exercise the script, e.g.:
npm run build
- verify output
./src/serviceWorker.js
Line 44: Unexpected console statement no-console
Line 72: Unexpected console statement no-console
Line 85: Unexpected console statement no-console
Line 97: Unexpected console statement no-console
Line 123: Unexpected console statement no-console