Created
March 26, 2020 10:10
-
-
Save qubyte/ccc42238b55bd3b55ece158f9ffcbaa4 to your computer and use it in GitHub Desktop.
Disallow .only in mocha test files.
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
{ | |
"env": { | |
"mocha": true | |
}, | |
"rules": { | |
"max-nested-callbacks": ["error", 7], | |
"no-restricted-properties": [ | |
"error", | |
{ "object": "describe", "property": "only" }, | |
{ "object": "context", "property": "only" }, | |
{ "object": "it", "property": "only" } | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment