Skip to content

Commit

Permalink
Destructure pluginCore when importing
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmason committed Nov 18, 2021
1 parent 5f1c004 commit 8bfa5ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check

const { getConfiguration } = require('./config')
const pluginCore = require('./pluginCore')
const { generateFilePaths, runPa11y } = require('./pluginCore')
const pico = require('picocolors')

module.exports = {
Expand All @@ -11,13 +11,13 @@ module.exports = {
constants,
inputs,
})
const htmlFilePaths = await pluginCore.generateFilePaths({
const htmlFilePaths = await generateFilePaths({
publishDir,
ignoreDirectories,
fileAndDirPaths: checkPaths,
})

const { report, issueCount } = await pluginCore.runPa11y({
const { report, issueCount } = await runPa11y({
build,
htmlFilePaths,
wcagLevel,
Expand Down

0 comments on commit 8bfa5ae

Please sign in to comment.