Ignore vale check for ADOPTERS.md
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -40,14 +40,13 @@ const getFilesToLint = () => {
|
||||
command = `git ls-files | .\\node_modules\\.bin\\shx grep ".md"`;
|
||||
}
|
||||
|
||||
const ignored = ['', 'ADOPTERS.md'];
|
||||
return execSync(command, {
|
||||
stdio: ['ignore', 'pipe', 'inherit'],
|
||||
})
|
||||
.toString()
|
||||
.split('\n')
|
||||
.filter(function (el) {
|
||||
return el !== '';
|
||||
});
|
||||
.filter(el => !ignored.includes(el));
|
||||
};
|
||||
|
||||
// Proceed with the script only if Vale linter is installed. Limit the friction and surprises caused by the script.
|
||||
|
||||
Reference in New Issue
Block a user