Skip to content

Fixes #669: use the language-tags package to check the lang rule #670

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

Merged
merged 4 commits into from
Jun 15, 2020
Merged

Fixes #669: use the language-tags package to check the lang rule #670

merged 4 commits into from
Jun 15, 2020

Conversation

imtsuki
Copy link
Contributor

@imtsuki imtsuki commented Mar 13, 2020

The language-tags package provides language tag validation functionality based on the latest IANA language subtag registry.

Instead of manually parsing tags like before, this PR makes use of this package and makes the lang rule more exhaustive and more robust. File src/util/attributes/ISO.json is removed then.

Signed-off-by: imtsuki [email protected]

The `language-tags` package provides language tag validation
functionality based on the latest IANA language subtag registry.

This PR makes use of this package instead of manually parsing tags
like before. File `src/util/attributes/ISO.json` is removed then.

Signed-off-by: imtsuki <[email protected]>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 99.483% when pulling 42a2016 on imtsuki:fix-lang-rule into 7bcea20 on evcohen:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 99.483% when pulling 42a2016 on imtsuki:fix-lang-rule into 7bcea20 on evcohen:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 99.483% when pulling 42a2016 on imtsuki:fix-lang-rule into 7bcea20 on evcohen:master.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great to me

@ljharb ljharb requested a review from jessebeach March 13, 2020 17:19
@imtsuki
Copy link
Contributor Author

imtsuki commented Jun 6, 2020

As there's no response for a while, I'll close this PR.

@imtsuki imtsuki closed this Jun 6, 2020
@ljharb
Copy link
Member

ljharb commented Jun 6, 2020

Let’s please leave it open; there’s no expiration date on PRs and I’d still like to get it in :-)

@ljharb ljharb reopened this Jun 6, 2020
@jessebeach
Copy link
Collaborator

As there's no response for a while, I'll close this PR.

@imtsuki apologies for the delay in response. This is a great change; thank you for proposing it!

Co-authored-by: Jordan Harband <[email protected]>
@jessebeach jessebeach merged commit e4ba839 into jsx-eslint:master Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants