Package Exports
- eslint-plugin-eslint-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-eslint-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-eslint-plugin
An ESLint plugin for linting ESLint plugins
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-eslint-plugin
:
$ npm install eslint-plugin-eslint-plugin --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-eslint-plugin
globally.
Usage
Add eslint-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"eslint-plugin"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"eslint-plugin/no-deprecated-report-api": "error"
}
}
Additionally, you can enable all recommended rules from this plugin:
{
"extends": [
"plugin:eslint-plugin/recommended"
]
}
Supported Rules
✔️ indicates that a rule is recommended. 🛠 indicates that a rule is fixable.
Name | ✔️ | 🛠 | Description |
---|---|---|---|
no-deprecated-report-api | ✔️ | 🛠 | Prohibits the deprecated context.report(node, message) API |
report-message-format | ✔️ | Enforces a consistent format for report messages | |
require-meta-fixable | ✔️ | Requires a meta.fixable property for fixable rules |
|
no-missing-placeholders | ✔️ | Disallows missing placeholders in rule report messages |