no-unnecessary-slice-end Disallow slice end arguments that cannot shorten the result Passing the source length or positive infinity as a slice end selects every remaining value. Instead, you SHOULD omit an end argument that cannot shorten the result. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function tail(values: int32[]): int32[] { return values.slice(1, values.length as isize); } Accepted function tail(values: int32[]): int32[] { return values.slice(1); } Prior art - eslint-plugin-unicorn ยท no-unnecessary-slice-end language/linter/src/rules/style/nounnecessarysliceend.rs:8