Open wesley-dean-flexion opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
If you think this issue should stay open, please remove the O: stale 🤖
label or comment on the issue.
I found that
SPELL_VALE
works well locally on projects where I'm already using it. Cool. However, I found that just dropping a.vale.ini
file into a project tends to fail if the following conditions are true:StylesPath
directive of the.vale.ini
file.vale.ini
For example:
or:
(examples included so they show up in searches)
So, to fix that, one could create a styles directory in one's repo, then install Vale locally and run
vale sync
to acquire the styles, then commit all of that to the repo. That seems like an anti-pattern to me.Therefore, I added the following to my
.mega-linter.yml
file:This will:
.vale.ini
file, then runmkdir -p
on it (the-p
flag has the side effect of havingmkdir
not throw an error if the directory already exists)vale sync
which downloads the styles articulated in the.value.ini
fileI believe that this is a better approach than having the Vale container synchronize the styles content itself as it allows the user to opt-in by including the steps needed to "make it go" while not requiring the addition of an additional MegaLinter configuration option to allow the user to opt-out.