From 0ec4b8c0ed58209e8de041d42e60c46163cc3806 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 21 Dec 2020 12:17:08 +0700 Subject: [PATCH] Enforce inclusive wording --- config/plugins.js | 14 ++++++++++++++ test/lint-files.js | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/config/plugins.js b/config/plugins.js index 0893cbf9..d9c37325 100644 --- a/config/plugins.js +++ b/config/plugins.js @@ -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 diff --git a/test/lint-files.js b/test/lint-files.js index 04fb87d2..3459c2b0 100644 --- a/test/lint-files.js +++ b/test/lint-files.js @@ -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');