Skip to content

Commit

Permalink
infra(unicorn): prefer-string-slice (#3247)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Nov 5, 2024
1 parent 2ec9c47 commit ae10d9a
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 @@ -154,13 +154,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 ae10d9a

Please sign in to comment.