Lint spelling seperately from markdown syntax + add .github folder to markdown linter

This commit is contained in:
Charles Ewert 2023-02-26 13:52:06 -05:00
parent a9aed353e9
commit 1aa7db3c14
2 changed files with 18 additions and 2 deletions

View File

@ -57,4 +57,19 @@ jobs:
run: npx ropm install
- uses: xt0rted/markdownlint-problem-matcher@98d94724052d20ca2e06c091f202e4c66c3c59fb # v2
- name: Lint markdown files
run: npm run lint-markdown
run: npm run lint-markdown
spelling:
runs-on: ubuntu-latest
steps:
- name: Clone github repo
uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "lts/*"
cache: "npm"
- name: Install npm dependencies
run: npm ci
- name: Install roku package dependencies
run: npx ropm install
- name: Check markdown files for spelling errors
run: npm run lint-spelling

View File

@ -17,7 +17,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "bslint",
"lint-json": "jshint --extra-ext .json --verbose --exclude node_modules ./",
"lint-markdown": "markdownlint-cli2 \"**/*.md\" \"#node_modules\" && spellchecker -d dictionary.txt --files **/*.md !**/node_modules/**/*.md",
"lint-markdown": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"",
"lint-spelling": "spellchecker --no-gitignore -d dictionary.txt --files **/*.md **/.*/**/*.md !**/node_modules/**/*.md",
"check-formatting": "npx bsfmt --check",
"format": "npx bsfmt --write"
},