We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a654f7 + 872e554 commit 0270c1aCopy full SHA for 0270c1a
src/cli/common.js
@@ -76,7 +76,8 @@ function cli(api){
76
function filterFiles(files, options) {
77
var excludeList = options["exclude-list"],
78
excludeFiles = [],
79
- filesToLint = files;
+ filesToLint = files.map(api.getFullPath),
80
+ fullPath;
81
82
83
if (excludeList) {
@@ -91,8 +92,9 @@ function cli(api){
91
92
93
// Remove the excluded files from the list of files to lint
94
excludeFiles.forEach(function(value){
- if (filesToLint.indexOf(value) > -1) {
95
- filesToLint.splice(filesToLint.indexOf(value),1);
+ fullPath = api.getFullPath(value);
96
+ if (filesToLint.indexOf(fullPath) > -1) {
97
+ filesToLint.splice(filesToLint.indexOf(fullPath),1);
98
}
99
});
100
0 commit comments