Skip to content

Commit

Permalink
Update package scripts, workflow, and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Nov 14, 2023
1 parent 4ad285b commit 3491515
Show file tree
Hide file tree
Showing 5 changed files with 300 additions and 1,228 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
name: lint-check
on: [push]
name: Lint and Formatting Check

on: push

jobs:
main:
name: Run ESLint + Prettier
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install next
- run: npm run lint
- run: npx prettier --check .

- name: Install Next for ESLint and Prettier
run: npm install next prettier

- name: Run ESLint
run: npm run lint:check

- name: Run Prettier
run: npm run format:check
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit 3491515

Please sign in to comment.