aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:24:26 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:24:26 +0300
commit5bd92b74f29032bedfc350a17f663f220d45461a (patch)
treec0085065b85ca44e08d22bc506796f2a292179ad
parent0db2687006c75d9665b6706572e97523b073b4f8 (diff)
downloadeslint-config-5bd92b74f29032bedfc350a17f663f220d45461a.tar.xz
eslint-config-5bd92b74f29032bedfc350a17f663f220d45461a.zip
feat(eslint): Rule "dot-notation"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index e0102ae..214dcda 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -30,7 +30,7 @@
- [ ] "default-case-last"
- [ ] "default-param-last"
- [ ] "dot-location"
-- [ ] "dot-notation"
+- [X] "dot-notation"
- [X] "eol-last"
- [X] "eqeqeq"
- [ ] "for-direction"
diff --git a/src/rules/default.json b/src/rules/default.json
index 1f2f54f..d4b96c7 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -48,6 +48,12 @@
"before": false
}
],
+ "dot-notation": [
+ "error",
+ {
+ "allowKeywords": true
+ }
+ ],
"eol-last": [
"error",
"always"