web: allow empty input for lint:css:changed (#33899)

This commit is contained in:
Valery Bugakov 2022-04-14 04:50:56 -07:00 committed by GitHub
parent 5ac5c8e1a1
commit 7f93d86af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",