Skip to content

Commit fc7e2dd

Browse files
committed
chore: lint
1 parent 49adbca commit fc7e2dd

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/operator-filesystem/test/errors.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import {
2323
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
2424
findFile(5, 'hello');
2525

26-
// THROWS Argument of type 'number' is not assignable to parameter of type 'string | string[] | Set<string>'
27-
findFile({} as any, 5);
26+
// THROWS Argument of type '{}' is not assignable to parameter of type 'NodePath_Final'
27+
findFile({}, 5);
2828

2929
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
3030
getParentDirectory(5);
@@ -45,7 +45,7 @@ getFileContent(5);
4545
renameFile(5, 'hello');
4646

4747
// THROWS Expected 2 arguments, but got 1
48-
renameFile({} as any);
48+
renameFile({});
4949

5050
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
5151
removeFile(5);
@@ -54,22 +54,22 @@ removeFile(5);
5454
removeEmptyDirectory(5);
5555

5656
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
57-
moveFile(5, {} as any);
57+
moveFile(5, {});
5858

5959
// THROWS Expected 2 arguments, but got 1
60-
moveFile({} as any);
60+
moveFile({});
6161

6262
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
63-
copyFile(5, {} as any);
63+
copyFile(5, {});
6464

6565
// THROWS Expected 2 arguments, but got 1
66-
copyFile({} as any);
66+
copyFile({});
6767

6868
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
6969
createFile(5, 'hello');
7070

7171
// THROWS Expected 2-3 arguments, but got 1
72-
createFile({} as any);
72+
createFile({});
7373

7474
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
7575
readDirectory(5);
@@ -78,7 +78,7 @@ readDirectory(5);
7878
createDirectory(5, 'hello');
7979

8080
// THROWS Expected 2 arguments, but got 1
81-
createDirectory({} as any);
81+
createDirectory({});
8282

8383
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
8484
readFileContent(5);
@@ -90,7 +90,7 @@ writeFileContent(5, 'content');
9090
createNestedDirectory(5, 'hello');
9191

9292
// THROWS Expected 2 arguments, but got 1
93-
createNestedDirectory({} as any);
93+
createNestedDirectory({});
9494

9595
// THROWS Argument of type 'number' is not assignable to parameter of type 'NodePath_Final'
9696
getRootDirectory(5);
@@ -99,4 +99,4 @@ getRootDirectory(5);
9999
getFile(5, 'hello');
100100

101101
// THROWS Expected 2-3 arguments, but got 1
102-
getFile({} as any);
102+
getFile({});

packages/types/lib/plugin.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {NodePath} from '@putout/babel';
22

3-
type TrackFile = (...args: any[]) => Generator<any, void, unknown>;
4-
type CrawlFile = (...args: any[]) => Generator<any, void, unknown>;
3+
type TrackFile = (...args: unknown[]) => Generator<unknown, void, unknown>;
4+
type CrawlFile = (...args: unknown[]) => Generator<unknown, void, unknown>;
55

66
export type Scan = (path: NodePath, ScanApi: {
77
push: (path: NodePath) => void;

0 commit comments

Comments
 (0)