Skip to content

Commit 015ce36

Browse files
committedOct 29, 2020
Add --ext command line option
1 parent 74457e3 commit 015ce36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎bin/cmd.js

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function Cli (opts) {
3434
'global',
3535
'plugin',
3636
'parser',
37+
'ext',
3738
'env'
3839
]
3940
})
@@ -66,6 +67,7 @@ Flags:
6667
6768
Flags (advanced):
6869
--stdin Read file text from stdin
70+
--ext Specify JavaScript file extensions
6971
--global Declare global variable
7072
--plugin Use custom eslint plugin
7173
--env Use custom eslint environment
@@ -83,6 +85,7 @@ Flags (advanced):
8385

8486
var lintOpts = {
8587
fix: argv.fix,
88+
extensions: argv.ext,
8689
globals: argv.global,
8790
plugins: argv.plugin,
8891
envs: argv.env,

0 commit comments

Comments
 (0)
Please sign in to comment.