question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[rule] inclusive-language

See original GitHub issue

Please describe what the rule should do:

The rule should identify a list of terms that are not inclusive and offer suggestions for terms that are more inclusive and have similar connotation.

What new ECMAScript feature does this rule relate to?

None.

What category of rule is this? (place an “X” next to just one item)

[ ] Warns about a potential error (problem) [x] Suggests an alternate way of doing something (suggestion) [ ] Other (please specify:)

Provide 2-3 code examples that this rule will warn about:

const blacklist = []; // blacklist is not an inclusive term, the following terms offer similar connotation with a more inclusive inferred meaning. (blocklist, excludelist)

if(badActor) {
 blacklist.push(badActor);
}

Why should this rule be included in ESLint (instead of a plugin)?

As a main source of linting javascript in the community, having this rule be central to how our community operates and is inclusive would set a precedent for others moving away from terms that are not inclusive and don’t offer safe spaces for people to work in.

Are you willing to submit a pull request to implement this rule?

Yes.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wooormcommented, Jun 21, 2020

Yes, there’s danger, and language is super complex, and maybe it doesn’t meet ESLint’s standard (although stylistic doesn’t do the problem justice). Still, whether something is complex doesn’t mean one shouldn’t try. I think ESLint could reach a broad audience and it would be super cool if ESLint took a stand on blacklist!

0reactions
ljharbcommented, Jun 21, 2020

To be clear; I think folks should use a meaningful name, and “whitelist” and “blacklist” isn’t actually describing what you’re using the list for. I just don’t think an eslint rule is the best way to make that change happen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Quick Guide to Using Inclusive Language General Rules of ...
A Quick Guide to Using Inclusive Language. General Rules of Thumb. • Use language that reflects what people call themselves. For example, taking...
Read more >
Inclusive Language Guidelines
These guidelines aim to raise awareness, guide learning, and support the use of culturally sensitive terms and phrases that center the voices and ......
Read more >
inclusive_language Reference
Identifiers should use inclusive language that avoids discrimination against groups of people based on race, gender, or socioeconomic status.
Read more >
Guidelines for gender-inclusive language in English
Best practices/strategies · 1. Use non-discriminatory language · 2. Make gender visible when it is relevant for communication · 3. Do not make...
Read more >
Inclusive Language: How To Use and Promote It at Your ...
Inclusive language is the words and phrases you use that avoid biases, slang, and expressions that discriminate against groups of people based ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found