File tree 6 files changed +23
-22
lines changed
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 81
81
"eslint-plugin-import" : " ^2.29.1" ,
82
82
"file-loader" : " ^6.2.0" ,
83
83
"fs-extra" : " ^11.2.0" ,
84
- "husky" : " ^9.0.11 " ,
84
+ "husky" : " ^9.1.3 " ,
85
85
"jest" : " ^29.7.0" ,
86
86
"lint-staged" : " ^15.2.7" ,
87
87
"npm-run-all" : " ^4.1.5" ,
Original file line number Diff line number Diff line change @@ -23,13 +23,6 @@ declare namespace getStylelint {
23
23
Worker ,
24
24
} ;
25
25
}
26
- type Options = import ( './options' ) . Options ;
27
- type Linter = {
28
- stylelint : Stylelint ;
29
- lintFiles : LintTask ;
30
- cleanup : AsyncTask ;
31
- threads : number ;
32
- } ;
33
26
type Stylelint = {
34
27
lint : ( options : LinterOptions ) => Promise < LinterResult > ;
35
28
formatters : {
@@ -41,8 +34,15 @@ type LinterOptions = import('stylelint').LinterOptions;
41
34
type LinterResult = import ( 'stylelint' ) . LinterResult ;
42
35
type Formatter = import ( 'stylelint' ) . Formatter ;
43
36
type FormatterType = import ( 'stylelint' ) . FormatterType ;
37
+ type Options = import ( './options' ) . Options ;
44
38
type AsyncTask = ( ) => Promise < void > ;
45
39
type LintTask = ( files : string | string [ ] ) => Promise < LintResult [ ] > ;
40
+ type Linter = {
41
+ stylelint : Stylelint ;
42
+ lintFiles : LintTask ;
43
+ cleanup : AsyncTask ;
44
+ threads : number ;
45
+ } ;
46
46
type Worker = JestWorker & {
47
47
lintFiles : LintTask ;
48
48
} ;
Original file line number Diff line number Diff line change @@ -31,22 +31,22 @@ declare namespace linter {
31
31
LintResultMap ,
32
32
} ;
33
33
}
34
- type Options = import ( './options' ) . Options ;
35
- type Compilation = import ( 'webpack' ) . Compilation ;
36
- type Linter = ( files : string | string [ ] ) => void ;
37
- type Reporter = ( ) => Promise < Report > ;
38
34
type Compiler = import ( 'webpack' ) . Compiler ;
35
+ type Compilation = import ( 'webpack' ) . Compilation ;
39
36
type Stylelint = import ( './getStylelint' ) . Stylelint ;
40
37
type LintResult = import ( './getStylelint' ) . LintResult ;
41
38
type LinterResult = import ( './getStylelint' ) . LinterResult ;
42
39
type Formatter = import ( './getStylelint' ) . Formatter ;
43
40
type FormatterType = import ( './getStylelint' ) . FormatterType ;
41
+ type Options = import ( './options' ) . Options ;
44
42
type GenerateReport = ( compilation : Compilation ) => Promise < void > ;
45
43
type Report = {
46
44
errors ?: StylelintError ;
47
45
warnings ?: StylelintError ;
48
46
generateReportAsset ?: GenerateReport ;
49
47
} ;
48
+ type Reporter = ( ) => Promise < Report > ;
49
+ type Linter = ( files : string | string [ ] ) => void ;
50
50
type LintResultMap = {
51
51
[ files : string ] : LintResult ;
52
52
} ;
You can’t perform that action at this time.
0 commit comments