File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/website-eslint/src/mock Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ export default tseslint.config(
209
209
'no-useless-computed-key' : 'error' ,
210
210
'one-var' : [ 'error' , 'never' ] ,
211
211
'prefer-arrow-callback' : 'error' ,
212
+ 'prefer-rest-params' : 'error' ,
212
213
213
214
//
214
215
// eslint-plugin-eslint-comment
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ const splitPath = function (filename) {
59
59
60
60
// path.resolve([from ...], to)
61
61
// posix version
62
- export function resolve ( ) {
62
+ export function resolve ( ... args ) {
63
63
let resolvedPath = '' ;
64
64
let resolvedAbsolute = false ;
65
65
66
- for ( let i = arguments . length - 1 ; i >= - 1 && ! resolvedAbsolute ; i -- ) {
67
- const path = i >= 0 ? arguments [ i ] : '/' ;
66
+ for ( let i = args . length - 1 ; i >= - 1 && ! resolvedAbsolute ; i -- ) {
67
+ const path = i >= 0 ? args [ i ] : '/' ;
68
68
69
69
// Skip empty and invalid entries
70
70
if ( typeof path !== 'string' ) {
@@ -117,8 +117,7 @@ export function isAbsolute(path) {
117
117
}
118
118
119
119
// posix version
120
- export function join ( ) {
121
- const paths = Array . prototype . slice . call ( arguments , 0 ) ;
120
+ export function join ( ...paths ) {
122
121
return normalize (
123
122
filter ( paths , p => {
124
123
if ( typeof p !== 'string' ) {
You can’t perform that action at this time.
0 commit comments