chore: Ignore local reference and ignore eslint

Signed-off-by: Adam Harvey <adaharve@cisco.com>
This commit is contained in:
Adam Harvey
2022-12-22 09:55:54 -05:00
parent f542bf8fc1
commit 679c181db1
+3 -1
View File
@@ -23,6 +23,7 @@ const IGNORED = [
/^.*[/\\]CHANGELOG\.md$/,
/^.*[/\\]api-report\.md$/,
/^docs[/\\]releases[/\\].*-changelog\.md$/,
/^docs[/\\]reference[/\\]/,
];
const rootDir = resolvePath(__dirname, '..');
@@ -55,6 +56,7 @@ async function listFiles(dir = '') {
// caused by the script. In CI, we want to ensure vale linter is run.
async function exitIfMissingVale() {
try {
// eslint-disable-next-line import/no-extraneous-dependencies
await require('command-exists')('vale');
} catch (e) {
if (process.env.CI) {
@@ -72,7 +74,7 @@ async function exitIfMissingVale() {
async function runVale(files) {
const result = spawnSync(
'vale',
['--config', resolvePath(rootDir, '.github/vale/config.ini'), ...files],
['--config', resolvePath(rootDir, '.vale.ini'), ...files],
{
stdio: 'inherit',
},