react-app-rewire-eslint

0.2.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-app-rewire-eslint

Weekly Downloads

543

Version

0.2.3

License

MIT

Last publish

Collaborators

  • timarney