ESLint changed files
ActionsTags
(2)Run ESLint on either all files which performs slow in some cases or selectively run ESLint on only changed files in a pull request with support for error reporting via GitHub checks.
...:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm ci # OR: yarn
- name: Run eslint on changed files
uses: tj-actions/[email protected]
with:
config_path: "/path/to/.eslintrc"
ignore_path: "/path/to/.eslintignore"
extensions: "ts,tsx,js,jsx"
extra_args: "--max-warnings=0"
If you feel generous and want to show some extra appreciation:
Support this project with a ⭐
Input | type | required | default | description |
---|---|---|---|---|
token | string |
false |
${{ github.token }} |
GITHUB_TOKEN or a repo scoped Personal Access Token |
config_path | string |
false |
'.eslintrc' |
eslint configuration file |
ignore_path | string |
false |
'' |
eslint ignore file |
extensions | string[] |
false |
'ts,tsx,js,jsx' |
File extensions to run eslint against |
extra_args | string |
false |
'' |
Extra arguments passed to eslint |
all_files | string |
false |
'true' |
Run eslint on all matching files |
- Free software: MIT license
Thanks goes to these wonderful people (emoji key):
Clinton Blackburn 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
ESLint changed files is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.