Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Moved the PR to draft because like described in this comment lets do the nimble transition after AzDo. We should iterate in AzDo first and we don't have the time to review the change in nimble right now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Milan, I want to ensure I understood correctly. Are you suggesting that we update the SLE apps first, followed by the Nimble update? Additionally, in your other comment, you mentioned updating the Azdo pipelineβ€”could you please clarify what specific updates are required there?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are you suggesting that we update the SLE apps first

yep!

mentioned updating the Azdo pipelineβ€”could you please clarify what specific updates are required there?

sorry wasn't being clear, the SLE apps is what I meant. Not aware of any azdo pipeline changes.

Copy link
Copy Markdown
Member

@rajsite rajsite Oct 3, 2025

Choose a reason for hiding this comment

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

fyi @gokulprasanth-ni as part of regular dependency updates we pulled in the the stylistic eslint changes (from pre v9) into nimble. We also made some intentional rule tweaks which are now merged in main. Just an fyi when the eslint v9 upgrade is revisited.

Hopefully now there will be far fewer changes in the PRs as the stylistic update was merged separately

Copy link
Copy Markdown
Member

@rajsite rajsite Oct 5, 2025

Choose a reason for hiding this comment

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

The goal of splitting the prettier update to a separate PR was to reduce the number of formatting changes in this PR. The assumption was that prettier is what caused so many changes but there are still over 100 files changed in this PR many with just formatting changes. Does splitting the prettier update into a separate PR actually make a difference?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@rajsite @jattasNI I tried updating the prettier-eslint and prettier-eslint-cli packages version in the Nimble monorepo to make them compatible with ESLint v9. Following this upgrade, we tried enabling ESLint and Prettier for linting across several packages in the workspace.

Problem:

During this update, they were conflicts between ESLint and Prettier that create a circular fixing problem:

  • ESLint runs first and reports certain formatting/style violations
  • Prettier runs subsequently and reports different or conflicting style issues
  • When we fix the ESLint errors, those changes are flagged as violations by Prettier
  • Conversely, when we fix Prettier issues, ESLint reports new violations
  • This creates an endless loop where fixing one tool's issues breaks the other tool's rules

Proposed Solutions:

We're considering the following approaches to resolve this conflict:

  • Disable ESLint style rules: Turn off all style/formatting-related rules in ESLint (such as indent, quotes, semi, comma-dangle, etc.) and rely exclusively on Prettier for code formatting. This would allow ESLint to focus on code quality and potential bugs while Prettier handles all stylistic concerns.

  • Use eslint-plugin-prettier: Integrate Prettier directly into ESLint by using eslint-plugin-prettier along with eslint-config-prettier. This approach:

    • Runs Prettier as an ESLint rule
    • Automatically disables conflicting ESLint formatting rules via eslint-config-prettier
    • Reports Prettier formatting issues as ESLint errors
    • Provides a single, unified linting experience with no conflicts

But we are still not sure whether these approaches works fine or not. We would like to get your thoughts on this and also any alternate solutions available to fix this issue.

Copy link
Copy Markdown
Member

@rajsite rajsite Nov 17, 2025

Choose a reason for hiding this comment

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

Looking at it again I'm not sure why we call both prettier-eslint and eslint via the cli. I think we can just prettier-eslint which is aware of the eslint configuration already.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Closing this PR as it will be handled in the below PR

#2768

"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/jasmine-parameterized",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/nimble-angular",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/nimble-components",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/nimble-react",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/nimble-tokens",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/ok-angular",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/ok-components",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
7 changes: 7 additions & 0 deletions change/@ni-ok-react-5a17a0f5-60d0-4281-a4db-f359fc6ad458.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/ok-react",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/spright-angular",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/spright-components",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/spright-react",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Upgrade to ESLint v9 and update the configuration to use the flat configuration format",
"packageName": "@ni/xliff-to-json-converter",
"email": "131153319+gokulprasanth-ni@users.noreply.github.com",
"dependentChangeType": "patch"
}
Loading
Loading