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
parent
8f95a26d36
commit
078df59a38
|
@ -2,3 +2,5 @@ API token
|
||||||
bucket name
|
bucket name
|
||||||
Cloud Serverless
|
Cloud Serverless
|
||||||
cloud-serverless
|
cloud-serverless
|
||||||
|
Clustered
|
||||||
|
clustered
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
Cloud Dedicated
|
Cloud Dedicated
|
||||||
cloud-dedicated
|
cloud-dedicated
|
||||||
|
Clustered
|
||||||
|
clustered
|
||||||
database name
|
database name
|
||||||
database token
|
database token
|
||||||
|
management token
|
|
@ -1,2 +1,2 @@
|
||||||
npx lint-staged
|
npx lint-staged --relative --verbose
|
||||||
yarn run test
|
yarn run test
|
||||||
|
|
|
@ -5,7 +5,8 @@ MinAlertLevel = warning
|
||||||
Packages = Google, Hugo, write-good
|
Packages = Google, Hugo, write-good
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
BasedOnStyles = InfluxDataDocs, Google, write-good
|
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
|
||||||
|
|
||||||
Google.Ellipses = NO
|
Google.Ellipses = NO
|
||||||
Google.Headings = NO
|
Google.Headings = NO
|
||||||
Google.WordList = NO
|
Google.WordList = NO
|
|
@ -7,7 +7,7 @@ MinAlertLevel = warning
|
||||||
Packages = Google, Hugo, write-good
|
Packages = Google, Hugo, write-good
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
BasedOnStyles = InfluxDataDocs, Google, write-good
|
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
|
||||||
|
|
||||||
Google.Ellipses = NO
|
Google.Ellipses = NO
|
||||||
Google.Headings = NO
|
Google.Headings = NO
|
||||||
|
|
|
@ -4,10 +4,10 @@ Vocab = Cloud-Serverless
|
||||||
|
|
||||||
MinAlertLevel = warning
|
MinAlertLevel = warning
|
||||||
|
|
||||||
ackages = Google, Hugo, write-good
|
Packages = Google, Hugo, write-good
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
BasedOnStyles = InfluxDataDocs, Google, write-good
|
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
|
||||||
|
|
||||||
Google.Ellipses = NO
|
Google.Ellipses = NO
|
||||||
Google.Headings = NO
|
Google.Headings = NO
|
||||||
|
|
|
@ -4,10 +4,10 @@ Vocab = Clustered
|
||||||
|
|
||||||
MinAlertLevel = warning
|
MinAlertLevel = warning
|
||||||
|
|
||||||
ackages = Google, Hugo, write-good
|
Packages = Google, Hugo, write-good
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
BasedOnStyles = InfluxDataDocs, Google, write-good
|
BasedOnStyles = Vale, InfluxDataDocs, Google, write-good
|
||||||
|
|
||||||
Google.Ellipses = NO
|
Google.Ellipses = NO
|
||||||
Google.Headings = NO
|
Google.Headings = NO
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,css,md}": "prettier --write",
|
"*.{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-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=JSON",
|
"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=JSON",
|
"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=JSON"
|
"content/influxdb/{cloud,v2,telegraf}/**/*.md": "npx vale --config=.vale.ini --minAlertLevel=warning --output=line"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue