File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
packages/@vue/cli-plugin-eslint Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,6 @@ const renamedArgs = {
17
17
config : 'configFile'
18
18
}
19
19
20
- const defaultFilesToLint = [
21
- 'src' ,
22
- 'tests' ,
23
- // root config files
24
- '*.js' ,
25
- // .eslintrc files (ignored by default)
26
- '.*.js' ,
27
- '{src,tests}/**/.*.js'
28
- ] . filter ( pattern => globby . sync ( pattern ) . length )
29
-
30
20
module . exports = function lint ( args = { } , api ) {
31
21
const path = require ( 'path' )
32
22
const cwd = api . resolve ( '.' )
@@ -41,6 +31,16 @@ module.exports = function lint (args = {}, api) {
41
31
cwd
42
32
} , argsConfig )
43
33
34
+ const defaultFilesToLint = [
35
+ 'src' ,
36
+ 'tests' ,
37
+ // root config files
38
+ '*.js' ,
39
+ // .eslintrc files (ignored by default)
40
+ '.*.js' ,
41
+ '{src,tests}/**/.*.js'
42
+ ] . filter ( pattern => globby . sync ( path . join ( cwd , pattern ) ) . length )
43
+
44
44
const engine = new CLIEngine ( config )
45
45
const files = args . _ && args . _ . length
46
46
? args . _
You can’t perform that action at this time.
0 commit comments