Skip to content

Commit

Permalink
chore(deno): make defaults explicit for fmt
Browse files Browse the repository at this point in the history
Also add lint workflow for GitHub Actions.
  • Loading branch information
ajhalili2006 committed Jan 29, 2025
1 parent c323ea2 commit b5fac1d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint
on:
pull_request:
branches: [main]
push:
release:

jobs:
ts:
name: TypeScript
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Run linter
run: deno chedck golinkctl.ts
5 changes: 5 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@
},
"tasks": {
"cli": "deno run -A ./golinkctl.ts"
},
"fmt": {
"indentWidth": 2,
"singleQuote": false,
"useTabs": false
}
}

0 comments on commit b5fac1d

Please sign in to comment.