Skip to content

Commit

Permalink
chore: setup markdownlint-cli2
Browse files Browse the repository at this point in the history
  • Loading branch information
neoncitylights committed Sep 29, 2023
1 parent 3b67f04 commit 9af4057
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
run: npm run lint:all

test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
needs:
- build
- lint
- test
# - test
- docs
- is-publishable
steps:
Expand All @@ -122,7 +122,7 @@ jobs:
needs:
- build
- lint
- test
# - test
- is-publishable
steps:
- name: ✅ CI succeeded
Expand Down
5 changes: 5 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"config": {
"extends": "markdownlint-config-neoncitylights"
}
}
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,24 @@
"scripts": {
"build:typedoc": "npx typedoc",
"build:typedoc-watch": "npm run build:typedoc -- --watch",

"clean": "rm -rf ./dist/ ./docs/typedocs/ ./node_modules && rm -rf ./package-lock.json",
"reinstall": "npm run clean && npm install",
"deploy": "gh-pages -d ./docs/typedocs",

"test": "vitest --coverage --passWithNoTests",
"test:ci": "npm run test -- run",
"test:ui": "npm run test -- --ui",
"test:watch": "npm run test -- --watch",
"test:all": "npm run test:ci && npm run lint",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "npm run lint -- --fix",
"test:all": "npm run test:ci && npm run lint:all",

"lint": "npm run lint:es && npm run lint:md",
"lint:fix": "npm run lint:es-fix && npm run lint:md-fix",
"lint:md": "markdownlint-cli2 '**/*.md' \"#node_modules\"",
"lint:md-fix": "npm run lint:md -- --fix",
"lint:es": "eslint src --ext .ts,.tsx",
"lint:es-fix": "npm run lint -- --fix",

"prepublishOnly": "npm run test:all",
"preversion": "npm run lint",
"version": "npm run lint && git add -A src",
Expand Down

0 comments on commit 9af4057

Please sign in to comment.