[WIP] Setup lint #1

Closed
prathamesh wants to merge 4 commits from pm-setup-lint into pm-add-tests
2 changed files with 29 additions and 1 deletions
Showing only changes of commit 3449a05ed5 - Show all commits

28
.gitea/workflows/lint.yml Normal file
View File

@ -0,0 +1,28 @@
name: Lint
on:
pull_request:
branches:
- '*'
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Download yarn
run: |
curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js
chmod +x /usr/local/bin/yarn
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- name: Linter check
run: yarn lint

View File

@ -36,7 +36,7 @@
"yargs": "^17.4.1"
},
"scripts": {
"test": "jest --runInBand --verbose test/*.test.ts",
"test": "jest --runInBand --verbose test/cli.test.ts",
"lint": "eslint .",
"clean": "rm -rf ./dist",
"build": "tsc",