From 46aed3970fb4fcbaba7950b3b4b28de1495efc24 Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Fri, 20 Oct 2017 17:16:57 +0300 Subject: [PATCH 1/2] update rules --- .eslintrc.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 587da2fcdc..5afe85897b 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -4,6 +4,16 @@ env: browser: true rules: + # Possible Errors + # http://eslint.org/docs/rules/#possible-errors + for-direction: error + no-debugger: error + no-dupe-args: error + no-dupe-keys: error + no-duplicate-case: error + no-empty-character-class: error + no-ex-assign: error + # Strict Mode # http://eslint.org/docs/rules/#strict-mode strict: [error, global] From 8ee5ae8405efed04c12c37d0b05cdc9268714703 Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Fri, 20 Oct 2017 17:31:26 +0300 Subject: [PATCH 2/2] delete check strict mode add other checks --- .eslintrc.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 5afe85897b..1d2a4b75e7 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -13,10 +13,11 @@ rules: no-duplicate-case: error no-empty-character-class: error no-ex-assign: error - - # Strict Mode - # http://eslint.org/docs/rules/#strict-mode - strict: [error, global] + no-extra-semi: error + no-func-assign: error + no-invalid-regexp: error + no-irregular-whitespace: error + no-obj-calls: error # Stylistic Issues # http://eslint.org/docs/rules/#stylistic-issues