react-app-rewired-eslint

rewire your react-app and use your own esling config

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-app-rewired-eslint
0.2.44 years ago4 years agoMinified + gzip package size for react-app-rewired-eslint in KB

Readme

Clone of v0.2.2 of react-app-rewire-eslint because I could not find the repo and the most recent version is blank. Use at own risk. License was listed as MIT.

1) Install react-app-rewired + react-app-rewired-eslint

npm install react-app-rewired react-app-rewired-eslint --save

2) Create a config-overrides.js file in the root directory

const rewireEslint = require('react-app-rewired-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