0.1.0 • Published 4 years ago

eslint-todo-generator v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

eslint-todo-generator

Generates an exception list and adds it to your eslintrc.

Install

$ npm i --save-dev eslint-todo-generator

Usage

Run command in the project path.

$ eslint-todo-generator -f json 'src/**/*'

You need to add the generated .eslintrc-todo.(json|yaml) to the extends of eslintrc.

{
  ...
  "extends": [
    "eslint:recommended",
    ".eslintrc-todo.json"
  ]
}

Options

OptionsDescription
-w --warnCreate a to-do list with rules set to warn instead of off.
-f --formatformat setting, json or yaml.

Note

If project have specific eslint rules, you need to change a existing setting. The reason is .eslintrc-todo need to be loaded last.

{
  ...
  "extends": [
    "eslint:recommended",
    ".eslintrc-project-custom-rules.json",
    ".eslintrc-todo.json"
  ]
}

Licence

MIT

Author

sinshutukibotu

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago