From 04bf315ad9fc3c50fb09d9fe78ca26a02d4aee8f Mon Sep 17 00:00:00 2001 From: zff Date: Wed, 3 May 2017 20:55:01 +0800 Subject: [PATCH] fix eslint config error when run gulp scripts https://github.com/akveo/blur-admin/pull/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' --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index d3a22477a..0573a726b 100644 --- a/package.json +++ b/package.json @@ -44,5 +44,10 @@ }, "scripts": { "postinstall": "bower install" + }, + "eslintConfig": { + "globals": { + "window": true + } } }