Skip to content

style(web-react): set lint dependency and remove unrelevant eslint ignores from demo files#2561

Open
literat wants to merge 3 commits intomainfrom
style/web-react-demo-dist
Open

style(web-react): set lint dependency and remove unrelevant eslint ignores from demo files#2561
literat wants to merge 3 commits intomainfrom
style/web-react-demo-dist

Conversation

@literat
Copy link
Copy Markdown
Collaborator

@literat literat commented Mar 30, 2026

Description

Set up build dependency for web-react linting, so we can get rid of some ESLint ignore comments.

Lerna/Nx will take care of building the required packages before running lint. Uses cache, rebuilds are quick.

Additional context

Issue reference

Copilot AI review requested due to automatic review settings March 30, 2026 20:07
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 30, 2026

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

Name Link
🔨 Latest commit 53d792a
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-docsite/deploys/69cbb78bc97c8e000934a058
😎 Deploy Preview https://deploy-preview-2561--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 30, 2026

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit 53d792a
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system/deploys/69cbb78bf22cc7000954154a
😎 Deploy Preview https://deploy-preview-2561--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 30, 2026

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

Name Link
🔨 Latest commit 53d792a
🔍 Latest deploy log https://app.netlify.com/projects/spirit-design-system-storybook/deploys/69cbb78b0cfee2000884c5eb

@literat literat changed the title style(web-react): set lint dependency and remove unrelevant eslint ig… style(web-react): set lint dependency and remove unrelevant eslint ignores from demo files Mar 30, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the web-react lint workflow to ensure linting runs with required build artifacts present (notably for icons/tokens subpath exports), and cleans up now-unnecessary ESLint suppression comments across demo entrypoints. It also aligns some workspace lint ignore patterns and dependency catalog usage.

Changes:

  • Add an Nx lint target for @alma-oss/spirit-web-react that depends on building @alma-oss/spirit-icons and @alma-oss/spirit-design-tokens.
  • Remove previously-needed eslint-disable import/extensions, import/no-unresolved blocks from web-react demo-related files (and src/icons/index.tsx).
  • Adjust workspace-level lint ignore patterns and normalize lerna/nx dependency declarations via Yarn catalogs.

Reviewed changes

Copilot reviewed 53 out of 54 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
yarn.lock Reflects dependency catalog updates (adds nx and switches lerna reference to catalog).
package.json Switches lerna devDependency to catalog:script to align with Yarn catalogs.
.yarnrc.yml Updates the lerna catalog entry to use the patched lerna@9.0.3 spec; keeps nx cataloged.
eslint.config.mjs Adds apps/docsite to root ESLint ignore list (root eslint ./ runs).
examples/next-with-app-router/eslint.config.mjs Ignores generated next-env.d.ts in the example app ESLint config.
packages/web-react/project.json Adds an Nx lint target that runs ESLint from the package root and depends on icons/tokens builds.
packages/web-react/package.json Adds nx as a devDependency and switches lint script to run via Nx.
packages/web-react/src/icons/index.tsx Removes now-unnecessary ESLint disable comments tied to missing build artifacts.
packages/web-react/src/components/UNSTABLE_Header/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/UNSTABLE_FileUpload/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/UNSTABLE_Attachment/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Truncate/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Tooltip/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Toggle/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Toast/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Timeline/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/TextField/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/TextArea/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Tag/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/SplitButton/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Spinner/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Slider/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/SkipLink/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Skeleton/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Select/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/SegmentedControl/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/ScrollView/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Radio/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/PricingPlan/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Pagination/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Navigation/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Modal/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Item/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/IconBox/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Icon/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Header/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Footer/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/FileUploader/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/FieldGroup/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Dropdown/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Drawer/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/ControlButton/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Collapse/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Collapse/demo/Collapse.tsx Removes now-unnecessary comment about CI dist directory.
packages/web-react/src/components/Checkbox/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Card/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/ButtonLink/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Button/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Breadcrumbs/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Avatar/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Alert/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Accordion/demo/index.tsx Removes now-unnecessary ESLint disable comments.
packages/web-react/src/components/Accordion/demo/AccordionUncontrolled.tsx Removes now-unnecessary comment about CI dist directory.
packages/web-react/src/components/Accordion/demo/Accordion.tsx Removes now-unnecessary comment about CI dist directory.
Comments suppressed due to low confidence (1)

examples/next-with-app-router/eslint.config.mjs:30

  • next-env.d.ts is now listed under ignores, but this config file also contains a later files: ['next-env.d.ts'] override block. Since ignored files are skipped entirely, that override becomes dead code. Consider removing either the ignore entry or the redundant override to keep the config consistent.
      '**/build/**',
      '**/.next/**',
      '**/.coverage/**',
      'next-env.d.ts',

      // # Highly recommended to re-include JavaScript dotfiles to lint them
      // # (This will cause .*rc.js to be linted by ESLint 🤘)
      '!.*.js',

Copilot AI review requested due to automatic review settings March 31, 2026 12:00
literat added 3 commits March 31, 2026 14:01
  * resolve the dependencies between tasks using nx
  * some packages must be built before linting
  * using lerna, it breaks the terminal stream, because of mixing lerna and nx commands
@literat literat force-pushed the style/web-react-demo-dist branch from 7184854 to 53d792a Compare March 31, 2026 12:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 54 out of 56 changed files in this pull request and generated no new comments.

@literat literat marked this pull request as ready for review March 31, 2026 12:13
@literat literat requested a review from crishpeen March 31, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants