From 950b5ea55ea0a22af774e3b4925fbe66875981f9 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 18 Mar 2024 11:08:52 -0400 Subject: [PATCH] Fine tune eslint Support no-indentation for file-level if block or arrow function block. --- .eslintrc.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index ffb4a0f00..755b8c718 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -9,13 +9,14 @@ rules: - warn - always indent: - - warn + - error - 4 - ignoredNodes: - - Program > IfStatement > * - noControlRegex: off - noEmpty: off + - Program > IfStatement > BlockStatement + - Program > ExpressionStatement > CallExpression > ArrowFunctionExpression > BlockStatement + no-control-regex: off + no-empty: off sort-imports: warn strict: warn globals: