-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from TyHil/eslint
Eslint
- Loading branch information
Showing
3 changed files
with
689 additions
and
6 deletions.
There are no files selected for viewing
17 changes: 13 additions & 4 deletions
17
.github/workflows/format-check.yaml → .github/workflows/check.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
name: Format Check | ||
name: Lint and Format Check | ||
|
||
on: push | ||
|
||
jobs: | ||
main: | ||
name: Prettier | ||
name: Run ESLint and Prettier | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up pNPM | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: 'pnpm' | ||
|
||
- name: Install ESLint and Prettier | ||
run: pnpm install | ||
|
||
- name: Install Prettier | ||
run: npm install next prettier | ||
- name: Run ESLint | ||
run: npm run lint:check | ||
|
||
- name: Run Prettier | ||
run: npm run format:check |
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
Oops, something went wrong.