From 7f93d86af33b4e4ef0afde616960012b74834179 Mon Sep 17 00:00:00 2001 From: Valery Bugakov Date: Thu, 14 Apr 2022 04:50:56 -0700 Subject: [PATCH] web: allow empty input for `lint:css:changed` (#33899) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 67f3cefca4e..80bb7180597 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,9 @@ "_lint:js": "DOCSITE_LIST=\"$(./dev/docsite.sh -config doc/docsite.json ls)\" NODE_OPTIONS=\"--max_old_space_size=16192\" eslint", "lint:js:changed": "yarn _lint:js $(git diff --diff-filter=d --name-only main | grep -E '.[tj]sx?$' | xargs)", "lint:js:all": "DOCSITE_LIST=\"$(./dev/docsite.sh -config doc/docsite.json ls)\" dev/foreach-ts-project.sh yarn -s run lint:js --quiet", - "_lint:css": "stylelint", - "lint:css:changed": "yarn _lint:css $(git diff --diff-filter=d --name-only main | grep -E '.s?css$' | xargs)", - "lint:css:all": "yarn _lint:css 'client/*/src/**/*.scss' --quiet", + "_lint:css": "stylelint --quiet", + "lint:css:changed": "yarn _lint:css --allow-empty-input \"*.none\" $(git diff --diff-filter=d --name-only main | grep -E '.s?css$' | xargs)", + "lint:css:all": "yarn _lint:css 'client/*/src/**/*.scss'", "lint:graphql": "graphql-schema-linter", "build-ts": "tsc -b tsconfig.all.json", "build-web": "yarn workspace @sourcegraph/web run build",