chore: [IOPLT-1738] Migrate from eslint to oxlint - #7989
Draft
dmnplb wants to merge 13 commits into
Draft
Conversation
dmnplb
changed the base branch from
master
to
IOPLT-1739-migrate-to-eslint9-flatconfig
April 3, 2026 14:37
dmnplb
changed the base branch from
IOPLT-1739-migrate-to-eslint9-flatconfig
to
master
April 3, 2026 14:39
Contributor
Jira Pull Request LinkThis Pull Request refers to Jira issues: |
Contributor
PR Title Validation for conventional commit type✅ All good! PR title follows the conventional commit type. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7989 +/- ##
==========================================
+ Coverage 62.85% 62.87% +0.01%
==========================================
Files 1963 1963
Lines 37210 37210
Branches 6277 6277
==========================================
+ Hits 23389 23395 +6
+ Misses 12436 12432 -4
+ Partials 1385 1383 -2
... and 429 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
…to-oxlint # Conflicts: # apps/main-app/package.json # apps/main-app/scripts/ts/checkOutdatedDependencies/types/GroupBySeverity.ts # apps/main-app/scripts/ts/checkOutdatedDependencies/types/GroupByType.ts # apps/main-app/ts/RootContainer.tsx # apps/main-app/ts/components/BonusCard/BonusCardCounter.tsx # apps/main-app/ts/components/Carousel.tsx # apps/main-app/ts/components/IOMarkdown/renderRules.tsx # apps/main-app/ts/features/authentication/common/utils/login.ts # apps/main-app/ts/features/authentication/login/cie/screens/CieLoginConfigScreen.tsx # apps/main-app/ts/features/authentication/login/cie/screens/CieWrongCiePinScreen.tsx # apps/main-app/ts/features/authentication/login/cie/store/actions/cie.ts # apps/main-app/ts/features/barcode/components/BarcodeScanBaseScreenComponent.tsx # apps/main-app/ts/features/barcode/hooks/useIOBarcodeCameraScanner.tsx # apps/main-app/ts/features/barcode/hooks/useIOBarcodeFileReader.tsx # apps/main-app/ts/features/barcode/screens/BarcodeScanScreen.tsx # apps/main-app/ts/features/bonus/cgn/saga/networking/eyca/activation/getEycaActivationSaga.ts # apps/main-app/ts/features/bonus/cgn/saga/orchestration/eyca/eycaActivationSaga.ts # apps/main-app/ts/features/bonus/cgn/types/DiscountBucketCodeResponse.ts # apps/main-app/ts/features/common/components/cie/CieCardReadContent.tsx # apps/main-app/ts/features/connectivity/saga/index.ts # apps/main-app/ts/features/design-system/components/DSIconViewerBox.tsx # apps/main-app/ts/features/fci/saga/index.ts # apps/main-app/ts/features/fci/screens/valid/FciDocumentsScreen.tsx # apps/main-app/ts/features/fci/store/actions/index.ts # apps/main-app/ts/features/fci/store/reducers/fciSecurityLevelReducer.ts # apps/main-app/ts/features/idpay/configuration/components/IdPayInstrumentEnrollmentSwitch.tsx # apps/main-app/ts/features/idpay/onboarding/machine/actors.ts # apps/main-app/ts/features/ingress/saga/index.ts # apps/main-app/ts/features/itwallet/analytics/saga/credentialAnalyticsHandlers.ts # apps/main-app/ts/features/itwallet/analytics/utils/types.ts # apps/main-app/ts/features/itwallet/common/components/ItwCredentialCard/config.ts # apps/main-app/ts/features/itwallet/common/components/ItwCredentialCard/index.tsx # apps/main-app/ts/features/itwallet/common/components/ItwEidLifecycleAlert.tsx # apps/main-app/ts/features/itwallet/common/components/ItwRetryableQRCode.tsx # apps/main-app/ts/features/itwallet/common/components/ItwSkeumorphicCard/types.ts # apps/main-app/ts/features/itwallet/common/components/PoweredByItWalletText.tsx # apps/main-app/ts/features/itwallet/common/saga/environment.ts # apps/main-app/ts/features/itwallet/common/saga/offlineAccess.ts # apps/main-app/ts/features/itwallet/common/utils/ItwCodecUtils.ts # apps/main-app/ts/features/itwallet/common/utils/constants.ts # apps/main-app/ts/features/itwallet/common/utils/itwClaimsUtils.ts # apps/main-app/ts/features/itwallet/common/utils/itwCredentialIssuanceUtils.ts # apps/main-app/ts/features/itwallet/common/utils/itwMocksUtils.ts # apps/main-app/ts/features/itwallet/common/utils/itwTypesUtils.ts # apps/main-app/ts/features/itwallet/identification/cie/hooks/useCieManager.tsx # apps/main-app/ts/features/itwallet/identification/cieId/hooks/useCieIdApp.ts # apps/main-app/ts/features/itwallet/lifecycle/saga/checkWalletInstanceStateSaga.ts # apps/main-app/ts/features/itwallet/machine/credential/context.ts # apps/main-app/ts/features/itwallet/machine/credential/failure.ts # apps/main-app/ts/features/itwallet/machine/credential/selectors.ts # apps/main-app/ts/features/itwallet/machine/eid/__tests__/machine.test.ts # apps/main-app/ts/features/itwallet/machine/eid/context.ts # apps/main-app/ts/features/itwallet/machine/eid/failure.ts # apps/main-app/ts/features/itwallet/machine/upgrade/context.ts # apps/main-app/ts/features/itwallet/machine/upgrade/input.ts # apps/main-app/ts/features/itwallet/presentation/common/components/ItwClaimsSelector/index.tsx # apps/main-app/ts/features/itwallet/presentation/proximity/machine/context.ts # apps/main-app/ts/features/itwallet/presentation/proximity/machine/failure.ts # apps/main-app/ts/features/itwallet/presentation/proximity/utils/errors.ts # apps/main-app/ts/features/itwallet/presentation/proximity/utils/types.ts # apps/main-app/ts/features/itwallet/presentation/remote/machine/context.ts # apps/main-app/ts/features/itwallet/presentation/remote/machine/failure.ts # apps/main-app/ts/features/itwallet/presentation/remote/utils/itwRemoteTypeUtils.ts # apps/main-app/ts/features/itwallet/statusList/saga/index.ts # apps/main-app/ts/features/itwallet/statusList/tasks/index.ts # apps/main-app/ts/features/itwallet/statusList/utils/storage.ts # apps/main-app/ts/features/itwallet/trustmark/machine/context.ts # apps/main-app/ts/features/itwallet/walletInstance/store/reducers/index.ts # apps/main-app/ts/features/lollipop/httpSignature/signature.ts # apps/main-app/ts/features/lollipop/index.ts # apps/main-app/ts/features/lollipop/saga/index.ts # apps/main-app/ts/features/lollipop/store/reducers/lollipop.ts # apps/main-app/ts/features/lollipop/utils/fetch.ts # apps/main-app/ts/features/messages/components/MessageDetail/MessageDetailsHeader.tsx # apps/main-app/ts/features/messages/saga/handleClearAttachments.ts # apps/main-app/ts/features/messages/saga/handleUpsertMessageStatusAttributes.ts # apps/main-app/ts/features/messages/store/reducers/allPaginated/types.ts # apps/main-app/ts/features/messages/types/index.ts # apps/main-app/ts/features/payments/receipts/store/actions/index.ts # apps/main-app/ts/features/pn/hooks/__tests__/usePnPreferencesFetcher.test.tsx # apps/main-app/ts/features/services/common/components/ListItemSearchInstitution.tsx # apps/main-app/ts/features/services/details/types/ServicePreferenceResponse.ts # apps/main-app/ts/features/settings/common/sagas/profile.ts # apps/main-app/ts/features/settings/preferences/screens/EmailForwardingScreen.tsx # apps/main-app/ts/features/settings/userData/shared/screens/EmailValidationSendEmailScreen.tsx # apps/main-app/ts/features/wallet/saga/handleWalletAnalyticsSaga.ts # apps/main-app/ts/features/wallet/types/index.ts # apps/main-app/ts/hooks/useStatusAlertProps.tsx # apps/main-app/ts/sagas/contentLoaders.ts # apps/main-app/ts/sagas/mixpanel.ts # apps/main-app/ts/sagas/workUnit/index.ts # apps/main-app/ts/store/actions/application.ts # apps/main-app/ts/store/reducers/persistedPreferences.ts # apps/main-app/ts/store/reducers/search.ts # apps/main-app/ts/types/helpers.ts # apps/main-app/ts/types/pagopa.ts # apps/main-app/ts/types/utils.ts # apps/main-app/ts/utils/SessionManager.ts # apps/main-app/ts/utils/analytics.ts # apps/main-app/ts/utils/brightness.ts # apps/main-app/ts/utils/calendar.ts # apps/main-app/ts/utils/dates.ts # apps/main-app/ts/utils/fetch.ts # apps/main-app/ts/utils/keychain.ts # apps/main-app/ts/utils/locale.ts # apps/main-app/ts/utils/profile.ts # apps/main-app/ts/utils/reporters.ts # apps/main-app/ts/utils/strings.ts # eslint.config.mjs # package.json # pnpm-lock.yaml
…Plugins Load eslint-plugin-perfectionist through oxlint's jsPlugins (oxlint has no native perfectionist rules) and enable a high-value subset in natural order: sort-imports, sort-named-imports, sort-jsx-props, sort-interfaces, sort-object-types, sort-union-types, sort-enums. sort-objects stays off, matching master, since its auto-fix corrupts multi-line values. The codebase already complies, so this adds enforcement without churn.
…to-oxlint # Conflicts: # apps/main-app/package.json # apps/main-app/ts/features/messages/store/reducers/__tests__/messagePrecondition.test.ts
…to-oxlint Ports the lint rules master added in the meantime to the oxlint config: `no-dynamic-delete`, `no-misused-promises`, `strict-boolean-expressions`, `react/jsx-no-constructed-context-values` and the custom `i18n-no-dynamic-keys` rule. The local ESLint plugin now hosts more than one rule, so it is exposed as `eslint-plugin-io-app` with an index aggregating the rules. Master's `i18n-no-unused-keys` rule is not ported: it lints `locales/it/index.json` through a custom ESLint parser, which oxlint's JS plugin bridge does not support.
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.
Note
Don't merge this PR until the official
nxplugin is available. For more info, please refer to:Short description
Migrate from
eslintfromoxlintwith almost full compatibility.Caution
The custom
i18n-no-unused-keysrule is not ported: it lintslocales/it/index.jsonthrough a custom ESLint parser, whichoxlint's JS plugin bridge doesn't support (yet).List of changes proposed in this pull request
one-varrule to removecompatlayerDependencies
prettierwithoxfmt#7972eslintflat config (v9) #7974How to test
Describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.