Skip to content

Commit 9210a6c

Browse files
committed
Add reference link comment for Prettier filename matching patterns
Prettier uses filename pattern matching to identify the programming language of files (and from this determines which files to format, and how to format those files). This is based on data from the "Linguist" project. That data was used as a reference for configuring the paths filter of the "Check Prettier Formatting" workflow, which ensures that the workflow will run whenever relevant files are modified. Documenting that reference via a comment in the workflow will facilitate the maintenance of the paths filter.
1 parent f92e5dc commit 9210a6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/check-prettier-formatting-task.yml

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
- "**/.npmrc"
1212
- "**/.prettierignore"
1313
- "**/.prettierrc*"
14+
# Prettier-covered file patterns are defined by:
15+
# https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml
1416
# CSS
1517
- "**.css"
1618
- "**.wxss"

0 commit comments

Comments
 (0)