diff --git a/package.json b/package.json index e6094039877d8..b7f12fb88c5d8 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "postbuild": "npm run sass && npm run sass:icons", "dev": "webpack --node-env development --progress", "watch": "webpack --node-env development --progress --watch", - "lint": "eslint apps core", - "lint:fix": "eslint apps core --fix", + "lint": "eslint $(for appdir in $(ls apps); do if ! $(git check-ignore -q $appdir); then echo -n \"$appdir \"; fi; done) core --no-error-on-unmatched-pattern", + "lint:fix": "eslint $(for appdir in $(ls apps); do if ! $(git check-ignore -q $appdir); then echo -n \"$appdir \"; fi; done) core --no-error-on-unmatched-pattern --fix", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage",