Skip to content

Commit 7a9c3e0

Browse files
committed
Misc fixes
1 parent 0d99fcf commit 7a9c3e0

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

cspell.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"version": "0.2",
3-
"ignorePaths": [],
4-
"dictionaryDefinitions": [],
5-
"dictionaries": [],
6-
"words": ["Eriksson", "paleite", "pinst", "Wercker"],
7-
"ignoreWords": [],
8-
"import": []
3+
"words": ["Eriksson", "paleite"],
4+
"ignoreWords": ["pinst", "Wercker"]
95
}

src/Range.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Range {
2-
readonly inclusiveLowerBound: Readonly<number>;
3-
readonly exclusiveUpperBound: Readonly<number>;
2+
private readonly inclusiveLowerBound: Readonly<number>;
3+
private readonly exclusiveUpperBound: Readonly<number>;
44

55
constructor(
66
inclusiveLowerBound: Readonly<number>,

src/git.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as child_process from "child_process";
2-
import path from "path";
32
import { mocked } from "jest-mock";
3+
import path from "path";
44
import {
55
getDiffFileList,
66
getDiffForFile,

src/processors.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Linter } from "eslint";
22
import type { Range } from "./git";
33
import {
4-
getUntrackedFileList,
54
getDiffFileList,
65
getDiffForFile,
76
getRangesForDiff,
7+
getUntrackedFileList,
88
hasCleanIndex,
99
} from "./git";
1010

@@ -74,7 +74,7 @@ const getPostProcessor =
7474
.reduce((a, b) => a.concat(b), []);
7575
};
7676

77-
const getProcessors = (staged = false) => ({
77+
const getProcessors = (staged = false): Linter.Processor => ({
7878
preprocess: getPreProcessor(staged),
7979
postprocess: getPostProcessor(staged),
8080
supportsAutofix: true,
@@ -83,7 +83,7 @@ const getProcessors = (staged = false) => ({
8383
const diff = getProcessors();
8484
const staged = getProcessors(STAGED);
8585

86-
const diffConfig = {
86+
const diffConfig: Linter.BaseConfig = {
8787
plugins: ["diff"],
8888
overrides: [
8989
{
@@ -93,7 +93,7 @@ const diffConfig = {
9393
],
9494
};
9595

96-
const stagedConfig = {
96+
const stagedConfig: Linter.BaseConfig = {
9797
plugins: ["diff"],
9898
overrides: [
9999
{

0 commit comments

Comments
 (0)