eslint-gen-overrides
Generate overrides for eslint violations.
Last updated 6 days ago by sharmilajesupaul .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-gen-overrides 
SYNC missed versions from official npm registry.

eslint-gen-overrides

Outputs eslint rule violations for a project.

Why? Some projects are large and can require a multi-step process to update lint rules. You can use this tool to generate overrides for all the lint rule violations to allow you to fix the rule violations at a later time.

Installation

Run npm i eslint-gen-overrides.

CLI

To generate overrides for a project, run eslint-gen-overrides <filename or glob>

 Usage
   $ eslint-gen-overrides <input>

 Options
   --format, -f  specify an output format [json, yml, or js] - default: json
   --extensions, -ext  specify file extensions to run the linter against. default: .js
   --fix, fixes all auto-fixable rules before generating overrides. default: false
   --updateConfigFile, -u specify a path to a JSON or YAML configuration file where the overrides will be added.

 Examples
   $  eslint-gen-overrides 'my/project/**/*.js' --format json --extensions .ts,.js,.tsx,.jsx --fix

Usage

Currently, this will output JSON at the current working directory -- ./overrides.json or update an existing .eslintrc or .eslintrc.json file.

Support for YML and JS coming soon!

NOTE ???? This file can also be used in a JS config by requiring.

// .eslintrc.js
const overrides = require('./overrides.json');
module.exports = {
  rules: { },
  overrides,
}

Current Tags

  • 0.0.8                                ...           latest (6 days ago)
  • 0.0.0                                ...           next (3 months ago)

9 Versions

  • 0.0.8                                ...           6 days ago
  • 0.0.7                                ...           6 days ago
  • 0.0.6                                ...           16 days ago
  • 0.0.5                                ...           16 days ago
  • 0.0.4                                ...           16 days ago
  • 0.0.3                                ...           16 days ago
  • 0.0.2                                ...           16 days ago
  • 0.0.1                                ...           16 days ago
  • 0.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 121
Last Day 0
Last Week 29
Last Month 0
Dependencies (4)
Dev Dependencies (17)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |