Skip to content

ci: update linter

ci: update linter #76

Workflow file for this run

name: eslint
on:
pull_request:
branches: [main]
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node Environment
uses: ./.github/actions/setup-node
- uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review # Change reporter.
fail_on_error: true
eslint_flags: '--cache --report-unused-disable-directives "**/*.{js,jsx,ts,tsx,cjs,mjs,vue}"'
vue_tsc:
name: runner / vue_tsc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node Environment
uses: ./.github/actions/setup-node
- uses: daflyinbed/reviewdog-action-vue-tsc@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review # Change reporter.
fail_on_error: true
vue_tsc_flags: --noEmit
stylelint:
name: runner / stylelint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node Environment
uses: ./.github/actions/setup-node
- name: Run stylelint
uses: reviewdog/action-stylelint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review # Change reporter.
fail_on_error: true
stylelint_input: "\"**/*.{css,scss}\""