From 5bd92b74f29032bedfc350a17f663f220d45461a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 01:24:26 +0400 Subject: feat(eslint): Rule "dot-notation" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3