-
Notifications
You must be signed in to change notification settings - Fork 0
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
S/fixes and suggestions #1
Conversation
I thought the new default was main? Or is that how they have their repo setup? |
That's how the source repo was configured https://github.com/muenzpraeger/eslint-plugin-inclusive-language/branches |
lib/rules/use-inclusive-words.js
Outdated
const RULE_CATEGORY = 'Language'; | ||
const RULE_DESCRIPTION = 'highlights where non-inclusive language is used'; | ||
// eslint-disable-next-line no-unused-vars | ||
const SUGGESTION_MESSAGE = "Replace word '{{word}}'' with '{{suggestion}}.'"; // Currently not in use | ||
const SUGGESTION_MESSAGE = "Replace word '{{word}}' with '{{suggestion}}.'"; // Currently not in use |
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.
Is this comment still valid?
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.
It's not!
suggestion: result[0].suggestion | ||
}; | ||
const { word, explanation } = result; | ||
// backwards-compatibility with singular suggestions |
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.
fancy
@@ -117,6 +142,9 @@ module.exports = { | |||
Identifier(node) { | |||
validateIfInclusive(context, node, node.name); | |||
}, | |||
JSXIdentifier(node) { |
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.
👍
Nice work! |
7ae6b35
to
a98c1c2
Compare
No description provided.