Skip to content

Commit

Permalink
feat(lint): add tsl
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 15, 2024
1 parent aafefd1 commit 9b3a26a
Show file tree
Hide file tree
Showing 5 changed files with 374 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/auto-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: auto-fix

on:
push:
branches:
- 'master'

jobs:
auto-fix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: latest

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install

# lint
- name: Auto-fix
run: npm run lint:fix

# commit
- name: Commit
uses: EndBug/add-and-commit@v9
with:
message: "ci(lint): auto-fix"
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml → .github/workflows/tsc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: tsc

on:
push:
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
"prerelease": "npm run build",
"release": "lerna publish --exact --force-publish --yes --sync-workspace-lock",
"postrelease": "lerna exec --no-bail --no-private --no-sort --stream -- '[ -n \"$(npm v . dist-tags.latest)\" ] && npm dist-tag add ${LERNA_PACKAGE_NAME}@$(npm v . dist-tags.latest) volar-2.1'",
"release:next": "npm run release -- --dist-tag next"
"release:next": "npm run release -- --dist-tag next",
"lint": "tsl --projects **/tsconfig.json",
"lint:fix": "npm run lint -- --fix"
},
"devDependencies": {
"@lerna-lite/cli": "latest",
"@lerna-lite/exec": "latest",
"@lerna-lite/publish": "latest",
"@volar/language-service": "~2.1.0",
"@volar/tsl-config": "latest",
"tsl": "latest",
"typescript": "latest",
"vscode-languageserver-protocol": "^3.17.5"
}
Expand Down
Loading

0 comments on commit 9b3a26a

Please sign in to comment.