-
Notifications
You must be signed in to change notification settings - Fork 11
[CLOV289][Fix Alert]Replace gulp-jsonlint with eslint #446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request removes the outdated gulp-jsonlint dependency and replaces it with ESLint for JSON linting. Key changes include:
- Updating gulpfiles for Web, iOS, and Android to replace gulp-jsonlint with exec-based ESLint calls.
- Adjusting JSON files to remove trailing commas for valid JSON.
- Modifying package.json and ESLint configuration to support JSON linting.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
packages/bpk-foundations-web/gulpfile.mjs | Replaced gulp-jsonlint with ESLint-based linting task. |
packages/bpk-foundations-ios/gulpfile.mjs | Replaced gulp-jsonlint with ESLint-based linting task. |
packages/bpk-foundations-android/gulpfile.mjs | Replaced gulp-jsonlint with ESLint-based linting task. |
packages/bpk-foundations-common/base/colors/*.json | Removed trailing commas for JSON validity. |
package.json | Updated lint scripts and dependencies to include JSON linting. |
.eslintrc.json | Added JSON file override rules for ESLint. |
Comments suppressed due to low confidence (1)
package.json:30
- Ensure the updated lint script for JSON files integrates seamlessly with the existing linting workflows and tooling.
"lint": "npm run lint:js && npm run lint:scss && npm run lint:json",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ticket Link:
https://skyscanner.atlassian.net/browse/CLOV-289?atlOrigin=eyJpIjoiMjQwMGViYjU5OWI5NGVlN2E4ZjI5NmViN2FhMjVjNDQiLCJwIjoiaiJ9
Problem:
gulp-jsonlint
is too old and doesn't support new versions anymoregulp-jsonlint
cannot be updated ,but transitive dependency underscore 1.6.0 is introducedSolution:
Why not gulp-eslint:
Remember to include the following changes:
README.md