File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const lintText = async (string, options) => {
53
53
filePath
54
54
&& (
55
55
micromatch . isMatch ( path . relative ( cwd , filePath ) , ignorePatterns )
56
- || isGitIgnoredSync ( { cwd, ignore : ignorePatterns } ) ( filePath )
56
+ || isGitIgnoredSync ( { cwd} ) ( filePath )
57
57
)
58
58
) {
59
59
return getIgnoredReport ( filePath ) ;
@@ -87,16 +87,11 @@ const lintFiles = async (patterns, options) => {
87
87
for ( const options of filesWithOptions ) {
88
88
const { filePath, eslintOptions} = options ;
89
89
const { cwd, baseConfig : { ignorePatterns} } = eslintOptions ;
90
- if ( filePath
91
- && (
92
- micromatch . isMatch ( path . relative ( cwd , filePath ) , ignorePatterns )
93
- || isGitIgnoredSync ( { cwd, ignore : ignorePatterns } ) ( filePath )
94
- ) ) {
95
- continue ;
96
- }
97
-
98
- // eslint-disable-next-line no-await-in-loop
99
- if ( ( await eslint . isPathIgnored ( filePath ) ) ) {
90
+ if (
91
+ micromatch . isMatch ( path . relative ( cwd , filePath ) , ignorePatterns )
92
+ // eslint-disable-next-line no-await-in-loop
93
+ || await eslint . isPathIgnored ( filePath )
94
+ ) {
100
95
continue ;
101
96
}
102
97
You can’t perform that action at this time.
0 commit comments