mirror of
https://github.com/Mikaela/.github.git
synced 2024-11-22 02:49:23 +01:00
fix and run pre-commit configuration
This commit is contained in:
parent
e48d589e94
commit
5f28b39908
@ -8,7 +8,7 @@ charset = utf-8
|
||||
indent_style = tab
|
||||
indent_size = tab
|
||||
|
||||
[*.{yaml,yml,cff}]
|
||||
[*.{yaml,yml,cff,json}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@
|
||||
!.gitignore
|
||||
!.pre-commit-config.yaml
|
||||
!.prettierrc
|
||||
!.prettierignore
|
||||
!.nvmrc
|
||||
|
||||
# Other ignores
|
||||
|
@ -11,17 +11,20 @@ repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-case-conflict
|
||||
- id: check-yaml
|
||||
- id: check-shebang-scripts-are-executable
|
||||
- id: destroyed-symlinks
|
||||
- id: detect-private-key
|
||||
- id: end-of-file-fixer
|
||||
- id: fix-byte-order-marker
|
||||
- id: trailing-whitespace
|
||||
args: ["--markdown-linebreak-ext", "md,markdown"]
|
||||
exclude_types: [svg, tsv]
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: check-case-conflict
|
||||
- id: check-json
|
||||
- id: check-merge-conflict
|
||||
- id: destroyed-symlinks
|
||||
- id: detect-private-key
|
||||
- id: fix-byte-order-marker
|
||||
- id: mixed-line-ending
|
||||
args: [--fix=auto]
|
||||
- id: pretty-format-json
|
||||
args: [--autofix, --no-ensure-ascii]
|
||||
|
||||
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
|
||||
rev: v1.6.1
|
||||
@ -47,9 +50,6 @@ repos:
|
||||
name: prettier
|
||||
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
|
||||
language: system
|
||||
# Better handled by pretty-format-json from pre-commit-hooks.
|
||||
# Remember to have *.json in .prettierignore!
|
||||
exclude_types: [json]
|
||||
|
||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||
rev: "2.7.3"
|
||||
|
1
.prettierignore
Normal file
1
.prettierignore
Normal file
@ -0,0 +1 @@
|
||||
*.json
|
@ -1,3 +1,5 @@
|
||||
{
|
||||
extends: ["github>Mikaela/shell-things:.renovate-shared"],
|
||||
"extends": [
|
||||
"github>Mikaela/shell-things:.renovate-shared"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user