File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ module.exports = function(args) {
102
102
103
103
if ( typeof ignorePattern === 'string' ) {
104
104
opts . ignorePattern = new RegExp ( ignorePattern ) ;
105
- } else if ( typeof ignorePattern === 'object' && ignorePattern . hasOwnProperty ( 'public' ) ) {
105
+ } else if ( typeof ignorePattern === 'object' && Reflect . apply ( Object . prototype . hasOwnProperty , ignorePattern , [ 'public' ] ) ) {
106
106
opts . ignorePattern = new RegExp ( ignorePattern . public ) ;
107
107
}
108
108
@@ -131,7 +131,7 @@ module.exports = function(args) {
131
131
132
132
if ( typeof ignorePattern === 'string' ) {
133
133
opts . ignorePattern = new RegExp ( ignorePattern ) ;
134
- } else if ( typeof ignorePattern === 'object' && ignorePattern . hasOwnProperty ( dir ) ) {
134
+ } else if ( typeof ignorePattern === 'object' && Reflect . apply ( Object . prototype . hasOwnProperty , ignorePattern , [ dir ] ) ) {
135
135
opts . ignorePattern = new RegExp ( ignorePattern [ dir ] ) ;
136
136
}
137
137
Original file line number Diff line number Diff line change 31
31
"devDependencies" : {
32
32
"babel-eslint" : " ^10.0.1" ,
33
33
"chai" : " ^4.2.0" ,
34
- "eslint" : " ^5. 6.1" ,
34
+ "eslint" : " ^6.1.0 " ,
35
35
"eslint-config-hexo" : " ^3.0.0" ,
36
36
"mocha" : " ^6.0.2" ,
37
37
"nyc" : " ^14.1.1"
You can’t perform that action at this time.
0 commit comments