Skip to content

Commit

Permalink
chore: Add prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 28, 2022
1 parent 9ed8c44 commit ec032f9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
max_line_length = 120

[*.{json,json.dist,yml,yml.dist}]
indent_size = 4
[*.{json,json.dist,yml,yaml,yml.dist,yaml.dist}]
indent_size = 4
max_line_length = 120

[*.{md}]
indent_size = 2
max_line_length = 80
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 checks

# This action works with pull requests and pushes
on:
pull_request:
push:
branches:
- master

jobs:
prettier:
runs-on: ubuntu-latest

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

- name: Install the Nix package manager
uses: cachix/install-nix-action@v17

- name: Checks
run: nix run nixpkgs#nodePackages.prettier -- --check .
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.direnv/
/.idea/
/build/
/vendor/
/docs/
CHANGELOG.md

0 comments on commit ec032f9

Please sign in to comment.