Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid value 'code' in ui-interactions.yml #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agentolivia
Copy link
Contributor

When running vale on a tutorial, I got an error that "code" was an invalid key in styles/base/ui-interactions.yml. Reading through the Vale docs on the "existence" plugin, I saw that the proper syntax is to use the key "scope" with a value of "text" when you only want to check text and not code blocks. See https://vale.sh/docs/topics/styles/

amber@Ambers-MBP ~/S/tutorials (routing-101) [1]> npm run review tutorials/module_dev_basics/routing/routing-overview.md 

> drupalizeme_tutorials@1.0.0 review
> vale --no-wrap --config='./node_modules/osiolabs-copyeditor/.vale.ini' tutorials/module_dev_basics/routing/routing-overview.md

E201 Invalid value [node_modules/osiolabs-copyeditor/styles/base/ui-interactions.yml:5:1]:

   4  level: warning
   5* code: false
   6  ignorecase: true
   7  tokens:

has invalid keys: 'code'

When running vale on a tutorial, I got an error that "code" was an invalid key in styles/base/ui-interactions.yml. Reading through the Vale docs on the "existence" plugin, I saw that the proper syntax is to use the key "scope" with a value of "text" when you only want to check text and not code blocks. See https://vale.sh/docs/topics/styles/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant