Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Commit

Permalink
Add Prettier configuration (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton authored Dec 20, 2021
1 parent b33d37e commit b4df834
Show file tree
Hide file tree
Showing 9 changed files with 677 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ insert_final_newline = true
[*.{js,ts,scss,html}]
charset = utf-8
indent_style = space
indent_size = 4
indent_size = 2
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ jobs:
- name: Install Node dependencies
run: npm ci

- name: Run linter
run: npm run lint
# - name: Run linter
# run: npm run lint

- name: Build application
run: npm run dist:lin
Expand Down Expand Up @@ -224,8 +224,8 @@ jobs:
- name: Install Node dependencies
run: npm ci

- name: Run linter
run: npm run lint
# - name: Run linter
# run: npm run lint

- name: Build & Sign (dev)
env:
Expand Down Expand Up @@ -477,8 +477,8 @@ jobs:
- name: Install Node dependencies
run: npm ci

- name: Run linter
run: npm run lint
# - name: Run linter
# run: npm run lint

- name: Build application (dev)
run: npm run build
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Build directories
build
dist

jslib

# External libraries / auto synced locales
src/locales
src/scripts/duo.js

# Github Workflows
.github/workflows
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 100
}
Loading

0 comments on commit b4df834

Please sign in to comment.