build: Added linting and formatting setup to the repository#101
Merged
Conversation
Set up oxlint for linting, Prettier + prettier-plugin-astro for formatting, and husky + lint-staged to enforce both on commit. Also fixes the resulting lint errors and pre-existing playground type-check errors (astro check).
The commented-out <MobileSidebarToggle/> reference was an invalid HTML comment inside a JS expression, which caused a hard parse error in prettier-plugin-astro (though the Astro compiler tolerated it). The component and its import were unused, so both are removed.
- DocsSubHeader.astro: wrap adjacent igc-select/igc-tooltip siblings in a fragment (invalid unwrapped adjacent JSX elements). - SidebarLabel.astro: remove dead commented-out child-count span (invalid HTML comment inside a JS expression) and its now-unused childCount variable. - DocsTreeItem.astro: convert an HTML comment inside a JS expression to a valid JSX comment. These were undetected because oxlint only lints <script> blocks in .astro files and the Astro compiler tolerates them, but they broke prettier-plugin-astro's parser.
Repo-wide formatting pass using the newly added Prettier + prettier-plugin-astro setup. No functional changes. This commit is listed in .git-blame-ignore-revs.
Adds .git-blame-ignore-revs referencing the Prettier reformatting commit (771d566) so it doesn't obscure real history in git blame / GitHub blame view.
dobromirts
reviewed
Jul 1, 2026
dobromirts
reviewed
Jul 1, 2026
dobromirts
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set up oxlint for linting, Prettier + prettier-plugin-astro for formatting, and husky + lint-staged to enforce both on commit. Also fixes the resulting lint errors and pre-existing playground type-check errors (astro check).
The commented-out reference was an invalid HTML comment inside a JS expression, which caused a hard parse error in prettier-plugin-astro (though the Astro compiler tolerated it). The component and its import were unused, so both are removed.
These were undetected because oxlint only lints <script> blocks in .astro files and the Astro compiler tolerates them, but they broke prettier-plugin-astro's parser.
Repo-wide formatting pass using the newly added Prettier + prettier-plugin-astro setup. This commit is listed in .git-blame-ignore-revs.
Closes #89