feat: add go-task, set up prettier, format yaml (#50)
This commit is contained in:
1 parent
99370f6d8d
commit
525be88214
53 files changed
+386
-251
No files matched your search
@@ -0,0 +1,33 @@
|
||||
---
|
||||
version: "3"
|
||||
|
||||
tasks:
|
||||
all:
|
||||
- task: markdown
|
||||
- task: yaml
|
||||
markdown:
|
||||
desc: Format Markdown
|
||||
cmds:
|
||||
- >-
|
||||
prettier
|
||||
--ignore-path '.github/lint/.prettierignore'
|
||||
--config '.github/lint/.prettierrc.yaml'
|
||||
--list-different
|
||||
--ignore-unknown
|
||||
--parser=markdown
|
||||
--write '*.md' '**/*.md'
|
||||
ignore_error: true
|
||||
yaml:
|
||||
desc: Format YAML
|
||||
cmds:
|
||||
- >-
|
||||
prettier
|
||||
--ignore-path '.github/lint/.prettierignore'
|
||||
--config
|
||||
'.github/lint/.prettierrc.yaml'
|
||||
--list-different
|
||||
--ignore-unknown
|
||||
--parser=yaml
|
||||
--write '*.y*ml'
|
||||
'**/*.y*ml'
|
||||
ignore_error: true
|
||||
Reference in new issue
Block a user