Merge pull request #841 from pi-hole/editorconfig

Add editorconfig and editorconfig-checker
This commit is contained in:
yubiuser
2023-01-14 19:58:47 +01:00
committed by GitHub
4 changed files with 38 additions and 2 deletions

22
.editorconfig Normal file
View File

@@ -0,0 +1,22 @@
# EditorConfig is awesome: https://editorconfig.org/
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
insert_final_newline = true
indent_style = space
indent_size = tab
tab_width = 4
charset = utf-8
trim_trailing_whitespace = true
[*.yml]
tab_width = 2
[*.md]
tab_width = 2
[*.json]
indent_size = 2

View File

@@ -0,0 +1,14 @@
name: editorconfig-checker
on:
pull_request:
push:
jobs:
build:
name: editorconfig-checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.2.0
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker