Skip to content

Commit c4556ef

Browse files
committed
Explicitly typecheck js files
1 parent 8791dd6 commit c4556ef

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-check
2+
13
const DEFAULT_CHECK_PATHS = ['/']
24
const DEFAULT_FAIL_WITH_ISSUES = true
35
const DEFAULT_IGNORE_DIRECTORIES = []

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-check
2+
13
const { getConfiguration } = require('./config')
24
const pluginCore = require('./pluginCore')
35

@@ -17,7 +19,6 @@ module.exports = {
1719

1820
const { report, issueCount } = await pluginCore.runPa11y({
1921
build,
20-
debugMode,
2122
htmlFilePaths,
2223
pa11yOpts,
2324
})

src/pluginCore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-check
2+
13
const pa11y = require('pa11y')
24
const { extname } = require('path')
35
const { isDirectory, isFile } = require('path-type')
@@ -32,8 +34,6 @@ exports.generateFilePaths = async function ({
3234
fileAndDirPaths, // array, mix of html and directories
3335
ignoreDirectories,
3436
absolutePublishDir,
35-
testMode,
36-
debugMode,
3737
}) {
3838
const excludeDirGlobs = ignoreDirectories.map(
3939
// add ! and strip leading slash

0 commit comments

Comments
 (0)