Skip to content

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

Open
agentolivia wants to merge 1 commit intomasterfrom
agentolivia-patch-2
Open

Fix invalid value 'code' in ui-interactions.yml#25
agentolivia wants to merge 1 commit intomasterfrom
agentolivia-patch-2

Conversation

@agentolivia
Copy link
Copy Markdown
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