Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format everything with prettier #99

Closed
wants to merge 12 commits into from
Closed
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code validation

on: ["push"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: NPM Install
run: npm ci
env:
CI: true

- name: Lint
run: npm run format:check
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": ["@prettier/plugin-php"],
"useTabs": true,
"tabWidth": 2,
"printWidth": 120
}
268 changes: 180 additions & 88 deletions classes/admin/class-ledyer-meta-box.php

Large diffs are not rendered by default.

Loading