Skip to content

Commit

Permalink
add prettier check (github workflow)
Browse files Browse the repository at this point in the history
  • Loading branch information
brookgagnon committed Jul 5, 2024
1 parent 6f78bb2 commit b2055af
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Prettier

on: [push, pull_request]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm ci

- name: Check code formatting with Prettier
run: npm run format:check
3 changes: 2 additions & 1 deletion ui/base/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ let localStyles = {};
export class OBElement extends HTMLElement {
root;

constructor() {
constructor()
{
super();

this.initialized = new Promise((resolve) => {
Expand Down

0 comments on commit b2055af

Please sign in to comment.