From ae10d9a47e0bf8c71fcc5a920160a18b3a6bfc44 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 5 Nov 2024 13:16:34 +0100 Subject: [PATCH] infra(unicorn): prefer-string-slice (#3247) --- eslint.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.ts b/eslint.config.ts index 48bf8bffb89..a9ffc372efb 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -154,13 +154,13 @@ const config: ReturnType = tseslint.config( 'unicorn/number-literal-case': 'off', // incompatible with prettier 'unicorn/numeric-separators-style': 'off', // "magic numbers" may carry specific meaning 'unicorn/prefer-string-raw': 'off', // The additional prefix doesn't help readability + 'unicorn/prefer-string-slice': 'off', // string.substring is sometimes easier to use 'unicorn/prefer-ternary': 'off', // ternaries aren't always better // TODO @Shinigami92 2023-09-23: The following rules currently conflict with our code. // Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently. 'unicorn/consistent-function-scoping': 'off', 'unicorn/prefer-export-from': 'off', - 'unicorn/prefer-string-slice': 'off', 'unicorn/prevent-abbreviations': 'off', }, },