Skip to content

Commit 0ec4b8c

Browse files
committedDec 21, 2020
Enforce inclusive wording
1 parent ae89fd1 commit 0ec4b8c

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
 

Diff for: ‎config/plugins.js

+14
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ module.exports = {
4242
checkShorthandImports: false,
4343
extendDefaultReplacements: false,
4444
replacements: {
45+
// https://thenextweb.com/dd/2020/07/13/linux-kernel-will-no-longer-use-terms-blacklist-and-slave/
46+
whitelist: {
47+
allowList: true
48+
},
49+
blacklist: {
50+
denyList: true
51+
},
52+
master: {
53+
main: true
54+
},
55+
slave: {
56+
secondary: true
57+
},
58+
4559
// Not part of `eslint-plugin-unicorn`
4660
application: {
4761
app: true

Diff for: ‎test/lint-files.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const hasRule = (results, filePath, ruleId) => {
99
return result ? result.messages.some(x => x.ruleId === ruleId) : false;
1010
};
1111

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

0 commit comments

Comments
 (0)
Please sign in to comment.