Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

Migrates from ESLint 8 (EOL) to ESLint 9 using the new flat config format. Removes the talend-scripts lint abstraction in favor of direct ESLint invocation.

Changes

@talend/eslint-config

  • Converted .eslintrc.json to eslint.config.js flat config format
  • Updated to ESLint 9.39.2 and TypeScript ESLint 8.x
  • Maintained TypeScript auto-detection and all existing rules
  • Removed unused plugin dependencies (angular, jest-dom, testing-library, mdx, storybook)

@talend/scripts-core

  • Removed lint command with deprecation message
  • Fixed exit codes to use standard exit(1)

All packages (36 modified)

  • Changed lint scripts from "talend-scripts lint" to "eslint ."
  • Added eslint.config.js referencing shared config in each package (51 total)

Usage

Before:

{
  "scripts": {
    "lint": "talend-scripts lint ./src/**/*.js"
  }
}

After:

{
  "scripts": {
    "lint": "eslint ."
  }
}

With optional customization:

// eslint.config.js
const baseConfig = require('@talend/eslint-config');

module.exports = [
  ...baseConfig,
  { rules: { 'no-console': 'warn' } }
];

Breaking Changes

  • Requires ESLint 9.x
  • talend-scripts lint command removed
  • Flat config format required (.eslintrc.* files ignored by ESLint 9)
Original prompt

This section details on the original issue you should resolve

<issue_title>Migrate to eslint 9</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

We are using a dead eslint 8

Describe the solution you'd like
A clear and concise description of what you want to happen.

  • update scripts-config-eslint to be ready to be used with eslint 9 as a config file
  • remove talend-scripts lint command
  • replace in each packages the lint script from talend-scripts to eslint 9 using the scripts-config-eslint package.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@changeset-bot
Copy link

changeset-bot bot commented Jan 30, 2026

⚠️ No Changeset found

Latest commit: d38640f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI and others added 5 commits January 30, 2026 15:33
Co-authored-by: jmfrancois <19857479+jmfrancois@users.noreply.github.com>
Co-authored-by: jmfrancois <19857479+jmfrancois@users.noreply.github.com>
Co-authored-by: jmfrancois <19857479+jmfrancois@users.noreply.github.com>
Co-authored-by: jmfrancois <19857479+jmfrancois@users.noreply.github.com>
… and JSON syntax

Co-authored-by: jmfrancois <19857479+jmfrancois@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate to eslint 9 and update scripts configuration Migrate to ESLint 9 with flat config Jan 30, 2026
Copilot AI requested a review from jmfrancois January 30, 2026 15:45
Copilot AI temporarily deployed to pull_request_unsafe January 30, 2026 16:12 Inactive
Copilot AI temporarily deployed to pull_request_unsafe January 30, 2026 16:12 Inactive
Copilot AI temporarily deployed to pull_request_unsafe January 30, 2026 16:12 Inactive
@github-actions
Copy link
Contributor

Storybook for this PR deployed on this github page

@github-actions
Copy link
Contributor

Title Lines Statements Branches Functions
assets-api Coverage: 28%
28.4% (25/88) 30.76% (16/52) 21.42% (3/14)
cmf Coverage: 89%
89.36% (1243/1391) 80.93% (607/750) 89.51% (350/391)
cmf-cqrs Coverage: 87%
87.43% (160/183) 70.23% (59/84) 84.21% (48/57)
cmf-router Coverage: 70%
69.23% (135/195) 55.71% (78/140) 56.81% (25/44)
components Coverage: 90%
90.7% (5565/6135) 81.59% (3196/3917) 88.14% (1390/1577)
containers Coverage: 84%
83.6% (1392/1665) 74.3% (694/934) 75% (327/436)
dataviz Coverage: 85%
85.44% (323/378) 66.66% (160/240) 75.79% (119/157)
design-system Coverage: 67%
66.49% (1016/1528) 50.84% (543/1068) 53.94% (219/406)
faceted-search Coverage: 85%
85.08% (639/751) 78.63% (287/365) 81.88% (226/276)
flow-designer Coverage: 70%
70.07% (651/929) 66.72% (355/532) 70.92% (200/282)
forms Coverage: 86%
86.27% (1640/1901) 75.89% (929/1224) 85.02% (460/541)
http Coverage: 100%
100% (85/85) 98.07% (51/52) 100% (34/34)
sagas Coverage: 92%
92.3% (24/26) 66.66% (4/6) 50% (2/4)
stepper Coverage: 80%
81.52% (150/184) 59.34% (54/91) 80.85% (38/47)
utils Coverage: 100%
100% (73/73) 90.9% (10/11) 100% (24/24)

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.

Migrate to eslint 9

2 participants