Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Set up CI to lint workflows with action-validator #26

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

Johennes
Copy link
Contributor

This is the equivalent of element-hq/element-web#26621 applied to this repository.

@Johennes Johennes requested a review from a team as a code owner November 22, 2023 15:35
@Johennes Johennes requested review from dbkr and richvdh November 22, 2023 15:35
@Johennes Johennes enabled auto-merge (squash) November 22, 2023 16:16
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

looks plausible

@@ -9,44 +9,60 @@ jobs:
# ================================================

eslint:
name: "ESLint (Node ${{ matrix.node }})"
name: "ESLint (Node ${{ matrix.node == '*' && 'latest' || matrix.node }})"
Copy link
Member

Choose a reason for hiding this comment

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

"*" is not the same as latest, as I understand it. (If it was, we wouldn't need to change this.) IMHO * here would be better here: whilst not terribly clear for those who don't know what it means, it is at least not actively misleading.

"lint": "eslint src test && tsc --noEmit && prettier --check .",
"lint:fix": "prettier --write . && eslint --fix src test",
"lint": "yarn lint:js && yarn lint:workflows",
"lint:js": "eslint src test && tsc --noEmit && prettier --check .",
Copy link
Member

Choose a reason for hiding this comment

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

not loving that we have a lint:js that does something different to the lint:js in element-web (notably: it runs tsc), but I also don't feel very strongly about it.

@Johennes Johennes merged commit 4cb5908 into main Nov 24, 2023
@Johennes Johennes deleted the johannes/action-validator branch November 24, 2023 11:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants