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

Eslint v9 #8236

Merged
merged 17 commits into from
Jun 3, 2024
Merged

Eslint v9 #8236

merged 17 commits into from
Jun 3, 2024

Conversation

ylavoie
Copy link
Contributor

@ylavoie ylavoie commented Jun 2, 2024

Upgrade ESLint to version 9.
Upgrade related plugins for JS, Vue, CSS, Markdown & Jess
Remove deprecated plugins for Dojo
Move ESLint config out of package.json to its own file, as required.

@ylavoie ylavoie requested a review from ehuelsmann June 2, 2024 05:36
Copy link
Member

@ehuelsmann ehuelsmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of work done! Thanks!

UI/eslint.config.mjs Outdated Show resolved Hide resolved
UI/eslint.config.mjs Show resolved Hide resolved
UI/eslint.config.mjs Show resolved Hide resolved
UI/eslint.config.mjs Show resolved Hide resolved
UI/eslint.config.mjs Show resolved Hide resolved
UI/src/components/ConfigTableRow.vue Show resolved Hide resolved
UI/src/main-vue.js Show resolved Hide resolved
UI/src/robot-vue.js Outdated Show resolved Hide resolved
@@ -1,4 +1,7 @@
/** @format */
/* eslint-disable vue/component-definition-name-casing */
/* eslint-disable vue/require-prop-types, vue/one-component-per-file */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require-prop-types is globally disabled, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for vue files

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by that? Why does this file want to report a vue error in the first place? It's not a Vue file? (Can't we disable Vue checks for non-Vue files?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require-prop-types is only globally disabled in the vue section, not in the js one. lsmb_elements.js is a vue component

UI/tests/common/mocks/store_sessionUser_handlers.js Outdated Show resolved Hide resolved
@ylavoie ylavoie merged commit b61300e into ledgersmb:master Jun 3, 2024
22 checks passed
@ylavoie ylavoie deleted the eslint-v9 branch June 12, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants