From 3e8ba75ce5440794e21e8bfb03d662247ee85117 Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Thu, 2 Dec 2021 18:12:07 +0800 Subject: [PATCH] feat: update `dot-notation` rule --- rules/base.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules/base.js b/rules/base.js index 4ff9174..191e42c 100644 --- a/rules/base.js +++ b/rules/base.js @@ -17,7 +17,9 @@ module.exports = { 'consistent-return': 2, 'curly': [2, 'all'], 'default-case': 2, - 'dot-notation': [2, { 'allowKeywords': true }], + 'dot-notation': [1, { + 'allowKeywords': true, + }], 'eol-last': 2, 'eqeqeq': 2, 'func-names': 0,