react-app-rewire-eslint
v0.2.3
Published
rewire your react-app and use your own esling config
Downloads
2,134
Readme
Create your React app using create-react-app my-app
or use an CRA app
Rewire it
1) Install react-app-rewired + react-app-rewire-eslint
npm install react-app-rewired react-app-rewire-eslint --save
2) Create a config-overrides.js file in the root directory
const rewireEslint = require('react-app-rewire-eslint');
/* config-overrides.js */
module.exports = function override(config, env) {
config = rewireEslint(config, env);
return config;
}
3) Create your own .eslintrc in the root directory
Sample Structure
+-- your-project
| +-- .eslintrc
| +-- config-overrides.js
| +-- node_modules
| +-- package.json
| +-- public
| +-- README.md
| +-- src