File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,6 @@ class ConfigGenerator {
235
235
loader : 'eslint-loader' ,
236
236
exclude : / n o d e _ m o d u l e s / ,
237
237
enforce : 'pre' ,
238
- cache : true ,
239
238
options : eslintLoaderUtil . getOptions ( this . webpackConfig )
240
239
} ) ;
241
240
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ module.exports = {
21
21
loaderFeatures . ensurePackagesExist ( 'eslint' ) ;
22
22
23
23
const eslintLoaderOptions = {
24
+ cache : true ,
24
25
parser : 'babel-eslint' ,
25
26
emitWarning : true ,
26
27
'import/resolver' : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ describe('loaders/eslint', () => {
28
28
config . enableEslintLoader ( ) ;
29
29
const actualOptions = eslintLoader . getOptions ( config ) ;
30
30
31
- expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 3 ) ;
31
+ expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 4 ) ;
32
32
} ) ;
33
33
34
34
it ( 'getOptions() with extra options' , ( ) => {
@@ -39,7 +39,7 @@ describe('loaders/eslint', () => {
39
39
40
40
const actualOptions = eslintLoader . getOptions ( config ) ;
41
41
42
- expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 4 ) ;
42
+ expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 5 ) ;
43
43
expect ( actualOptions . extends ) . to . equal ( 'airbnb' ) ;
44
44
} ) ;
45
45
@@ -51,7 +51,7 @@ describe('loaders/eslint', () => {
51
51
52
52
const actualOptions = eslintLoader . getOptions ( config ) ;
53
53
54
- expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 3 ) ;
54
+ expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 4 ) ;
55
55
expect ( actualOptions . emitWarning ) . to . equal ( false ) ;
56
56
} ) ;
57
57
You can’t perform that action at this time.
0 commit comments