aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-16 14:54:21 +0300
committerValentin Popov <info@valentineus.link>2020-02-16 14:54:21 +0300
commit9dd76a6ab4f571a1289a615f671124bf2722de54 (patch)
treec6fb1770ce78f4a47db691f69af414755e72eefa
parentfee0f21f2fdfa12019b9fc4b4d82630d7412cd28 (diff)
downloadeslint-config-9dd76a6ab4f571a1289a615f671124bf2722de54.tar.xz
eslint-config-9dd76a6ab4f571a1289a615f671124bf2722de54.zip
feat(comments): disable-enable-pair
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint-comments/default.json9
2 files changed, 9 insertions, 2 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 49f21b1..0478520 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -283,7 +283,7 @@
## ESLint Comments
-- [ ] "disable-enable-pair"
+- [X] "disable-enable-pair"
- [ ] "no-aggregating-enable"
- [ ] "no-duplicate-disable"
- [ ] "no-restricted-disable"
diff --git a/src/rules/eslint-comments/default.json b/src/rules/eslint-comments/default.json
index 0967ef4..75f5bad 100644
--- a/src/rules/eslint-comments/default.json
+++ b/src/rules/eslint-comments/default.json
@@ -1 +1,8 @@
-{}
+{
+ "eslint-comments/disable-enable-pair": [
+ "error",
+ {
+ "allowWholeFile": true
+ }
+ ]
+}