File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## v1.0.2
2
+
3
+ * [ Fix ignoreLintWarning mark warnings as errors] ( https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/243 )
4
+
1
5
## v1.0.1
2
6
3
7
* [ Apply rounding to compilation time] ( https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/235 )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fork-ts-checker-webpack-plugin" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " Runs typescript type checker and linter on separate process." ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -800,8 +800,10 @@ class ForkTsCheckerWebpackPlugin {
800
800
file : message . file
801
801
} ;
802
802
803
- if ( message . isWarningSeverity ( ) && ! this . ignoreLintWarnings ) {
804
- compilation . warnings . push ( formatted ) ;
803
+ if ( message . isWarningSeverity ( ) ) {
804
+ if ( ! this . ignoreLintWarnings ) {
805
+ compilation . warnings . push ( formatted ) ;
806
+ }
805
807
} else {
806
808
compilation . errors . push ( formatted ) ;
807
809
}
Original file line number Diff line number Diff line change @@ -93,6 +93,21 @@ function makeCommonTests(useTypescriptIncrementalApi) {
93
93
) ;
94
94
} ) ;
95
95
96
+ it ( 'should not mark warnings as errors when ignoreLintWarnings passed as option' , function ( callback ) {
97
+ const fileName = 'lintingError2' ;
98
+ helpers . testLintAutoFixTest (
99
+ callback ,
100
+ fileName ,
101
+ {
102
+ tslint : true ,
103
+ ignoreLintWarnings : true
104
+ } ,
105
+ ( err , stats ) => {
106
+ expect ( stats . compilation . errors . length ) . to . be . eq ( 0 ) ;
107
+ }
108
+ ) ;
109
+ } ) ;
110
+
96
111
it ( 'should find semantic errors' , function ( callback ) {
97
112
var compiler = createCompiler ( {
98
113
tsconfig : 'tsconfig-semantic-error-only.json'
You can’t perform that action at this time.
0 commit comments