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

Rename allowList/denyList in prevent-abbreviations #620

Merged
merged 2 commits into from
Nov 7, 2021

Conversation

fregante
Copy link
Member

@fregante fregante commented Oct 16, 2021

Arrays don't necessarily need to be named list. These lists are can just be named allow/allowed/include or exclude/except/exclusions. deny itself feels kinda awkward too because it usually applies to "access" only, not other kinds of generic exclusions lists.

@fregante fregante changed the title Rename allowList/denyList Rename allowList/denyList in prevent-abbreviations Oct 16, 2021
@sindresorhus
Copy link
Member

@fregante
Copy link
Member Author

sindresorhus/eslint-plugin-unicorn#942 (comment) 😃

Every case has its own solution, but we usually don't append list to array names.

@sindresorhus
Copy link
Member

inclusions and exclusions, to be coherent?

@sindresorhus
Copy link
Member

@fregante Intentional that you didn't do inclusions?

@fregante
Copy link
Member Author

fregante commented Nov 5, 2021

Yes, I think include/exclude is more common/readable/short

@sindresorhus sindresorhus merged commit 1d2409f into xojs:main Nov 7, 2021
@fregante fregante deleted the patch-1 branch November 7, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants