Skip to content

Commit

Permalink
configured formatting files before pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
programmerIhor committed May 1, 2024
1 parent 2a41604 commit 4ff42a5
Show file tree
Hide file tree
Showing 11 changed files with 8,567 additions and 8,088 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pre-commit

on:
pull_request:
push:
branches:
- '*'

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: '20'

- name: Install dependencies and run prettier
run: |
npm install
npm run prettier
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
package-lock.json
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Readme.md
package.json
node_modules/
.github/
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"printWidth": 80,
"tabWidth": 0,
"useTabs": true,
"bracketSpacing": true,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "all",
"arrowParens": "always",
"semi": true,
"plugins": ["prettier-plugin-brace-style"],
"braceStyle": "allman"
}
Loading

0 comments on commit 4ff42a5

Please sign in to comment.