Created
June 28, 2021 07:29
-
-
Save 43081j/62854e3f17c811fb0bd8206d56fb9125 to your computer and use it in GitHub Desktop.
Disallow `it.only` via ESLint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"rules": { | |
"no-restricted-syntax": [ | |
"error", | |
{ | |
"selector": "CallExpression[callee.object.type='Identifier'][callee.object.name='it'][callee.property.type='Identifier'][callee.property.name='only']", | |
"message": "it.only is only allowed during development" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment