Skip to content
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

Merged
merged 9 commits into from
Jul 8, 2024
Merged

Conversation

goga-m
Copy link
Contributor

@goga-m goga-m commented Jul 4, 2024

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:
2024-07-03-123252_1087x134_scrot

Created a dedicated task to monitor & handle the plugin compatibility https://app.clickup.com/t/86du1dtca separately

Checklist

  • My changes look good in both light AND dark mode
  • The change is not hardcoded to a single network, but has multi-asset in mind
  • I checked my changes for obvious issues, debug statements and commented code
  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

Copy link

vercel bot commented Jul 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arkvault ✅ Ready (Inspect) Visit Preview Jul 5, 2024 8:35am

@github-actions github-actions bot added the chore label Jul 4, 2024
Comment on lines +263 to +273
// 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",
Copy link
Contributor Author

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

Comment on lines +146 to +158
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();
});

Copy link
Contributor Author

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

Comment on lines -3 to +4
/* eslint-disable import/no-relative-parent-imports */
/* eslint-disable sonarjs/no-duplicate-string */
/* eslint-disable import-alias/import-alias */
Copy link
Contributor Author

@goga-m goga-m Jul 4, 2024

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

Comment on lines +32 to +47
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",
],
Copy link
Contributor Author

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.

@ItsANameToo ItsANameToo merged commit 804350e into develop Jul 8, 2024
29 checks passed
@ItsANameToo ItsANameToo deleted the chore/migrate-eslint branch July 8, 2024 09:59
@ItsANameToo ItsANameToo added this to the 1.16.0 milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants