Last active
June 22, 2021 07:20
-
-
Save Karnak19/e8cd4adf058f6354a245111a59f346b9 to your computer and use it in GitHub Desktop.
ESLint Github workflow
This file contains hidden or 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: ESLint | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: "15" | |
| - name: Install modules | |
| run: npm install | |
| - name: Run ESLint | |
| run: npx eslint . --ext .js,.jsx,.ts,.tsx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment