Skip to content

Commit

Permalink
Enforce inclusive wording
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 21, 2020
1 parent ae89fd1 commit 0ec4b8c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions config/plugins.js
Expand Up @@ -42,6 +42,20 @@ module.exports = {
checkShorthandImports: false,
extendDefaultReplacements: false,
replacements: {
// https://thenextweb.com/dd/2020/07/13/linux-kernel-will-no-longer-use-terms-blacklist-and-slave/
whitelist: {
allowList: true
},
blacklist: {
denyList: true
},
master: {
main: true
},
slave: {
secondary: true
},

// Not part of `eslint-plugin-unicorn`
application: {
app: true
Expand Down
2 changes: 1 addition & 1 deletion test/lint-files.js
Expand Up @@ -9,7 +9,7 @@ const hasRule = (results, filePath, ruleId) => {
return result ? result.messages.some(x => x.ruleId === ruleId) : false;
};

test('only accepts whitelisted extensions', async t => {
test('only accepts allowed extensions', async t => {
// Markdown files will always produce linter errors and will not be going away
const mdGlob = path.join(__dirname, '..', '*.md');

Expand Down

0 comments on commit 0ec4b8c

Please sign in to comment.