Skip to content

Commit

Permalink
feat: use latest editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
usagiga committed Feb 25, 2024
1 parent 6270d50 commit ea0c782
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ indent_style = tab
[Makefile]
indent_style = tab

[*.{json,yml,yaml}]
[*.{json,yml,yaml,xml,iml}]
indent_size = 2

[*.{html,htm}]
[*.{html,htm,xhtml,xhtm}]
indent_size = 2

[*.{json.tftpl, tf, hcl, tfvars, tfstate, tfstate.backup}]
Expand All @@ -41,9 +41,18 @@ indent_style = tab
[*.cs]
# Default

[*.{c,cpp,h,hpp}]
# To configure their rules, use clang-format
indent_style = unset
indent_size = unset

[*.{js,jsx,ts,tsx,css,scss,vue}]
# To configure their rules, use ESLint / Prettier
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[.gitmodules]
indent_style = unset
indent_size = unset
2 changes: 1 addition & 1 deletion .editorconfig.d
20 changes: 20 additions & 0 deletions .github/workflows/editorconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by github.com/usagiga/editorconfig
# https://github.com/usagiga/editorconfig

name: "editorconfig-checker"

on:
push:
pull_request:

jobs:
check-format:
name: "Run editorconfig-checker"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: editorconfig-checker/action-editorconfig-checker@main

- name: "Run editorconfig-checker"
run: editorconfig-checker

0 comments on commit ea0c782

Please sign in to comment.