Skip to content

Commit b705094

Browse files
committed
Automatically lint *.cjs files
Fixes: standard/standard#1009
1 parent 30ece77 commit b705094

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

bin/cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function Cli (opts) {
5050
Usage:
5151
${opts.cmd} <flags> [FILES...]
5252
53-
If FILES is omitted, then all JavaScript source files (*.js, *.jsx, *.mjs)
53+
If FILES is omitted, all JavaScript source files (*.js, *.jsx, *.mjs, *.cjs)
5454
in the current working directory are checked, recursively.
5555
5656
Certain paths (node_modules/, coverage/, vendor/, *.min.js, bundle.js, and

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ var HOME_OR_TMP = os.homedir() || os.tmpdir()
1212
var DEFAULT_PATTERNS = [
1313
'**/*.js',
1414
'**/*.jsx',
15-
'**/*.mjs'
15+
'**/*.mjs',
16+
'**/*.cjs'
1617
]
1718

1819
var DEFAULT_IGNORE = [

0 commit comments

Comments
 (0)