-
Notifications
You must be signed in to change notification settings - Fork 78
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
LF-3085: Add a linter for translations files #3020
LF-3085: Add a linter for translations files #3020
Conversation
1441653
to
2ffd003
Compare
63ce6b7
to
0ec9f95
Compare
0ec9f95
to
69db8b7
Compare
49f32ab
to
69db8b7
Compare
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.
Ohhh okay I totally missed the most important part of what you were saying this morning about how it shows a bunch of errors 😄 I didn't catch that it lists all the errors and there is no subsequent auto-fixing capability for this package!
Well it's a great improvement in terms of safety and that's awesome that it works for forks! I'm still curious if it can be bypassed by using the GitHub editor UI, but I think we could also resolve to never do that for translation files in the future 😁
Thank you @kathyavini! |
@SayakaOno I was thinking specifically the merge conflict editor -- although I didn't write that very clearly at all! -- because I wasn't sure if hitting submit on that triggers a |
I suggested a change against my PR, committed the change and it triggered the checks... When you resolve conflicts, you make a commit (I think...), so I'm assuming the same thing will happen...🤞 |
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.
Looks good!
Conflicts were generated when PR #3020 was merged, which installed eslint-plugin-json
Description
I found that some checks are already running against json files in pre-commit. I assumed asking translators to do
npm install
to run pre-commit would not be a good idea and decided to add a github workflow so that we will not be able to merge PRs that have invalid JSON files..eslintrc.json
to use eslint-plugin-jsonJira link: https://lite-farm.atlassian.net/browse/LF-3085
Type of change
How Has This Been Tested?
Created PRs with:
Checklist: