mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 03:32:58 +03:00
ci: simplify and integrate lint code (#286)
This commit is contained in:
parent
0896d5e517
commit
3911ae8cfc
@ -31,10 +31,11 @@ jobs:
|
||||
- setup
|
||||
- run:
|
||||
name: ESLint
|
||||
command: yarn eslint -c .eslintrc.js $(git diff --name-only --diff-filter=ACMRUXB origin/main | grep -E "(.js$|.ts$)")
|
||||
shell: bash -e
|
||||
command: git diff --name-only --diff-filter=ACMRUXB origin/main | grep -E "(.js$|.ts$)" | xargs -r yarn eslint -c .eslintrc.js
|
||||
- run:
|
||||
name: Prettier
|
||||
command: modifiedFiles=$(git diff --name-only --diff-filter=ACMRUXB origin/main | grep -E "(.js$|.ts$)") && [ -n "$modifiedFiles" ] && yarn prettier -c $modifiedFiles || echo "No modified files."
|
||||
command: git diff --name-only --diff-filter=ACMRUXB origin/main | xargs -r yarn prettier -c --ignore-unknown
|
||||
typecheck:
|
||||
docker:
|
||||
- image: cimg/node:20.12
|
||||
|
Loading…
Reference in New Issue
Block a user