diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 00:24:26 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 00:24:26 +0300 |
commit | 5bd92b74f29032bedfc350a17f663f220d45461a (patch) | |
tree | c0085065b85ca44e08d22bc506796f2a292179ad | |
parent | 0db2687006c75d9665b6706572e97523b073b4f8 (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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" |