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

WIP: feat: add vale #192

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ on:
branches: [main]

jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
with:
files: "**/*.md"
reporter: github-pr-check
build:
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 17 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
StylesPath=".vale/styles"

Vocab = Base

MinAlertLevel = suggestion

IgnoredScopes = code, tt
SkippedScopes = script, style, pre, figure

[formats]
markdoc = md

[*.md]
BasedOnStyles = Vale, appwrite

# Ignore text inside markdoc components
BlockIgnores = {%.*%}
6 changes: 6 additions & 0 deletions .vale/styles/Vocab/Base/accept.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Appwrite
Appwrite Realtime
Hacktoberfest
Vue
Vite
NPM
5 changes: 5 additions & 0 deletions .vale/styles/appwrite/SentenceCase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends: capitalization
message: "'%s' should be in sentence case"
level: warning
scope: heading
match: $sentence
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"vale.valeCLI.path": "${workspaceFolder}/node_modules/.bin/vale"
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"lint:docs": "vale --config=.vale.ini --glob='**/*.md' .",
"format": "prettier --plugin-search-dir . --write .",
"test:integration": "playwright test",
"test:unit": "vitest",
Expand All @@ -18,6 +19,7 @@
"devDependencies": {
"@melt-ui/pp": "^0.1.2",
"@melt-ui/svelte": "^0.51.0",
"@ocular-d/vale-bin": "^2.29.1",
"@playwright/test": "^1.37.1",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/adapter-static": "^2.0.3",
Expand Down
Loading
Loading