Skip to content

Commit

Permalink
infra(unicorn): prefer-string-slice
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Nov 4, 2024
1 parent f9466b5 commit e6b5825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ const config: ReturnType<typeof tseslint.config> = 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',
},
},
Expand Down

0 comments on commit e6b5825

Please sign in to comment.