From 139a67fca40026ca0cafb585dc2d7029b5aec982 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 5 Jan 2022 13:38:51 -0330 Subject: [PATCH] Include style lints in `lint:fix` script (#13217) The `lint:fix` script now also calls `yarn stylelint --fix`. This step was omitted previously, despite `stylelint` being part of the `lint` npm script. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0142507ca..e6913f4a0 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "sentry:publish": "node ./development/sentry-publish.js", "lint:prettier": "prettier '**/*.json'", "lint": "yarn lint:prettier --check '**/*.json' && eslint . --ext js,snap --cache && yarn lint:styles", - "lint:fix": "yarn lint:prettier --write '**/*.json' && eslint . --ext js --cache --fix", + "lint:fix": "yarn lint:prettier --write '**/*.json' && eslint . --ext js --cache --fix && yarn lint:styles --fix", "lint:changed": "{ git ls-files --others --exclude-standard ; git diff-index --name-only --diff-filter=d HEAD ; } | grep --regexp='[.]js$' | tr '\\n' '\\0' | xargs -0 eslint", "lint:changed:fix": "{ git ls-files --others --exclude-standard ; git diff-index --name-only --diff-filter=d HEAD ; } | grep --regexp='[.]js$' | tr '\\n' '\\0' | xargs -0 eslint --fix", "lint:changelog": "auto-changelog validate",