Skip to content

Commit

Permalink
enable linting via CI
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Dec 23, 2020
1 parent ced67d5 commit fb7fde6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Lint

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "TypeScript definitions for MediaWiki JS interface",
"types": "index.d.ts",
"scripts": {
"dtslint": "npx dtslint --localTs node_modules/typescript/lib ."
"lint": "npx dtslint --localTs node_modules/typescript/lib ."
},
"repository": {
"type": "git",
Expand Down

0 comments on commit fb7fde6

Please sign in to comment.