From c3601c6c40ed49b429e9ca5d8556e7d6bcee3f58 Mon Sep 17 00:00:00 2001 From: cheton Date: Fri, 1 Apr 2022 18:16:46 +0800 Subject: [PATCH] feat: add `prefer-regex-literals` rule --- rules/base.js | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/base.js b/rules/base.js index 04a959f..f2cecf5 100644 --- a/rules/base.js +++ b/rules/base.js @@ -108,6 +108,7 @@ module.exports = { 'prefer-promise-reject-errors': [1, { 'allowEmptyReject': true }], + 'prefer-regex-literals': 0, 'prefer-spread': 0, 'prefer-template': 0, 'quote-props': [0, 'as-needed'],