Skip to content

Commit

Permalink
Upgrade packages and improve linter action (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Rajchman authored Mar 27, 2020
1 parent 77a9633 commit 4b10532
Show file tree
Hide file tree
Showing 4 changed files with 788 additions and 1,019 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
"extends": "standard",
"globals": {
"$": "readonly",
"localStorage": "readonly",
},
"ignorePatterns": [
"/javascripts/",
],
};
18 changes: 13 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- src/*
- svg/*
- package*.json
pull_request:
paths:
- src/*
- svg/*
- package*.json

jobs:
lint:
Expand All @@ -23,11 +28,14 @@ jobs:
- name: Install npm dependencies
run: npm ci

- name: Lint JavaScript
run: npm run lint:js

- name: Lint Sass
run: npm run lint:sass
- name: Run linters
uses: samuelmeuli/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
eslint: true
eslint_dir: "src/javascripts"
stylelint: true
stylelint_dir: "src/sass"

- name: Check build
run: npm run build
Loading

0 comments on commit 4b10532

Please sign in to comment.