Ignore vale check for ADOPTERS.md

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-03-18 09:48:11 +01:00
parent e1bd13d8d7
commit 22416ced62
+2 -3
View File
@@ -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.