Skip to content

Commit 56bd615

Browse files
committed
Use a plain object instead of a top-level function
1 parent 404b825 commit 56bd615

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugin/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const pa11y = require('pa11y');
99
const path = require('path');
1010
const pluginCore = require('./pluginCore');
1111

12-
function netlifyPlugin(conf) {
13-
return {
12+
module.exports = {
1413
name: 'netlify-plugin-a11y',
1514
async onPostBuild({
1615
pluginConfig: { checkPaths, resultMode = 'error', debugMode },
@@ -74,7 +73,4 @@ function netlifyPlugin(conf) {
7473
}
7574
}
7675
}
77-
};
7876
}
79-
80-
module.exports = netlifyPlugin;

0 commit comments

Comments
 (0)