Skip to content

Commit 95288bd

Browse files
committed
feat: turn on unicorn/no-length-as-slice-end
1 parent 749f4d0 commit 95288bd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scripts/typegen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const configs = await combine(
5959

6060
const configNames = configs.map(i => i.name).filter(Boolean) as string[]
6161

62+
// @ts-expect-error eslint typegen version
6263
let dts = await flatConfigsToRulesDTS(configs, {
6364
includeAugmentation: false,
6465
})

src/configs/unicorn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export function unicorn(): TypedFlatConfigItem[] {
3333
'unicorn/no-hex-escape': 'error',
3434
'unicorn/no-instanceof-array': 'error',
3535
'unicorn/no-invalid-remove-event-listener': 'error',
36+
'unicorn/no-length-as-slice-end': 'error',
3637
'unicorn/no-lonely-if': 'error',
3738
'unicorn/no-new-array': 'error',
3839
'unicorn/no-new-buffer': 'error',

0 commit comments

Comments
 (0)