Fix ESLint rules
This commit is contained in:
parent
30e07a9c3b
commit
b6668a8eeb
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
const args = node.arguments
|
const args = node.arguments
|
||||||
if (
|
if (
|
||||||
node.callee.name === 'test' &&
|
node.callee.name === 'test' &&
|
||||||
|
args.length >= 2 &&
|
||||||
args[0].type === 'Literal' &&
|
args[0].type === 'Literal' &&
|
||||||
args[1].type === 'ArrowFunctionExpression'
|
args[1].type === 'ArrowFunctionExpression'
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user