amplify-category-api
amplify-category-api copied to clipboard
fix: lint script to emit error
trafficstars
Description of changes
Fix the issue of lint error not emitting
CDK / CloudFormation Parameters Changed
Issue #, if available
Description of how you validated changes
Checklist
- [x] PR description included
- [x]
yarn testpasses - [ ] Tests are changed or added
- [ ] Relevant documentation is changed or added (and PR referenced)
- [ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
- [ ] Any CDK or CloudFormation parameter changes are called out explicitly
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
I've tested this with a couple of open PRs.
- Has JS/TS files to lint:
curl -fsSL https://api.github.com/repos/aws-amplify/amplify-category-api/pulls/2666/files | jq -r '.[] | select(.status!="removed") | .filename' | grep -E '\.(js|jsx|ts|tsx)$' | xargs yarn eslint || true - Does not have JS/TS files to lint:
curl -fsSL https://api.github.com/repos/aws-amplify/amplify-category-api/pulls/1665/files | jq -r '.[] | select(.status!="removed") | .filename' | grep -E '\.(js|jsx|ts|tsx)$' | xargs yarn eslint || true