You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make files look the same, we should enforce the following order:
Types
Enums
Constants
Functions
In test files, the order should look like this:
Module mocks (using jest.mock)
Typed module mocks (using jest.mocked)
Types
Enums
Constants
Tests
Functions
In some cases, a file may be so long that the author may wish to locate a type next to the place in which it's used, such as options for a function. Instead of doing this, this should act as a code smell and should indicate that we ought to move the function along with its type to a separate file.
The text was updated successfully, but these errors were encountered:
To make files look the same, we should enforce the following order:
In test files, the order should look like this:
jest.mock
)jest.mocked
)In some cases, a file may be so long that the author may wish to locate a type next to the place in which it's used, such as options for a function. Instead of doing this, this should act as a code smell and should indicate that we ought to move the function along with its type to a separate file.
The text was updated successfully, but these errors were encountered: