Skip to content

Commit c6e4bae

Browse files
committed
Lint
1 parent 6f8ae38 commit c6e4bae

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
"*.{html,json,md,yaml,yml}": ["prettier --write"],
55
"*.{js,ts}": [
66
() => "yarn run typecheck",
7-
"jest --coverage --bail --findRelatedTests",
7+
"jest --bail --findRelatedTests",
88
/**
99
* @param {string[]} files
1010
*/

src/__fixtures__/postprocessArguments.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Linter } from "eslint";
22

3-
const postprocessArguments = [
3+
const postprocessArguments: [Linter.LintMessage[][], string] = [
44
[
55
[
66
{
@@ -32,7 +32,7 @@ const postprocessArguments = [
3232
},
3333
],
3434
],
35-
`/mock filename with quotes ", semicolons ; and spaces.js`,
36-
] as [Linter.LintMessage[][], string];
35+
'/mock filename with quotes ", semicolons ; and spaces.js',
36+
];
3737

3838
export { postprocessArguments };

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { diff, diffConfig, staged, stagedConfig } from "./processors";
33
const configs = { diff: diffConfig, staged: stagedConfig };
44
const processors = { diff, staged };
55

6-
export { configs, processors };
76
module.exports = { configs, processors };
7+
export { configs, processors };

src/processors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { postprocessArguments } from "./__fixtures__/postprocessArguments";
1111

1212
jest.mock("child_process");
1313
const mockedChildProcess = mocked(child_process, true);
14-
const mockFilename = `/mock filename with quotes ", semicolons ; and spaces.js`;
14+
const mockFilename = '/mock filename with quotes ", semicolons ; and spaces.js';
1515
mockedChildProcess.execSync.mockReturnValue(Buffer.from(mockFilename));
1616
const mockedGit = mocked(git, true);
1717
mockedGit.getDiffFileList = jest

0 commit comments

Comments
 (0)