Skip to content

Commit

Permalink
lint: init editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Frühling committed Feb 7, 2024
1 parent 1749563 commit 28d45e8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yml,yaml}]
indent_style = space
indent_size = 2

[*.{md,txt}]
indent_style = space
trim_trailing_whitespace = false

[Makefile]
indent_style = tab

[CNAME]
insert_final_newline = false
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read

jobs:
editorconfig:
name: Editorconfig
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: editorconfig-checker/action-editorconfig-checker@v2
- run: editorconfig-checker

0 comments on commit 28d45e8

Please sign in to comment.