Run npm lint in CI (#416)

This commit is contained in:
Oscar Hinton 2021-12-03 20:34:59 +00:00 committed by GitHub
parent 7444b701e8
commit d0e4abf297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -131,7 +131,10 @@ jobs:
run: npm run sub:init
- name: Install
run: npm install
run: npm ci
- name: Run linter
run: npm run lint
- name: Build & Package
run: npm run dist

View File

@ -39,7 +39,7 @@
"dist:mac": "npm run build:prod && npm run clean && npm run package:mac",
"dist:lin": "npm run build:prod && npm run clean && npm run package:lin",
"publish:npm": "npm run build:prod && npm publish --access public",
"lint": "tslint 'src/**/*.ts' 'spec/**/*.ts' || true",
"lint": "tslint 'src/**/*.ts' 'spec/**/*.ts'",
"lint:fix": "tslint 'src/**/*.ts' 'spec/**/*.ts' --fix"
},
"bin": {