-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add eslint-plugin-inclusive-language at error level #12
base: main
Are you sure you want to change the base?
Conversation
Rather than adding this to |
@davidtheclark Didn't know about the peer dependency thing, totally cool to make that change. My concern for treating this the way we do react, promise and import is I feel like we should make it the default to error if code includes racist language, rather than asking teams to have to bring in an additional config in order to get this benefit. Is there a way to accomplish that w/o adding this plugin to |
I don't know of one. When I was last digging into this stuff, I thought it was a silly limitation of ESLint's plugin system that shared config packages could not install their own plugins — that the plugins needed to be peer dependencies. That was at least a couple of major versions ago, so I think it's worth checking whether this is in fact possible with ESLint v7. You could use beta releases to try different dependency setups in some sample repos. Seems we have two options:
What do you think? Do you feel good enough about how the plugin works that you think we should jump right to Let's make sure to add documentation to the PR, either way. I also think it might be a good idea to stick with the current branch naming for this PR, then change it in a followup, instead of bundling the two? (I also do not have admin rights to this repo.) |
It seems like this is still in flux, but I found a (somewhat well used?) solution to the transient dependencies problem: https://github.com/microsoft/rushstack/tree/master/eslint/eslint-patch I have no clue who the owner for this repo would be now, but I'd be comfortable adding a |
Also are any of you admins on this repo? We should change it to |
This adds
eslint-plugin-inclusive-language
at the error level, so we're notified when we use uninclusive language such aswhitelist
orblacklist
. Currently this plugin only offers a minimal, basic start, but we can update the package as it grows. https://github.com/muenzpraeger/eslint-plugin-inclusive-language/blob/primary/lib/config/inclusive-words.json.I'm also targeting this PR at a new branch,
main
, that we can use in lieu ofmaster
, but I don't have permissions to change the base branch of this repo.Unsure who should review, so tagging mine own team and devtools.
cc @mapbox/map-design-team @mapbox/developer-tools