Skip to content

Commit

Permalink
Adding miscellaneous prettier files
Browse files Browse the repository at this point in the history
  • Loading branch information
nwdepatie committed Sep 27, 2023
1 parent 548fdc6 commit a4fc089
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/prettier-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Prettier Check
on: [push, pull_request]
jobs:
run-prettier-check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.17.1
cache: 'npm'
- name: Install modules
run: npm install
- name: Run prettier check
run: npm run prettier-check
74 changes: 74 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# https://github.com/github/gitignore/blob/master/C.gitignore

# VSCode files
.vs/
.vscode/

# Build files
build/

# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

# cscope with Vim
cscope.*

#ctags with Vim
tags
types_c.taghl

#CtrlP
ctrlp.root

#html
*.html
7 changes: 7 additions & 0 deletions prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "none",
"tabWidth": 2,
"singleQuote": true,
"printWidth": 125
}

0 comments on commit a4fc089

Please sign in to comment.