Skip to content

Commit

Permalink
Merge pull request #10 from denog/editorconfig
Browse files Browse the repository at this point in the history
lint: init editorconfig
  • Loading branch information
vidister authored Feb 7, 2024
2 parents 1749563 + 1ece4f7 commit 61f68d9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
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
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint
on:
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
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ theme:
primary: 'yellow'
accent: 'yellow'
toggle:
icon: material/brightness-7
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
Expand Down

0 comments on commit 61f68d9

Please sign in to comment.