diff --git a/.github/workflows/prettier.yml b/.github/workflows/lint-format.yml similarity index 71% rename from .github/workflows/prettier.yml rename to .github/workflows/lint-format.yml index ae43fc4..93e3b63 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/lint-format.yml @@ -1,12 +1,12 @@ jobs: - prettier: + lint_format: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: ./.github/actions/prepare - - run: pnpm format --list-different + - run: pnpm lint:format -name: Prettier +name: Lint Format on: pull_request: ~ diff --git a/package.json b/package.json index e53c193..df3359a 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,9 @@ "scripts": { "build": "remix vite:build", "dev": "remix vite:dev", - "format": "prettier --write .", + "format": "prettier --cache --write .", "lint": "eslint . .*js --max-warnings 0", + "lint:format": "prettier --cache --check .", "lint:knip": "knip", "lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line", "lint:packages": "pnpm dedupe --check",