-
Notifications
You must be signed in to change notification settings - Fork 427
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
chore: add eslint-plugin-no-attribute-string-literals #5086
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Full Reportsanity
@sanity/types
sanity/desk
@sanity/diff
@sanity/block-tools
@sanity/portable-text-editor
@sanity/mutator
@sanity/cli
@sanity/schema/_internal
@sanity/util/paths
sanity/router
@sanity/util/legacyDateFormat
@sanity/schema
sanity/cli
@sanity/vision
@sanity/util/fs
sanity/_internal
@sanity/util/content
|
Component Testing Report Updated Nov 1, 2023 10:12 PM (UTC)
|
LGTM. It seems the lint issue is due to a literal string in |
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.
Would have preferred to see the unification of TS/JS configs as a separate PR since this makes it harder to test, but approving given we can address any issues that may occur after the merge.
adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
Description
This PR overhauls the ESLint config to:
overrides
section now includes new patterns for matching and disables localization string rules in those areas.eslint-plugin-no-attribute-string-literals
was added to target string literals inside of JSX attributes with an extensive config to prevent false positives. We can also configure this plugin to target certain elements instead of how it works now.What to review
Try out the config. Ensure things work correctly.
Notes for release
N/A