generated from kachick/anylang-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace dprint prettier plugin with yamlfmt and 3rd-party WASM plugins (
#114) * Replace dprint prettier plugin with yamlfmt and 3rd-party WASM plugins * Enable renovatebot for updating dprint plugins
- Loading branch information
Showing
10 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"github>kachick/renovate-config-dprint#1.1.0" | ||
], | ||
"labels": ["dependencies", "renovate"], | ||
"nix": { | ||
"enabled": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,10 @@ jobs: | |
with: | ||
dprint-version: '0.45.1' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","dprint --version | cut -d ' ' -f 2"]} | ||
- uses: crate-ci/[email protected] # selfup {"extract":"\\d\\.\\d+\\.\\d+","replacer":["bash","-c","typos --version | cut -d ' ' -f 2"]} | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
- name: Install yamlfmt | ||
run: go install github.com/google/yamlfmt/cmd/[email protected] # TODO: Apply selfup after https://github.com/google/yamlfmt/pull/180 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: '1.43.1' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1 | cut -d ' ' -f 2"]} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"tasks": { | ||
"build": "deno run --quiet --allow-net --allow-read --allow-write --allow-env scripts/build.ts", | ||
"clean": "rm -rf ./dist", | ||
"check": "dprint check && typos && deno fmt --check && deno lint && deno check src/*.ts* scripts/*.ts && deno task check:manifest", | ||
"check": "dprint check && typos && deno fmt --check && deno lint && yamlfmt -lint . && deno check src/*.ts* scripts/*.ts && deno task check:manifest", | ||
"check:manifest": "deno run scripts/manifestValidator.ts", | ||
"stylelint": "deno task cache:stylelint && deno run --node-modules-dir --allow-env --allow-read --allow-sys npm:[email protected]/stylelint src/*.css | deno run --allow-sys scripts/checkEmpty.ts", | ||
"deps": "deno --version && mogrify --version && dprint --version && typos --version && rg --version", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"json": {}, | ||
"markdown": {}, | ||
"prettier": { | ||
"printWidth": 120, | ||
"singleQuote": true | ||
"malva": { | ||
"quotes": "preferSingle" | ||
}, | ||
"excludes": ["*.ts*", "dist/", "node_modules/", ".git/", "vendor/"], | ||
"plugins": [ | ||
"https://plugins.dprint.dev/json-0.19.2.wasm", | ||
"https://plugins.dprint.dev/markdown-0.16.4.wasm", | ||
"https://plugins.dprint.dev/toml-0.6.1.wasm", | ||
"https://plugins.dprint.dev/prettier-0.39.0.json@896b70f29ef8213c1b0ba81a93cee9c2d4f39ac2194040313cd433906db7bc7c" | ||
"https://plugins.dprint.dev/g-plane/malva-v0.4.0.wasm", | ||
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.8.0.wasm" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
|
||
dprint | ||
deno | ||
yamlfmt | ||
ripgrep | ||
typos | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
gitignore_excludes: true | ||
line_ending: lf | ||
formatter: | ||
type: basic | ||
retain_line_breaks_single: true | ||
# https://github.com/google/yamlfmt/issues/182 | ||
scan_folded_as_literal: true |