From 58bd3186d6863c64ad8bf01939826a8f584ca747 Mon Sep 17 00:00:00 2001 From: Samual Norman Date: Tue, 1 Sep 2020 22:44:17 +0100 Subject: [PATCH] enabled checking typescript files disabled no-closure-siblings rule to prevent crash with typescript plugin (see https://github.com/eslint/eslint/issues/13639) --- src/configs/recommended.json | 4 +--- src/processors/index.js | 3 ++- src/rules/index.js | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/configs/recommended.json b/src/configs/recommended.json index 8a787c4..719e3a0 100644 --- a/src/configs/recommended.json +++ b/src/configs/recommended.json @@ -10,13 +10,11 @@ "no-unreachable": "warn", "no-constant-condition": "warn", "no-eval": "error", - "no-extend-native": "error", "no-fallthrough": "off", "no-global-assign": "error", "no-implied-eval": "error", "no-global-return": "off", "hackmud2/validate-subscript-syntax": "error", - "hackmud2/no-closure-identifier": "error", - "hackmud2/no-closure-siblings": "error" + "hackmud2/no-closure-identifier": "error" } } diff --git a/src/processors/index.js b/src/processors/index.js index a7b3834..12a69c2 100644 --- a/src/processors/index.js +++ b/src/processors/index.js @@ -1,5 +1,6 @@ import jsProcessor from './js' export default { - '.js': jsProcessor + '.js': jsProcessor, + '.ts': jsProcessor } diff --git a/src/rules/index.js b/src/rules/index.js index 7035b05..b3a670f 100644 --- a/src/rules/index.js +++ b/src/rules/index.js @@ -1,9 +1,9 @@ import noClosureIdentifier from './no-closure-identifier' -import noClosureSiblings from './no-closure-siblings' +// import noClosureSiblings from './no-closure-siblings' import validateSubscriptSyntax from './validate-subscript-syntax' export default { 'no-closure-identifier': noClosureIdentifier, - 'no-closure-siblings': noClosureSiblings, + // 'no-closure-siblings': noClosureSiblings, 'validate-subscript-syntax': validateSubscriptSyntax }