Fix ESLint rules

This commit is contained in:
Pig Fang 2019-03-18 14:36:43 +08:00
parent 30e07a9c3b
commit b6668a8eeb

View File

@ -5,6 +5,7 @@ module.exports = {
const args = node.arguments
if (
node.callee.name === 'test' &&
args.length >= 2 &&
args[0].type === 'Literal' &&
args[1].type === 'ArrowFunctionExpression'
) {