You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
520 B
22 lines
520 B
name: linter |
|
|
|
# This action works with pull requests and pushes |
|
on: |
|
pull_request: |
|
|
|
jobs: |
|
linter: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v2 |
|
- uses: actions/setup-node@v1 |
|
with: |
|
node-version: 9.8.0 |
|
- name: Install |
|
run: npm install |
|
- name: Run ESLint on changed files |
|
uses: tj-actions/eslint-changed-files@v4 |
|
with: |
|
config-path: '.eslintrc.js' |
|
ignore-path: '.eslintignore' |
|
extensions: 'ts,tsx,js,jsx'
|
|
|