fix(import-order): fix import order for all files by defining an esli…#473
Conversation
|
f6ecf7f to
76b38fb
Compare
ryanbas21
left a comment
There was a problem hiding this comment.
I believe all the changes here are eslint/automatic so i just reviewed the eslint config changes.
if i'm right as long as CI is happy 👍
Yes, I verified each file change yesterday, and it strictly follows all the rules to the T. We just need to review the import order in eslint, and see if it's not too strict. Either way, we can update it later if needed! |
080bfd4 to
1226501
Compare
76b38fb to
2629b2b
Compare
This PR fixes the import orders for all files in login framework.
Justin provided feedback on import order in the journey client migration PR: #468 (comment)
Based on his comment on another PR about the expected import order: https://github.com/ForgeRock/ping-javascript-sdk/pull/541/changes#r2956779035 I am creating this new PR which specifies the exact import order using an eslint rule.
Here is the import order rule:
// import any proper modules first
import { StepType } from '@forgerock/sdk-types';
// import any file-based modules second
import { journey } from './client.store.js';
// import any types from proper modules third
import type { GenericError } from '@forgerock/sdk-types';
// import any types from file-based modules last
import type { SomeType } from './some-file.js';