From 8a5d18ecedeb79d4acb368e8e3c1009e0094803b Mon Sep 17 00:00:00 2001 From: deskoh Date: Thu, 24 Mar 2022 17:06:35 +0800 Subject: [PATCH] Replace 'space-before-blocks' with '@typescript-eslint' version --- lib/shared.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/shared.js b/lib/shared.js index 421baff..306550b 100644 --- a/lib/shared.js +++ b/lib/shared.js @@ -162,6 +162,11 @@ module.exports = { 'no-shadow': 'off', '@typescript-eslint/no-shadow': baseVariablesRules['no-shadow'], + // Replace Airbnb 'space-before-blocks' rule with '@typescript-eslint' version + // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-blocks.md + 'space-before-blocks': 'off', + '@typescript-eslint/space-before-blocks': baseStyleRules['space-before-blocks'], + // Replace Airbnb 'no-throw-literal' rule with '@typescript-eslint' version // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-throw-literal.md 'no-throw-literal': 'off',