Skip to content

Commit

Permalink
Subject .yml files to prettier
Browse files Browse the repository at this point in the history
This should hit GitHub workflow files with the prettier stick.
  • Loading branch information
Shadowfiend committed Oct 31, 2022
1 parent 3ddfd56 commit cb72e40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: lint-config
name: "lint config files"
entry: /usr/bin/env npx prettier -c
files: '\.json$|\.yaml$|\.toml$'
files: '\.json$|\.yaml$|\.toml$|\.yml$'
language: script
description: "Checks config files according to the package's linter configuration"
- repo: local
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"devtools": "redux-devtools --hostname=localhost --port=8000",
"lint": "run-p lint:*",
"lint-fix": "run-p lint:*:fix",
"lint:config": "prettier -c '**/*.@(json|yaml|toml)'",
"lint:config:fix": "prettier -w '**/*.@(json|yaml|toml)'",
"lint:config": "prettier -c '**/*.@(json|yaml|toml|yml)'",
"lint:config:fix": "prettier -w '**/*.@(json|yaml|toml|yml)'",
"lint:docs": "prettier -c '**/*.md'",
"lint:docs:fix": "prettier -w '**/*.md'",
"lint:js": "eslint .",
Expand Down

0 comments on commit cb72e40

Please sign in to comment.