From 8af940d69bf9eb35bcc70fbc533abdcf721ea209 Mon Sep 17 00:00:00 2001 From: Shipow Date: Wed, 17 Jun 2020 16:09:58 +0200 Subject: [PATCH] fix(lint): Disable import/no-common for percy --- cypress/plugins/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 5015f2d1c..b5bd572bb 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -1,7 +1,6 @@ -let percyHealthCheck = require("@percy/cypress/task"); +/* eslint-disable import/no-commonjs */ +const percyHealthCheck = require('@percy/cypress/task'); -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on("task", percyHealthCheck); -}; \ No newline at end of file +module.exports = (on) => { + on('task', percyHealthCheck); +};