From f739d77bfb9121b8082b2057c4866200f3e18e5c Mon Sep 17 00:00:00 2001 From: Julian Meinking <12785972+DrJume@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:00:42 +0200 Subject: [PATCH] fix(eslint): allow yoda for range checks --- packages/eslint-config/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index 87e23d9..ccb778d 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -96,6 +96,8 @@ export function eslintConfig( 'test/consistent-test-it': ['error', { fn: 'test', withinDescribe: 'test' }], 'antfu/top-level-function': 'error', + + 'yoda': ['error', 'never', { exceptRange: true }], }, }) .append({