Skip to content

Commit

Permalink
Merge pull request #819 from modx-pro/feat-eslint
Browse files Browse the repository at this point in the history
feat(ci/cd) Добавлена проверка измененных файлов с помощью ESLint
  • Loading branch information
biz87 committed Mar 30, 2023
2 parents 198fa9d + ef16312 commit 693301f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Empty file added .eslintignore
Empty file.
26 changes: 26 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on: pull_request

jobs:
eslint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install # OR: yarn

- name: Run eslint on changed files
uses: tj-actions/eslint-changed-files@v18
with:
config_path: ".eslintrc"
ignore_path: ".eslintignore"
extra_args: "--max-warnings=0"
file_extensions: |
**/*.js

0 comments on commit 693301f

Please sign in to comment.