@@ -613,9 +613,13 @@ const base = {
613
613
'unicorn/no-thenable' : ERROR ,
614
614
// disallow comparing `undefined` using `typeof` when it's not required
615
615
'unicorn/no-typeof-undefined' : ERROR ,
616
+ // disallow using 1 as the depth argument of `Array#flat()`
617
+ 'unicorn/no-unnecessary-array-flat-depth' : ERROR ,
618
+ // disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{ splice, toSpliced }()`
619
+ 'unicorn/no-unnecessary-array-splice-count' : ERROR ,
616
620
// disallow awaiting non-promise values
617
621
'unicorn/no-unnecessary-await' : ERROR ,
618
- // disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()
622
+ // disallow using `.length` or `Infinity` as the end argument of `{ Array, String, %TypedArray% }#slice()`
619
623
'unicorn/no-unnecessary-slice-end' : ERROR ,
620
624
// disallow unreadable array destructuring
621
625
'unicorn/no-unreadable-array-destructuring' : ERROR ,
@@ -1971,6 +1975,8 @@ const packagesPackageJSON = {
1971
1975
'package-json/repository-shorthand' : [ ERROR , { form : 'object' } ] ,
1972
1976
// requires the `author` property to be present
1973
1977
'package-json/require-author' : ERROR ,
1978
+ // requires the `description` property to be present
1979
+ 'package-json/require-description' : ERROR ,
1974
1980
// requires the `engines` property to be present
1975
1981
// TODO: core-js@4
1976
1982
// 'package-json/require-engines': ERROR,
0 commit comments