Skip to content
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

feat: migrate a new rule 'use-read-only-spread' #472

Merged
merged 1 commit into from Apr 6, 2021
Merged

feat: migrate a new rule 'use-read-only-spread' #472

merged 1 commit into from Apr 6, 2021

Conversation

mrtnzlml
Copy link
Contributor

@mrtnzlml mrtnzlml commented Mar 15, 2021

This commit adds a new rule 'use-read-only-spread' originally developed and used in adeira/universe.

It prevents users from accidentally creating an object which is no longer read-only because of Flow spread operator.

TODO:

This commit adds a new rule 'use-read-only-spread' originally developed and used here: https://github.com/adeira/universe/blob/91ba39d4f59ac0376121b67e443f474a6ade4feb/src/eslint-plugin-adeira/src/rules/flow-use-readonly-spread.js

It prevents users from accidentally creating an object which is no longer read-only because of Flow spread operator.
@mrtnzlml mrtnzlml marked this pull request as ready for review March 17, 2021 13:45
@mrtnzlml
Copy link
Contributor Author

mrtnzlml commented Apr 5, 2021

Hi @gajus! Here is another addition to this plugin if you have some extra time for a review. Thanks! 😎

@gajus gajus merged commit 998eb5a into gajus:master Apr 6, 2021
@gajus
Copy link
Owner

gajus commented Apr 6, 2021

Thank you

@gajus
Copy link
Owner

gajus commented Apr 6, 2021

🎉 This PR is included in version 5.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Apr 6, 2021
@mrtnzlml mrtnzlml deleted the migrate-use-read-only-spread branch April 6, 2021 00:54
mrtnzlml added a commit to adeira/universe that referenced this pull request Apr 6, 2021
This change finishes a migration from our custom `adeira/flow-use-readonly-spread` rule to the official `flowtype/use-read-only-spread` rule. The behavior should stay unchanged since the underlying code is basically identical. See: gajus/eslint-plugin-flowtype#472
kodiakhq bot pushed a commit to adeira/universe that referenced this pull request Apr 6, 2021
This change finishes a migration from our custom `adeira/flow-use-readonly-spread` rule to the official `flowtype/use-read-only-spread` rule. The behavior should stay unchanged since the underlying code is basically identical. See: gajus/eslint-plugin-flowtype#472
adeira-github-bot pushed a commit to adeira/eslint-config-adeira that referenced this pull request Apr 6, 2021
This change finishes a migration from our custom `adeira/flow-use-readonly-spread` rule to the official `flowtype/use-read-only-spread` rule. The behavior should stay unchanged since the underlying code is basically identical. See: gajus/eslint-plugin-flowtype#472

adeira-source-id: bf37c3e6bc3e80b54d97f1c9ac3157139fe76243
adeira-github-bot pushed a commit to adeira/fetch that referenced this pull request Apr 6, 2021
This change finishes a migration from our custom `adeira/flow-use-readonly-spread` rule to the official `flowtype/use-read-only-spread` rule. The behavior should stay unchanged since the underlying code is basically identical. See: gajus/eslint-plugin-flowtype#472

adeira-source-id: bf37c3e6bc3e80b54d97f1c9ac3157139fe76243
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants