DO NOT REVIEW: GitHub Actions: Implement ESlint #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint JS | |
on: | |
pull_request: | |
# branches: [gh-pages] | |
push: | |
# branches: [gh-pages] | |
jobs: | |
build: | |
name: Lint JS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
# Full git history is needed to get a proper list of changed files within `super-linter` | |
fetch-depth: 0 | |
# Run Linter against code base # | |
- name: Lint JS | |
uses: github/super-linter@v5.0.0 | |
env: | |
VALIDATE_ALL_CODEBASE: false | |
DEFAULT_BRANCH: gh-pages | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
LINTER_RULES_PATH: / | |
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json | |
VALIDATE_JAVASCRIPT_ES: true |