aboutsummaryrefslogtreecommitdiff
path: root/src/rules/eslint-comments
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 /src/rules/eslint-comments
parent9dd76a6ab4f571a1289a615f671124bf2722de54 (diff)
downloadeslint-config-3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98.tar.xz
eslint-config-3f111c5b78f1d928f2fe3aee50e5bd48d38ceb98.zip
feat(comments): no-use
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules/eslint-comments')
-rw-r--r--src/rules/eslint-comments/default.json16
1 files changed, 16 insertions, 0 deletions
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"
+ ]
+ }
]
}