-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
refactor: Integrate consistent-type-imports
in FE packages (no-changelog)
#6060
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
Files matching
Files matching
Files matching
Make sure to check off this list before asking for review. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6060 +/- ##
=======================================
Coverage 18.59% 18.59%
=======================================
Files 2585 2585
Lines 116668 116678 +10
Branches 18181 18181
=======================================
+ Hits 21690 21697 +7
- Misses 94340 94343 +3
Partials 638 638
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
✅ All Cypress E2E specs passed |
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.
Nice one! I found a few cases where we could adjust/remove imports. It seems like the linting is not triggered for imports which are not used
@@ -182,7 +182,8 @@ import { nodeHelpers } from '@/mixins/nodeHelpers'; | |||
import { workflowHelpers } from '@/mixins/workflowHelpers'; | |||
import { pinData } from '@/mixins/pinData'; | |||
|
|||
import { IDataObject, INodeTypeDescription, ITaskData, NodeHelpers } from 'n8n-workflow'; | |||
import type { INodeTypeDescription, ITaskData } from 'n8n-workflow'; | |||
import { IDataObject, NodeHelpers } from 'n8n-workflow'; |
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.
IDataObject is type, but it's not used in the file
XYPosition, | ||
} from '@/Interface'; | ||
import type { IExecutionsSummary, INodeUi, XYPosition } from '@/Interface'; | ||
import { INodeUpdatePropertiesInformation } from '@/Interface'; |
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.
INodeUpdatePropertiesInformation is type, but it's not used in the file
} from 'n8n-workflow'; | ||
import { | ||
import type { INodeTypeDescription, INodeActionTypeDescription } from 'n8n-workflow'; | ||
import { INodeTypeNameVersion } from 'n8n-workflow'; |
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.
INodeTypeNameVersion is type but not used in this file
@@ -341,6 +339,7 @@ import { | |||
INodePropertyCollection, | |||
NodeParameterValueType, | |||
} from 'n8n-workflow'; | |||
import { NodeHelpers, NodeParameterValue } from 'n8n-workflow'; |
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.
NodeParameterValue is type but not used in the file
NodeParameterValue, | ||
NodeParameterValueType, | ||
} from 'n8n-workflow'; | ||
import { INodeUi, IUpdateInformation, TargetItem } from '@/Interface'; | ||
import { IRunData, isResourceLocatorValue } from 'n8n-workflow'; |
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.
IRunData is type but not used in the file
import { Schema, Optional, Primitives } from '@/Interface'; | ||
import type { IDataObject } from 'n8n-workflow'; | ||
import { jsonParse } from 'n8n-workflow'; | ||
import type { Schema, Optional, Primitives } from '@/Interface'; | ||
import { isObj } from '@/utils/typeGuards'; | ||
import { generatePath } from '@/utils/mappingUtils'; | ||
import { DateTime } from 'luxon'; |
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.
DateTime is a type but not used in this file
@@ -45,21 +45,22 @@ | |||
|
|||
<script lang="ts"> | |||
import { showMessage } from '@/mixins/showMessage'; | |||
import { ICredentialsResponse, ICredentialTypeMap, IUser } from '@/Interface'; | |||
import type { ICredentialsResponse, ICredentialTypeMap } from '@/Interface'; | |||
import { IUser } from '@/Interface'; |
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 a type but not used in the file
} from 'n8n-workflow'; | ||
import type { IExecutionsCurrentSummaryExtended, IRestApiContext } from '@/Interface'; | ||
import type { ExecutionFilters, ExecutionOptions, IDataObject } from 'n8n-workflow'; | ||
import { ExecutionStatus, WorkflowExecuteMode } from 'n8n-workflow'; |
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.
These are types but not used in the file
Thanks for reviewing! Addressed in the two linked PRs above. |
* master: refactor: Async functions don't need to explicitly return promises (no-changelog) (#6041) SSO/SAML : add Base URL to redirects in acsHandler (#5923) refactor: Integrate `consistent-type-imports` in FE packages (no-changelog) (#6060) fix(core): Skip license activation when instance was already activated (#6064) refactor(core): Setup decorator based RBAC (no-changelog) (#5787) # Conflicts: # packages/editor-ui/src/mixins/restApi.ts
* master: refactor(editor): Delete leftover restApi mixin file (no-changelog) (#6074) docs: Remove version notice from overhauled nodes (no-changelog) (#6071) refactor(editor): Combine type imports in `editor-ui` (no-changelog) (#6072) refactor: Async functions don't need to explicitly return promises (no-changelog) (#6041) SSO/SAML : add Base URL to redirects in acsHandler (#5923) refactor: Integrate `consistent-type-imports` in FE packages (no-changelog) (#6060) fix(core): Skip license activation when instance was already activated (#6064) refactor(core): Setup decorator based RBAC (no-changelog) (#5787) test: Add run linking tests (#6061) # Conflicts: # packages/editor-ui/src/components/ParameterInputWrapper.vue
…gelog) (n8n-io#6060) * 👕 Move `consistent-type-imports` to top level * 👕 Apply lintfixes * 👕 Apply more lintfixes * 👕 More lintfixes * 👕 More lintfixes
Got released with |
https://linear.app/n8n/issue/N8N-6054/integrate-consistent-type-imports-in-fe-packages
e2e pass: https://github.com/n8n-io/n8n/actions/runs/4784768930