ESLint migration followups#7774
Conversation
**forge code** Unused eslint-disable directive (no problems were reported from 'no-useless-return').eslint Unused eslint-disable directive (no problems were reported from 'n/no-unpublished-require').eslint Unused eslint-disable directive (no problems were reported from 'promise/no-callback-in-promise').eslint **vue files** Unused eslint-disable directive (no problems were reported from 'no-template-curly-in-string').eslint Unused eslint-disable directive (no problems were reported from 'vue/one-component-per-file').eslint Unused eslint-disable directive (no problems were reported from 'promise/no-nesting').eslint Unused eslint-disable directive (no problems were reported from 'n/no-extraneous-import').eslint **frontend test files** Unused eslint-disable directive (no problems were reported from 'n/no-process-exit').eslint Unused eslint-disable directive (no problems were reported from 'cypress/require-data-selectors').eslint **forge test files** Unused eslint-disable directive (no problems were reported from 'no-unused-vars').eslint Unused eslint-disable directive (no problems were reported from 'camelcase').eslint
|
Added a [x] ✅ against DB Migrations since the lint fixes touched some of those files. NOTE they will not be re-executed Also, odd test fail - 99.99% sure it is unrelated / transient! running tests agian. Captured below for reference: |
|
how do we get past the Check DB migrations error "Error: Migrations added out of order" No migrations were added here - only clean up of lint warnings. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7774 +/- ##
==========================================
- Coverage 75.38% 75.37% -0.02%
==========================================
Files 428 428
Lines 22539 22539
Branches 5944 5944
==========================================
- Hits 16992 16989 -3
- Misses 5547 5550 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
5 migration files have been modified, and they are not the newest migration files stored in the |
|
On the other hand, the |
|
To back up what @hardillb states, the forge application uses the date in the file name to determine is a migration is executed. These are stored in the DB once ran. In short, these changes are a no-op
This is a very uncommon change - so lets not fix up the script just now.
Thanks for the nod. With all said, I am happy for this to be reviewed & merged as is. |
Description
Part 2 of upgrade to eslint migration
The initial PR performed the migration and handled actual errors. This PR handles the 100+ warnings that were temporarily ignored via deliberate/temporary TODOs in the lint config.
Specifics
forge code
Unused eslint-disable directive (no problems were reported from 'no-useless-return').eslint
Unused eslint-disable directive (no problems were reported from 'n/no-unpublished-require').eslint
Unused eslint-disable directive (no problems were reported from 'promise/no-callback-in-promise').eslint
vue files
Unused eslint-disable directive (no problems were reported from 'no-template-curly-in-string').eslint
Unused eslint-disable directive (no problems were reported from 'vue/one-component-per-file').eslint
Unused eslint-disable directive (no problems were reported from 'promise/no-nesting').eslint
Unused eslint-disable directive (no problems were reported from 'n/no-extraneous-import').eslint
frontend test files
Unused eslint-disable directive (no problems were reported from 'n/no-process-exit').eslint
Unused eslint-disable directive (no problems were reported from 'cypress/require-data-selectors').eslint
forge test files
Unused eslint-disable directive (no problems were reported from 'no-unused-vars').eslint
Unused eslint-disable directive (no problems were reported from 'camelcase').eslint
vue props
Prop XXX should be optional.eslintvue/no-required-prop-with-default
Where sensible, either the
requiredwas setfalse(removed) OR thedefaultwas removed (on a case by case basis)These ↑ particular changes (in the vue files to the
props) were discussed and agreed with @cstnsCLI warnings:
Removed the
/* eslint-env browser */directives from both files as they are already covered byeslint.config.mjs:236-244Note
Windows cannot run full lint since the addition of
flowfuse\scripts\lint-colors.jsthis will be addressed in a follow up issue / PRRelated Issue(s)
#6458
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel