eslint-plugin-wizard

0.1.4 • Public • Published

eslint-plugin-wizard

eslint rules for wizard project

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-wizard:

$ npm install eslint-plugin-wizard --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-wizard globally.

Usage

Add wizard to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["wizard"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "wizard/use-t-function": "warn",
    "wizard/no-unused-props": "warn",
    "wizard/nightwatch-execute": "error",
    "wizard/action-checker": "warn"
  }
}

Supported Rules

  • use-t-function
  • no-unused-props
  • nightwatch-execute
  • action-checker

Package Sidebar

Install

npm i eslint-plugin-wizard

Weekly Downloads

4

Version

0.1.4

License

ISC

Unpacked Size

20.6 kB

Total Files

8

Last publish

Collaborators

  • fezhengjin
  • wangkailang992
  • yanzhen