File tree Expand file tree Collapse file tree 6 files changed +23
-22
lines changed Expand file tree Collapse file tree 6 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 1- npx --no-install commitlint --edit $1
1+ commitlint --edit $1
Original file line number Diff line number Diff line change 1- npx --no-install lint-staged
1+ lint-staged
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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- } ;
3326type Stylelint = {
3427 lint : ( options : LinterOptions ) => Promise < LinterResult > ;
3528 formatters : {
@@ -41,8 +34,15 @@ type LinterOptions = import('stylelint').LinterOptions;
4134type LinterResult = import ( 'stylelint' ) . LinterResult ;
4235type Formatter = import ( 'stylelint' ) . Formatter ;
4336type FormatterType = import ( 'stylelint' ) . FormatterType ;
37+ type Options = import ( './options' ) . Options ;
4438type AsyncTask = ( ) => Promise < void > ;
4539type LintTask = ( files : string | string [ ] ) => Promise < LintResult [ ] > ;
40+ type Linter = {
41+ stylelint : Stylelint ;
42+ lintFiles : LintTask ;
43+ cleanup : AsyncTask ;
44+ threads : number ;
45+ } ;
4646type Worker = JestWorker & {
4747 lintFiles : LintTask ;
4848} ;
Original file line number Diff line number Diff 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 > ;
3834type Compiler = import ( 'webpack' ) . Compiler ;
35+ type Compilation = import ( 'webpack' ) . Compilation ;
3936type Stylelint = import ( './getStylelint' ) . Stylelint ;
4037type LintResult = import ( './getStylelint' ) . LintResult ;
4138type LinterResult = import ( './getStylelint' ) . LinterResult ;
4239type Formatter = import ( './getStylelint' ) . Formatter ;
4340type FormatterType = import ( './getStylelint' ) . FormatterType ;
41+ type Options = import ( './options' ) . Options ;
4442type GenerateReport = ( compilation : Compilation ) => Promise < void > ;
4543type Report = {
4644 errors ?: StylelintError ;
4745 warnings ?: StylelintError ;
4846 generateReportAsset ?: GenerateReport ;
4947} ;
48+ type Reporter = ( ) => Promise < Report > ;
49+ type Linter = ( files : string | string [ ] ) => void ;
5050type LintResultMap = {
5151 [ files : string ] : LintResult ;
5252} ;
You can’t perform that action at this time.
0 commit comments