diff --git a/package.json b/package.json index 1848024778536..0e668b676b0e8 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",