summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-16 14:56:52 +0300
committerValentin Popov <info@valentineus.link>2020-02-16 14:56:52 +0300
commit3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98 (patch)
tree3d2feb8f805952b6a0d332eab40831f4e1c84602
parent9dd76a6ab4f571a1289a615f671124bf2722de54 (diff)
downloadeslint-config-3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98.tar.xz
eslint-config-3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98.zip
feat(comments): no-use
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint-comments/default.json16
2 files changed, 17 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 0478520..8831c4c 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -290,7 +290,7 @@
- [ ] "no-unlimited-disable"
- [ ] "no-unused-disable"
- [ ] "no-unused-enable"
-- [ ] "no-use"
+- [X] "no-use"
## Import
diff --git a/src/rules/eslint-comments/default.json b/src/rules/eslint-comments/default.json
index 75f5bad..382e22d 100644
--- a/src/rules/eslint-comments/default.json
+++ b/src/rules/eslint-comments/default.json
@@ -4,5 +4,21 @@
{
"allowWholeFile": true
}
+ ],
+ "eslint-comments/no-use": [
+ "error",
+ {
+ "allow": [
+ "eslint",
+ "eslint-disable",
+ "eslint-disable-line",
+ "eslint-disable-next-line",
+ "eslint-enable",
+ "eslint-env",
+ "exported",
+ "global",
+ "globals"
+ ]
+ }
]
}