fix(ci): Vale format and custom vocabularies

- Revert vale JSON output to line output so that husky appropriately fails the commit.
- Update custom vocab terms
- Add Vale to BasedOnStyles to enable the custom vocabs--they need access to Vale's **Avoid** action.
pull/5485/head
Jason Stirnaman 2024-05-29 17:42:31 -05:00
parent 8f95a26d36
commit 078df59a38
8 changed files with 18 additions and 12 deletions

View File

@ -2,3 +2,5 @@ API token
bucket name
Cloud Serverless
cloud-serverless
Clustered
clustered

View File

@ -1,4 +1,7 @@
Cloud Dedicated
cloud-dedicated
Clustered
clustered
database name
database token
database token
management token

View File

@ -1,2 +1,2 @@
npx lint-staged
npx lint-staged --relative --verbose
yarn run test

View File

@ -5,7 +5,8 @@ MinAlertLevel = warning
Packages = Google, Hugo, write-good
[*.md]
BasedOnStyles = InfluxDataDocs, Google, write-good
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
Google.Ellipses = NO
Google.Headings = NO
Google.WordList = NO

View File

@ -7,7 +7,7 @@ MinAlertLevel = warning
Packages = Google, Hugo, write-good
[*.md]
BasedOnStyles = InfluxDataDocs, Google, write-good
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
Google.Ellipses = NO
Google.Headings = NO

View File

@ -4,10 +4,10 @@ Vocab = Cloud-Serverless
MinAlertLevel = warning
ackages = Google, Hugo, write-good
Packages = Google, Hugo, write-good
[*.md]
BasedOnStyles = InfluxDataDocs, Google, write-good
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
Google.Ellipses = NO
Google.Headings = NO

View File

@ -4,10 +4,10 @@ Vocab = Clustered
MinAlertLevel = warning
ackages = Google, Hugo, write-good
Packages = Google, Hugo, write-good
[*.md]
BasedOnStyles = InfluxDataDocs, Google, write-good
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
Google.Ellipses = NO
Google.Headings = NO

View File

@ -24,9 +24,9 @@
},
"lint-staged": {
"*.{js,css,md}": "prettier --write",
"content/influxdb/cloud-dedicated/**/*.md": "npx vale --config=content/influxdb/cloud-dedicated/.vale.ini --minAlertLevel=warning --output=JSON",
"content/influxdb/cloud-serverless/**/*.md": "npx vale --config=content/influxdb/cloud-serverless/.vale.ini --minAlertLevel=warning --output=JSON",
"content/influxdb/clustered/**/*.md": "npx vale --config=content/influxdb/clustered/.vale.ini --minAlertLevel=warning --output=JSON",
"content/influxdb/{cloud,v2,telegraf}/**/*.md": "npx vale --config=.vale.ini --minAlertLevel=warning --output=JSON"
"content/influxdb/cloud-dedicated/**/*.md": "npx vale --config=content/influxdb/cloud-dedicated/.vale.ini --minAlertLevel=warning --output=line",
"content/influxdb/cloud-serverless/**/*.md": "npx vale --config=content/influxdb/cloud-serverless/.vale.ini --minAlertLevel=warning --output=line",
"content/influxdb/clustered/**/*.md": "npx vale --config=content/influxdb/clustered/.vale.ini --minAlertLevel=warning --output=line",
"content/influxdb/{cloud,v2,telegraf}/**/*.md": "npx vale --config=.vale.ini --minAlertLevel=warning --output=line"
}
}