From 56bd61596c6c5707834b7f1b5eaea6b963c698c4 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Fri, 1 May 2020 14:44:44 +0200 Subject: [PATCH] Use a plain object instead of a top-level function --- plugin/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugin/index.js b/plugin/index.js index 8392953..a8fd713 100644 --- a/plugin/index.js +++ b/plugin/index.js @@ -9,8 +9,7 @@ const pa11y = require('pa11y'); const path = require('path'); const pluginCore = require('./pluginCore'); -function netlifyPlugin(conf) { - return { +module.exports = { name: 'netlify-plugin-a11y', async onPostBuild({ pluginConfig: { checkPaths, resultMode = 'error', debugMode }, @@ -74,7 +73,4 @@ function netlifyPlugin(conf) { } } } - }; } - -module.exports = netlifyPlugin;