Skip to content

Commit

Permalink
feat: update action and lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Mar 19, 2021
1 parent acba613 commit 5135599
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
},
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
rules: {
// Add some rules here
'@typescript-eslint/explicit-module-boundary-types': 0,
},
};
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Run Linter

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm lint
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "ts-node-script compiler/compiler.ts",
"autocomplete": "cp ./specs/*.js ~/.fig/autocomplete/",
"lint": "eslint './dev/*.ts'",
"lint:fix": "npm run lint --fix"
"lint:fix": "npm run lint -- --fix"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 5135599

Please sign in to comment.