eslint-plugin-self
Allows ESLint plugins to be run on themselves
Last updated a month ago by not-an-aardvark .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-self 
SYNC missed versions from official npm registry.

eslint-plugin-self

When writing an ESLint plugin, it's often useful to use the plugin's rules to lint the plugin's own codebase. You can use eslint-plugin-self to do that.

Usage

npm install eslint-plugin-self --save-dev

Note: eslint-plugin-self must be installed locally (it will not work if installed globally), and the project that installs it must be a functioning ESLint plugin.

Add the following to your config file:

{
  "plugins": [
    "self"
  ]
}

Then you can use your plugin's rules, with the self/ prefix:

{
  "rules": {
    "self/my-custom-rule": "error"
  }
}

You can also use your plugin's configs, or anything else exported by your plugin:

{
  "extends": [
    "plugin:self/some-config"
  ]
}

Current Tags

  • 1.2.1                                ...           latest (a month ago)

5 Versions

  • 1.2.1                                ...           a month ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 1
This Week 2
This Month 3
Last Day 1
Last Week 1
Last Month 10
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |