chore: Ignore local reference and ignore eslint
Signed-off-by: Adam Harvey <adaharve@cisco.com>
This commit is contained in:
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user