-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update eslint dependencies #568
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// Disabling the following as they autofix ~900 files and will make conflict resolution hard. | ||
// | ||
// @TODO: Enable the following when merged in `feat/mainsail`. | ||
// If tests are failing, can copy the fixes from https://github.com/ArdentHQ/arkvault/pull/558 | ||
// as it contains all the fixes on tests & build errors. | ||
"testing-library/await-async-events": "off", | ||
"simple-import-sort/imports": "off", | ||
"simple-import-sort/imports": "off", | ||
"simple-import-sort/exports": "off", | ||
"@typescript-eslint/no-duplicate-type-constituents": "off", | ||
"unicorn/prefer-string-raw": "off", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a separate task to re-enable them https://app.clickup.com/t/86du1r0qb
it("should render ledger table in scanning mode", () => { | ||
render( | ||
<LedgerTable | ||
wallets={[]} | ||
selectedWallets={[]} | ||
isScanningMore | ||
isSelected={() => false} | ||
network={profile.wallets().first().network()} | ||
/>, | ||
); | ||
expect(screen.getByTestId("LedgerScanStep__scan-more")).toMatchSnapshot(); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just for coverage fix in wallet domain
/* eslint-disable import/no-relative-parent-imports */ | ||
/* eslint-disable sonarjs/no-duplicate-string */ | ||
/* eslint-disable import-alias/import-alias */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import-alias/import-alias
is now the equivalent rule for import/no-relative-parent-imports
ignores: [ | ||
"build/", | ||
"config-overrides.js", | ||
"coverage/", | ||
"dist/", | ||
"vitest.setup.ts", | ||
"public/", | ||
"**/cucumber/**", | ||
"**/e2e/**", | ||
"scripts/", | ||
"src/i18n", | ||
"src/resources/*", | ||
"src/tailwind.config.js", | ||
"src/tests", | ||
"*.d.ts", | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This replaces .eslintignore
as it's no longer supported in eslint 9.
Summary
Closes https://app.clickup.com/t/86dty3n3a
Updates eslint and it's plugins to latest version and migrates configuration to flat config.
The main change is that we dropped
eslint-plugin-import
that had rules for the module import handling (ordering, path aliasing et.al) as it doesn't yet support eslint 9 import-js/eslint-plugin-import#2948 and we replaced it with alternative plugins that should do approx the same:Created a dedicated task to monitor & handle the plugin compatibility https://app.clickup.com/t/86du1dtca separately
Checklist