This commit is contained in:
Anmol Sethi 2022-12-07 23:22:20 -08:00
parent a86e409b49
commit b72959a91f
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
9 changed files with 12 additions and 11 deletions

6
.prettierignore Normal file
View file

@ -0,0 +1,6 @@
d2layouts/d2dagrelayout/dagre.js
d2layouts/d2elklayout/setup.js
d2renderers/d2latex/mathjax.js
d2renderers/d2latex/polyfills.js
d2renderers/d2latex/setup.js
lib/png/generate_png.js

View file

@ -5,7 +5,7 @@ all: fmt gen lint build test
.PHONY: fmt
fmt:
prefix "$@" ./ci/fmt.sh
prefix "$@" GOIMPORTS_LOCAL=oss.terrastruct.com, ./ci/sub/bin/fmt.sh
.PHONY: gen
gen:
prefix "$@" ./ci/gen.sh

View file

@ -1,6 +0,0 @@
#!/bin/sh
set -eu
. "$(dirname "$0")/sub/lib.sh"
cd -- "$(dirname "$0")/.."
./ci/sub/bin/fmt.sh

View file

@ -7,9 +7,9 @@ import (
"testing"
tassert "github.com/stretchr/testify/assert"
"oss.terrastruct.com/util-go/assert"
"oss.terrastruct.com/util-go/diff"
"oss.terrastruct.com/d2/d2compiler"
"oss.terrastruct.com/d2/d2format"
"oss.terrastruct.com/d2/d2graph"

View file

@ -12,6 +12,7 @@ import (
"math"
"github.com/dop251/goja"
"oss.terrastruct.com/util-go/xdefer"
"oss.terrastruct.com/util-go/go2"

View file

@ -6,7 +6,6 @@ import (
"strings"
"oss.terrastruct.com/util-go/go2"
"oss.terrastruct.com/d2/d2graph"
"oss.terrastruct.com/d2/d2target"
"oss.terrastruct.com/d2/lib/geo"

View file

@ -8,8 +8,8 @@ import (
"io"
"github.com/spf13/pflag"
"oss.terrastruct.com/util-go/xmain"
"oss.terrastruct.com/util-go/xmain"
"oss.terrastruct.com/d2/d2graph"
)

View file

@ -8,6 +8,7 @@ import (
"strconv"
"github.com/dop251/goja"
"oss.terrastruct.com/util-go/xdefer"
)

View file

@ -17,8 +17,8 @@ import (
"time"
"golang.org/x/xerrors"
"oss.terrastruct.com/util-go/xdefer"
"oss.terrastruct.com/util-go/xdefer"
"oss.terrastruct.com/util-go/xmain"
)