Skip to content

Commit 04bf315

Browse files
authored
fix eslint config error when run gulp scripts
akveo#161 fix eslint config error when run gulp scripts in win10 or does not assign any custom eslint config.(mac os work fine) for example: if you clone blur-admin run in visual studio (restore all package) or any way run gulp scripts will reappear this error. blur-admin\node_modules.1.10.3@eslint\lib\config\config-file.js:332 throw e; ^ Error: Cannot read config package: eslint-config-defaults/configurations/eslint Error: Cannot find module 'eslint-config-defaults/configurations/eslint'
1 parent 1f81f3b commit 04bf315

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: package.json

+5
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,10 @@
4444
},
4545
"scripts": {
4646
"postinstall": "bower install"
47+
},
48+
"eslintConfig": {
49+
"globals": {
50+
"window": true
51+
}
4752
}
4853
}

0 commit comments

Comments
 (0)