Skip to content

Commit 9ea5546

Browse files
authored
chore: update husky hooks (#359)
1 parent ba338d4 commit 9ea5546

File tree

6 files changed

+23
-22
lines changed

6 files changed

+23
-22
lines changed

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no-install commitlint --edit $1
1+
commitlint --edit $1

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no-install lint-staged
1+
lint-staged

package-lock.json

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"eslint-plugin-import": "^2.29.1",
8282
"file-loader": "^6.2.0",
8383
"fs-extra": "^11.2.0",
84-
"husky": "^9.0.11",
84+
"husky": "^9.1.3",
8585
"jest": "^29.7.0",
8686
"lint-staged": "^15.2.7",
8787
"npm-run-all": "^4.1.5",

types/getStylelint.d.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ declare namespace getStylelint {
2323
Worker,
2424
};
2525
}
26-
type Options = import('./options').Options;
27-
type Linter = {
28-
stylelint: Stylelint;
29-
lintFiles: LintTask;
30-
cleanup: AsyncTask;
31-
threads: number;
32-
};
3326
type Stylelint = {
3427
lint: (options: LinterOptions) => Promise<LinterResult>;
3528
formatters: {
@@ -41,8 +34,15 @@ type LinterOptions = import('stylelint').LinterOptions;
4134
type LinterResult = import('stylelint').LinterResult;
4235
type Formatter = import('stylelint').Formatter;
4336
type FormatterType = import('stylelint').FormatterType;
37+
type Options = import('./options').Options;
4438
type AsyncTask = () => Promise<void>;
4539
type LintTask = (files: string | string[]) => Promise<LintResult[]>;
40+
type Linter = {
41+
stylelint: Stylelint;
42+
lintFiles: LintTask;
43+
cleanup: AsyncTask;
44+
threads: number;
45+
};
4646
type Worker = JestWorker & {
4747
lintFiles: LintTask;
4848
};

types/linter.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ declare namespace linter {
3131
LintResultMap,
3232
};
3333
}
34-
type Options = import('./options').Options;
35-
type Compilation = import('webpack').Compilation;
36-
type Linter = (files: string | string[]) => void;
37-
type Reporter = () => Promise<Report>;
3834
type Compiler = import('webpack').Compiler;
35+
type Compilation = import('webpack').Compilation;
3936
type Stylelint = import('./getStylelint').Stylelint;
4037
type LintResult = import('./getStylelint').LintResult;
4138
type LinterResult = import('./getStylelint').LinterResult;
4239
type Formatter = import('./getStylelint').Formatter;
4340
type FormatterType = import('./getStylelint').FormatterType;
41+
type Options = import('./options').Options;
4442
type GenerateReport = (compilation: Compilation) => Promise<void>;
4543
type Report = {
4644
errors?: StylelintError;
4745
warnings?: StylelintError;
4846
generateReportAsset?: GenerateReport;
4947
};
48+
type Reporter = () => Promise<Report>;
49+
type Linter = (files: string | string[]) => void;
5050
type LintResultMap = {
5151
[files: string]: LintResult;
5252
};

0 commit comments

Comments
 (0)