customize-cra-eslint

0.1.3 • Public • Published

customize-cra-eslint

customize eslint config for customize-cra.

Install

npm i customize-cra-eslint

Usage

  • Add and edit configuration file config-overrides.js at the root of your project.
  • Add or update customize-cra config content as following:
const { override } = require('customize-cra');
const eslintConfigOverrides = require('customize-cra-eslint');
 
module.exports = override(
  eslintConfigOverrides(),
);

customize-cra-eslint use root/.eslintrc.js for default rules.

You can also customize your eslint rules for customize-cra-eslint, for example:

const { override } = require('customize-cra');
const eslintConfigOverrides = require('customize-cra-eslint');
const eslintConfig = require('./.eslintrc.js');
 
module.exports = override(
  eslintConfigOverrides(eslintConfig),
);

inspired by https://github.com/arackaf/customize-cra/issues/175#issuecomment-610023655

Readme

Keywords

none

Package Sidebar

Install

npm i customize-cra-eslint

Weekly Downloads

275

Version

0.1.3

License

MIT

Unpacked Size

2.59 kB

Total Files

3

Last publish

Collaborators

  • zzbo