Skip to content

Commit

Permalink
chore: fix linting (#223)
Browse files Browse the repository at this point in the history
* chore: fix linting

* chore: lint
  • Loading branch information
merceyz authored Jan 4, 2023
1 parent 96a4e34 commit 82a6715
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.yarn
dist
shims
.pnp.*
1 change: 0 additions & 1 deletion genlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ lines.sort((a, b) => {

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
"scripts": {
"build": "rm -rf dist shims && webpack && ts-node ./mkshims.ts",
"corepack": "ts-node ./sources/_entryPoint.ts",
"lint": "yarn eslint",
"lint": "eslint .",
"prepack": "yarn build",
"postpack": "rm -rf dist shims",
"typecheck": "tsc --noEmit",
"test": "yarn jest"
"test": "jest"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion sources/commands/Disable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import fs from 'f
import path from 'path';
import which from 'which';

import type { NodeError } from '../nodeUtils';
import {Context} from '../main';
import type {NodeError} from '../nodeUtils';
import {isSupportedPackageManager, SupportedPackageManagerSetWithoutNpm} from '../types';

export class DisableCommand extends Command<Context> {
Expand Down
4 changes: 2 additions & 2 deletions sources/fsUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { rm } from "fs/promises";
import {rm} from 'fs/promises';

export async function rimraf(path: string) {
return rm(path, { recursive: true, force: true });
return rm(path, {recursive: true, force: true});
}
2 changes: 1 addition & 1 deletion tests/recordRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ switch (process.env.NOCK_ENV || ``) {
req.rawHeaders = filterHeaders(req.rawHeaders);

const serialized = v8.serialize(nockCallObjects);
fs.mkdirSync(path.dirname(getNockFile()), { recursive: true });
fs.mkdirSync(path.dirname(getNockFile()), {recursive: true});
fs.writeFileSync(getNockFile(), serialized);
});
break;
Expand Down

0 comments on commit 82a6715

Please sign in to comment.