Skip to content

editorconfig: replace deprecated eclint action with npm package - #187

Open
BacLuc wants to merge 1 commit into
projectsyn:mainfrom
BacLuc:issue-76-editorconfig-fix
Open

BacLuc wants to merge 1 commit into
projectsyn:mainfrom
BacLuc:issue-76-editorconfig-fix

Conversation

@BacLuc

@BacLuc BacLuc commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

See https://github.com/snow-actions/eclint
Also add it to the makefile that you can locally fix editorconfig issues.
Include editorconfig fix in make format.

Checklist

  • The PR has a meaningful title. It will be used to auto generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
    - [] Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

See https://github.com/snow-actions/eclint
Also add it to the makefile that you can locally fix editorconfig issues.
Include editorconfig fix in make format.
@BacLuc BacLuc added the change label Oct 20, 2026
@BacLuc
BacLuc requested a review from a team October 20, 2026 12:56

.PHONY: format_editorconfig
format_editorconfig: ## Fix EditorConfig issues
npx --yes eclint@$(ECLINT_VERSION) fix .

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some have even problems with docker. Ok, will do.

@simu simu Oct 22, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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 Makefile.vars.mk, users will be able to use their local npx by overriding NPX_CMD (if modelled after COMMODORE_CMD) or NPX_DOCKER (if modelled after JSONNET_DOCKER and YAMLLINT_DOCKER).


.PHONY: format
format: format_jsonnet ## All-in-one formatting
format: format_jsonnet format_editorconfig ## All-in-one formatting

@simu simu Oct 22, 2026 •

Copy link
Copy Markdown
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants