Skip to content

Commit 82a6715

Browse files
authored
chore: fix linting (#223)
* chore: fix linting * chore: lint
1 parent 96a4e34 commit 82a6715

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.yarn
2+
dist
3+
shims
4+
.pnp.*

genlist.ts

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ lines.sort((a, b) => {
99

1010
for (const version of lines)
1111
console.log(`"${version}": "${process.argv[2]}",`);
12-

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
"scripts": {
4949
"build": "rm -rf dist shims && webpack && ts-node ./mkshims.ts",
5050
"corepack": "ts-node ./sources/_entryPoint.ts",
51-
"lint": "yarn eslint",
51+
"lint": "eslint .",
5252
"prepack": "yarn build",
5353
"postpack": "rm -rf dist shims",
5454
"typecheck": "tsc --noEmit",
55-
"test": "yarn jest"
55+
"test": "jest"
5656
},
5757
"files": [
5858
"dist",

sources/commands/Disable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import fs from 'f
33
import path from 'path';
44
import which from 'which';
55

6-
import type { NodeError } from '../nodeUtils';
76
import {Context} from '../main';
7+
import type {NodeError} from '../nodeUtils';
88
import {isSupportedPackageManager, SupportedPackageManagerSetWithoutNpm} from '../types';
99

1010
export class DisableCommand extends Command<Context> {

sources/fsUtils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { rm } from "fs/promises";
1+
import {rm} from 'fs/promises';
22

33
export async function rimraf(path: string) {
4-
return rm(path, { recursive: true, force: true });
4+
return rm(path, {recursive: true, force: true});
55
}

tests/recordRequests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ switch (process.env.NOCK_ENV || ``) {
3939
req.rawHeaders = filterHeaders(req.rawHeaders);
4040

4141
const serialized = v8.serialize(nockCallObjects);
42-
fs.mkdirSync(path.dirname(getNockFile()), { recursive: true });
42+
fs.mkdirSync(path.dirname(getNockFile()), {recursive: true});
4343
fs.writeFileSync(getNockFile(), serialized);
4444
});
4545
break;

0 commit comments

Comments
 (0)