- Notifications
You must be signed in to change notification settings - Fork928
chore: replace eslint with biome#14263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
e7feeb5
85d8d05
4b1c032
e8d7aca
27b85cc
2b19afc
053cb48
3d507dd
d27cfc4
5c0292b
bb3d084
8fa3011
7fdb012
3ffca81
68a1b10
55337e5
e272831
612b6b2
52ada5b
8b60eee
774f258
968d413
fe8f85d
d6dd39f
78332c5
075c3be
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Diff view
Diff view
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -391,7 +391,7 @@ BOLD := $(shell tput bold 2>/dev/null) | ||
GREEN := $(shell tput setaf 2 2>/dev/null) | ||
RESET := $(shell tput sgr0 2>/dev/null) | ||
fmt: fmt/ts fmt/go fmt/terraform fmt/shfmt fmt/prettier | ||
.PHONY: fmt | ||
fmt/go: | ||
@@ -401,15 +401,19 @@ fmt/go: | ||
go run mvdan.cc/gofumpt@v0.4.0 -w -l . | ||
.PHONY: fmt/go | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I used to do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Actually, we still need prettier for basically everything it was doing before outside of site/, so I'll just put that job back. | ||
fmt/ts: | ||
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/ts$(RESET)" | ||
cd site | ||
# Avoid writing files in CI to reduce file write activity | ||
ifdef CI | ||
pnpm run check --linter-enabled=false | ||
else | ||
pnpm run check:fix | ||
endif | ||
.PHONY: fmt/ts | ||
fmt/prettier: .prettierignore | ||
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/prettier$(RESET)" | ||
# Avoid writing files in CI to reduce file write activity | ||
ifdef CI | ||
pnpm run format:check | ||
@@ -442,7 +446,7 @@ lint/site-icons: | ||
lint/ts: | ||
cd site | ||
pnpm lint | ||
.PHONY: lint/ts | ||
lint/go: | ||
@@ -495,9 +499,6 @@ gen: \ | ||
.prettierignore.include \ | ||
.prettierignore \ | ||
provisioner/terraform/testdata/version \ | ||
site/e2e/provisionerGenerated.ts \ | ||
site/src/theme/icons.json \ | ||
examples/examples.gen.json \ | ||
@@ -526,9 +527,6 @@ gen/mark-fresh: | ||
coderd/apidoc/swagger.json \ | ||
.prettierignore.include \ | ||
.prettierignore \ | ||
site/e2e/provisionerGenerated.ts \ | ||
site/src/theme/icons.json \ | ||
examples/examples.gen.json \ | ||
@@ -603,7 +601,6 @@ provisionerd/proto/provisionerd.pb.go: provisionerd/proto/provisionerd.proto | ||
site/src/api/typesGenerated.ts: $(wildcard scripts/apitypings/*) $(shell find ./codersdk $(FIND_EXCLUSIONS) -type f -name '*.go') | ||
go run ./scripts/apitypings/ > $@ | ||
./scripts/pnpm_install.sh | ||
site/e2e/provisionerGenerated.ts: provisionerd/proto/provisionerd.pb.go provisionersdk/proto/provisioner.pb.go | ||
cd site | ||
@@ -613,7 +610,7 @@ site/e2e/provisionerGenerated.ts: provisionerd/proto/provisionerd.pb.go provisio | ||
site/src/theme/icons.json: $(wildcard scripts/gensite/*) $(wildcard site/static/icon/*) | ||
go run ./scripts/gensite/ -icons "$@" | ||
./scripts/pnpm_install.sh | ||
pnpm-C site/execbiome format--writesrc/theme/icons.json | ||
examples/examples.gen.json: scripts/examplegen/main.go examples/examples.go $(shell find ./examples/templates) | ||
go run ./scripts/examplegen/main.go > examples/examples.gen.json | ||
@@ -702,23 +699,6 @@ scripts/ci-report/testdata/.gen-golden: $(wildcard scripts/ci-report/testdata/*) | ||
go test ./scripts/ci-report -run=TestOutputMatchesGoldenFile -update | ||
touch "$@" | ||
# Combine .gitignore with .prettierignore.include to generate .prettierignore. | ||
.prettierignore: .gitignore .prettierignore.include | ||
echo "# Code generated by Makefile ($^). DO NOT EDIT." > "$@" | ||
@@ -728,40 +708,6 @@ site/.prettierrc.yaml: .prettierrc.yaml | ||
cat "$$f" >> "$@" | ||
done | ||
test: | ||
$(GIT_FLAGS) gotestsum --format standard-quiet -- -v -short -count=1 ./... | ||
.PHONY: test | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.