mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-27 08:20:47 +00:00
Lint spelling seperately from markdown syntax + add .github folder to markdown linter
This commit is contained in:
parent
a9aed353e9
commit
1aa7db3c14
17
.github/workflows/lint.yml
vendored
17
.github/workflows/lint.yml
vendored
@ -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
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user