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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.3275latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.3275
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i customize-cra-eslint

Weekly Downloads

171

Version

0.1.3

License

MIT

Unpacked Size

2.59 kB

Total Files

3

Last publish

Collaborators

  • zzbo