Repository navigation
editorconfig: replace deprecated eclint action with npm package #187
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,12 +36,16 @@ lint_kubent: ## Check for deprecated Kubernetes API versions | |
| {%- endif %} | ||
|
|
||
| .PHONY: format | ||
| format: format_jsonnet ## All-in-one formatting | ||
| format: format_jsonnet format_editorconfig ## All-in-one formatting | ||
|
|
||
| .PHONY: format_jsonnet | ||
| format_jsonnet: $(JSONNET_FILES) ## Format jsonnet files | ||
| $(JSONNET_DOCKER) $(JSONNETFMT_ARGS) --in-place -- $? | ||
|
|
||
| .PHONY: format_editorconfig | ||
| format_editorconfig: ## Fix EditorConfig issues | ||
| npx --yes eclint@$(ECLINT_VERSION) fix . | ||
|
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. Do you realize that this won't work on everyone's machine? Please use a suitable docker image (the same way we do for Jsonnet etc.) instead of directly invoking a CLI tool that may or may not exist on a machine.
Contributor
Author
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. Some have even problems with docker. Ok, will do.
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. Well, if you have problems with docker or podman, you won't have any luck running any Commodore component stuff locally without custom magic. edit: if you structure the helper variables the same as what we have for Commodore, yamllint and Jsonnet in |
||
|
|
||
| .PHONY: docs-serve | ||
| docs-serve: ## Preview the documentation | ||
| $(ANTORA_PREVIEW_CMD) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're adding a new
format_make target for editorconfig, we should add the equivalent target for linting, see above in the template Makefile.