Skip to content

feat: add eslint and prettier #2

feat: add eslint and prettier

feat: add eslint and prettier #2

Workflow file for this run

name: Lint
on:
pull_request:
permissions:
contents: read
env:
NODE_VERSION: 18
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.1
- name: Set up NodeJs
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install Dependencies
run: npm install
lint-prettier:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Lint
run: npm run prettier
lint-eslint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Lint
run: npm run eslint