docs: fix styles #137
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: ESLint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, ready_for_review] | |
branches-ignore: | |
- changeset-release/main | |
jobs: | |
linter: | |
name: Running eslint check | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.16.1" | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 7.14.0 | |
- name: Install Dependencies | |
run: pnpm i | |
- name: ESLint check | |
run: pnpm lint | |
- name: Prettier check | |
run: pnpm format | |