1
0

lint-js.yml 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: JavaScript Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. - 'renovate/**'
  7. paths:
  8. - 'package.json'
  9. - 'yarn.lock'
  10. - 'tsconfig.json'
  11. - '.nvmrc'
  12. - '.prettier*'
  13. - '.eslint*'
  14. - '**/*.js'
  15. - '**/*.jsx'
  16. - '**/*.ts'
  17. - '**/*.tsx'
  18. - '.github/workflows/lint-js.yml'
  19. pull_request:
  20. paths:
  21. - 'package.json'
  22. - 'yarn.lock'
  23. - 'tsconfig.json'
  24. - '.nvmrc'
  25. - '.prettier*'
  26. - '.eslint*'
  27. - '**/*.js'
  28. - '**/*.jsx'
  29. - '**/*.ts'
  30. - '**/*.tsx'
  31. - '.github/workflows/lint-js.yml'
  32. jobs:
  33. lint:
  34. runs-on: ubuntu-latest
  35. steps:
  36. - name: Clone repository
  37. uses: actions/checkout@v4
  38. - name: Set up Javascript environment
  39. uses: ./.github/actions/setup-javascript
  40. - name: ESLint
  41. run: yarn lint:js --max-warnings 0
  42. - name: Typecheck
  43. run: yarn typecheck