Merge pull request #1150 from jhuopensource/rel/2025_10B #1753
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
# Runs the frontend linter, Prettier and ESLint | |
name: TSLint | |
on: | |
push: | |
branches: | |
- prod | |
- develop | |
- feature/dark-mode-timetable | |
pull_request: | |
branches: | |
- prod | |
- develop | |
- feature/dark-mode-timetable | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
cache: "npm" | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Prettier | |
run: npx prettier "**/*.{js,jsx,ts,tsx}" --check | |
- name: Run ESLint | |
run: npx eslint . --ext .js,.jsx,.ts,.tsx --max-warnings 0 |