Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Nov 4, 2024
1 parent 39733e1 commit 6098238
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 26 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/format-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Maintenance: Format w/ Prettier'

on:
pull_request:
branches: ['master']

jobs:
prettier:
runs-on: 'ubuntu-latest'

steps:
- uses: 'actions/checkout@v4'
with:
# Make sure the actual branch is checked out when running on pull requests
ref: '${{ github.head_ref }}'
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- uses: 'actions/setup-node@v4'
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: './package-lock.json'
- run: 'npm clean-install'
- uses: 'creyD/[email protected]'
with:
# This part is also where you can pass other options, for example:
prettier_options: '--write'
only_changed: true
26 changes: 0 additions & 26 deletions .github/workflows/lint.yml

This file was deleted.

File renamed without changes.
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default [
node.configs['flat/recommended-script'],
prettier,
{




languageOptions: {
globals: {
...globals.es2021,
Expand Down

0 comments on commit 6098238

Please sign in to comment.