feat: add go-task, set up prettier, format yaml (#50)

This commit is contained in:
ᗪєνιη ᗷυнʟ authored and GitHub committed 2021-08-03 09:13:56 -04:00
1 parent 99370f6d8d
commit 525be88214
53 files changed
+386 -251

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
---
version: "3"
tasks:
sync:
desc: Sync flux-system with the Git Repository
cmds:
- flux reconcile source git flux-system
silent: true
+33
View File
@@ -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
+26
View File
@@ -0,0 +1,26 @@
---
version: "3"
tasks:
all:
- task: markdown
- task: yaml
- task: format
markdown:
desc: Lint Markdown
cmds:
- markdownlint -c '.github/lint/.markdownlint.yaml' *.md **/*.md
ignore_errors: true
yaml:
desc: Lint YAML
cmds:
- yamllint -c '.github/lint/.yamllint.yaml' .
ignore_errors: true
format:
desc: Lint general formatting
cmds:
- prettier --ignore-path '.github/lint/.prettierignore' --config '.github/lint/.prettierrc.yaml' --check .
ignore_errors: true
+12
View File
@@ -0,0 +1,12 @@
---
version: "3"
tasks:
init:
desc: Initialize pre-commit hooks
cmds:
- pre-commit install-hooks
run:
desc: Run pre-commit
cmds:
- pre-commit run --all-files