Skip to content

chore(repo): introduce HTML eslint config #DS-2492#2558

Draft
crishpeen wants to merge 1 commit intomainfrom
chore/html-eslint
Draft

chore(repo): introduce HTML eslint config #DS-2492#2558
crishpeen wants to merge 1 commit intomainfrom
chore/html-eslint

Conversation

@crishpeen
Copy link
Copy Markdown
Member

Description

Additional context

Issue reference

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 24, 2026

Deploy Preview for spirit-design-system-docsite ready!

Name Link
🔨 Latest commit 6ec08bd
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-docsite/deploys/69c4df9ff771a900084fe0a1
😎 Deploy Preview https://deploy-preview-2558--spirit-design-system-docsite.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 24, 2026

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit 6ec08bd
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system/deploys/69c4df9f4b9a1c000828ffb4
😎 Deploy Preview https://deploy-preview-2558--spirit-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 24, 2026

Deploy Preview for spirit-design-system-storybook canceled.

Name Link
🔨 Latest commit 6ec08bd
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-storybook/deploys/69c4df9fbc0c7b0008dd2386

@github-actions github-actions bot added the maintenance Changes to the build process or auxilary tools and libraries or other maintenance label Mar 24, 2026
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion(blocking): Please, create this configuration the same way as style.js - https://github.com/alma-oss/spirit-design-system/blob/main/configs/eslint-config-spirit/style.js. In this case html.js.

templateEngineSyntax: TEMPLATE_ENGINE_SYNTAX.HANDLEBAR,
},
},
rules: {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion(non-blocking): It would be nice to add a reference to the rules documentation and describe why - https://github.com/yeonjuan/html-eslint/tree/main/docs/rules.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion(blocking): Please, use your agents and create a test for this file. You can take inspiration from: yeonjuan/html-eslint@main/packages/eslint-plugin/tests/rules/no-accesskey-attrs.test.js.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion(if-minor): Please, generate a style guide based on this and add it to the README.md of this config or to the developer's guide. Here is an example how it can be done: https://github.com/carbon-design-system/carbon/blob/main/docs/developer-handbook.md#coding-style

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Code Review: chore/html-eslint

Scope: 1 commit, 60 files (+5506 / -1996)

  1. Introduces a new shareable HTML ESLint flat config at eslint-config-spirit/html with Handlebars template support and project-specific rule tuning.
  2. Updates packages/web and packages/web-react ESLint flat configs so legacy JS/TS shareable configs are scoped to JS/TS files, and HTML files are linted via the new HTML config.
  3. Applies broad HTML lint normalization across component/helper demo templates; semantic deltas appear intentionally limited to duplicate class-attribute cleanup in a few snippets.

Findings

No actionable findings identified in the changed scope across security, bugs, silent failures, tests, types, simplification, or project-guideline compliance.

Review Summary

Label Count
praise 1

Verdict

APPROVE

praise (non-blocking): The rollout cleanly separates JS/TS and HTML linting responsibilities while keeping behavioral impact low.

Why: Introducing HTML linting in a dedicated shared config and scoping legacy configs reduces cross-language lint noise and makes future maintenance much clearer.

Open in Web View Automation 

Sent by Cursor Automation: Spirit Cursor Code Review

"version": "0.1.7",
"private": true,
"type": "commonjs",
"exports": {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

praise: ❤️

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

Labels

maintenance Changes to the build process or auxilary tools and libraries or other maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants