- Enhancement: Avoid need for `plugins` when using `extends` (#112)
This commit is contained in:
Родитель
fce846fdc6
Коммит
b698b7409c
|
@ -53,12 +53,10 @@ $ npm install --save-dev eslint-plugin-no-unsanitized
|
|||
|
||||
## Usage
|
||||
|
||||
In your eslint.json file enable this rule with the following:
|
||||
In your `.eslintrc.json` file enable this rule with the following:
|
||||
|
||||
```
|
||||
{
|
||||
|
||||
"plugins": ["no-unsanitized"],
|
||||
"extends": ["plugin:no-unsanitized/DOM"]
|
||||
}
|
||||
```
|
||||
|
|
1
index.js
1
index.js
|
@ -6,6 +6,7 @@ module.exports = {
|
|||
},
|
||||
configs: {
|
||||
DOM: {
|
||||
plugins: ["no-unsanitized"],
|
||||
rules: {
|
||||
"no-unsanitized/property": [
|
||||
"error",
|
||||
|
|
Загрузка…
Ссылка в новой задаче