1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02:00

Adding yarn scripts for changelog validation (#11868)

This commit is contained in:
ryanml 2021-08-18 08:59:48 -07:00 committed by GitHub
parent a1385b4f41
commit a44d863093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -304,7 +304,7 @@ jobs:
steps:
- run:
name: Validate changelog
command: yarn auto-changelog validate
command: yarn lint:changelog
- when:
condition:
matches:
@ -313,7 +313,7 @@ jobs:
steps:
- run:
name: Validate release candidate changelog
command: yarn auto-changelog validate --rc
command: yarn lint:changelog:rc
test-deps-audit:

View File

@ -48,6 +48,8 @@
"lint:fix": "prettier --write '**/*.json' && eslint . --ext js --cache --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",
"lint:changelog:rc": "auto-changelog validate --rc",
"lint:shellcheck": "./development/shellcheck.sh",
"lint:styles": "stylelint '*/**/*.scss'",
"lint:lockfile": "lockfile-lint --path yarn.lock --allowed-hosts npm yarn github.com codeload.github.com --empty-hostname false --allowed-schemes \"https:\" \"git+https:\"",