Skip to content

Commit

Permalink
Added prettier linter
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarMrZ committed Jul 31, 2024
1 parent 5e96f92 commit 251d871
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Python lint

on: [push, pull_request]

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: JS Lint

# This action works with pull requests and pushes
on:
pull_request:
push:
branches:
- main

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}

- name: Prettify code
uses: creyD/[email protected]
with:
dry: True
prettier_options: --check **/*.{js,md}

0 comments on commit 251d871

Please sign in to comment.