Skip to content

feat: Allow setting a price when adding an item to the wishlist #54

feat: Allow setting a price when adding an item to the wishlist

feat: Allow setting a price when adding an item to the wishlist #54

Workflow file for this run

name: Lint
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
paths:
- '**.cjs'
- '**.css'
- '**.html'
- '**.js'
- '**.json'
- '**.jsx'
- '**.md'
- '**.mjs'
- '**.sass'
- '**.scss'
- '**.ts'
- '**.tsx'
- '**.vue'
- '**.yaml'
- '**.yml'
pull_request:
branches:
- master
paths:
- '**.cjs'
- '**.css'
- '**.html'
- '**.js'
- '**.json'
- '**.jsx'
- '**.md'
- '**.mjs'
- '**.sass'
- '**.scss'
- '**.ts'
- '**.tsx'
- '**.vue'
- '**.yaml'
- '**.yml'
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 22
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: npm install
# If we are running for a push on the main repo, go ahead and auto-fix issues
- name: Lint and auto-format
uses: rkuykendall/lint-action@master
if: ${{ github.repository == 'Wingysam/Christmas-Community' && github.event_name == 'push' }}
with:
auto_fix: true
eslint: true
prettier: true
# Otherwise, just fail the job if there are linter or formatter issues
- name: Lint and check format
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_trigger' }}
run: |
npx eslint
npx prettier . --check