mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
chore: add markdown linting config and CI workflow
This commit is contained in:
19
.github/workflows/lint.yml
vendored
Normal file
19
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**/*.md'
|
||||
- '.markdownlint-cli2.jsonc'
|
||||
|
||||
jobs:
|
||||
markdown:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm run lint:md
|
||||
10
.markdownlint-cli2.jsonc
Normal file
10
.markdownlint-cli2.jsonc
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
// Only enforce the 3 rules from PR #72. Everything else is off.
|
||||
"config": {
|
||||
"default": false,
|
||||
"MD012": true,
|
||||
"MD022": true,
|
||||
"MD032": true
|
||||
},
|
||||
"ignores": ["node_modules/**", "dist/**", "src-tauri/target/**"]
|
||||
}
|
||||
Reference in New Issue
Block a user