Skip to content

Commit

Permalink
fix eslint config error when run gulp scripts
Browse files Browse the repository at this point in the history
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'
  • Loading branch information
zff1222 authored May 3, 2017
1 parent 1f81f3b commit 04bf315
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@
},
"scripts": {
"postinstall": "bower install"
},
"eslintConfig": {
"globals": {
"window": true
}
}
}

0 comments on commit 04bf315

Please sign in to comment.