Skip to content

Commit d4263fb

Browse files
rename whitelist to allow (#67)
1 parent a217e2e commit d4263fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can add rules:
4040
}
4141
```
4242

43-
You can whitelist globals provided by Cypress:
43+
You can allow certain globals provided by Cypress:
4444

4545
```json
4646
{

lib/rules/no-assigning-return-values.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
},
4040
}
4141

42-
const whitelistedCommands = {
42+
const allowedCommands = {
4343
now: true,
4444
spy: true,
4545
state: true,
@@ -61,7 +61,7 @@ function isCypressCommandDeclaration (declarator) {
6161

6262
const parent = get(object, 'parent.property.name') || get(declarator, 'id.name')
6363

64-
if (commandName && (whitelistedCommands[commandName] || whitelistedCommands[parent])) return
64+
if (commandName && (allowedCommands[commandName] || allowedCommands[parent])) return
6565

6666
return object.name === 'cy'
6767
}

0 commit comments

Comments
 (0)