Skip to content

Commit

Permalink
Merge pull request #24 from heww/eslint
Browse files Browse the repository at this point in the history
feat: enable eslint for the scripts
  • Loading branch information
heww authored Aug 22, 2021
2 parents 4b038a7 + 1098eb8 commit 128e9da
Show file tree
Hide file tree
Showing 9 changed files with 1,037 additions and 13 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
env:
es2021: true
node: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 12
sourceType: module
rules: {}
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ name: Tests
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install modules
run: npm install

- name: Run ESLint
run: npm run lint

test:
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit 128e9da

Please sign in to comment.