diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-16 14:56:52 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-16 14:56:52 +0300 |
commit | 3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98 (patch) | |
tree | 3d2feb8f805952b6a0d332eab40831f4e1c84602 | |
parent | 9dd76a6ab4f571a1289a615f671124bf2722de54 (diff) | |
download | eslint-config-3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98.tar.xz eslint-config-3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98.zip |
feat(comments): no-use
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/eslint-comments/default.json | 16 |
2 files changed, 17 insertions, 1 deletions
@@ -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" + ] + } ] } |