feat: Improve inline script handling and add .vercel to eslint ignore #22
Workflow file for this run
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
name: Lint | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Repo | |
uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
- name: Set up Node.JS | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: 'pnpm' | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint Project | |
run: pnpm lint | |
- name: Check Code Formatting | |
run: pnpm prettier:check | |
# If you have a monorepo, you can add the following steps to the job: | |
- name: Check Dependency Version Consistency | |
run: pnpm check-dependency-version-consistency . | |
- name: Check for Duplicated Dependencies | |
run: pnpm dedupe --check |