-
Notifications
You must be signed in to change notification settings - Fork 33
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
[INFRA] Review and improve the eslint configuration #2742
Labels
chore
Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
Milestone
Comments
tbouffard
added
the
chore
Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
label
Jun 13, 2023
This was referenced Jul 18, 2023
This was referenced Aug 24, 2023
This was referenced Aug 25, 2023
This was referenced Aug 25, 2023
This was referenced Sep 19, 2023
Merged
Merged
This was referenced Oct 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We often encounter linting issues that have no corresponding rules configured in ESLint. Some of the common areas include the import order that often appears in test files, and the lines before and after imports. We often see additional changes in PRs or new imports that disrupt the existing order.
It's likely that there are other ways to improve our ESLint configuration. Let's explore and implement new rules to streamline development.
Elements to review
Fix wrong link in the configuration about the "project" configuration. The new link is https://typescript-eslint.io/packages/parser/#project chore(eslint): fix wrong link in the ESLint configuration about the "project" property #2816
Enforce descriptions when disabling ESLint rules: require-description - ESLint 7 and later.
Import order considerations:
eslint-plugin-import
dependency #2842Address `switch' statements:
Enforce object properties order. To avoid useless discussion, find a convention. For instance, sort properties in the alphabetical orders
ShapeBpmnSemantic
#2911 (comment)ShapeBpmnSemantic
#2911 (comment)ShapeBpmnSemantic
#2911 (comment)Explore new
typescript-eslint
v6 recommended rules and configuration details. Test chore(eslint): add typescript-eslint/recommended-type-checked rule #2812@typescript-eslint/consistent-type-definitions
.While tested during the version bump, it generated too many bugs for immediate implementation. See PR #2768 for more details.
We should review and decide which rules to implement or skip. If skipped, document the rationale and reference it here.
Implementations:
@typescript-eslint/dot-notation
rule #2914POCs:
Enable eslint-plugin-jest-dom see chore(eslint): add ESLint configuration for Jest bpmn-visualization-addons#108
Evaluate https://mysticatea.github.io/eslint-plugin-eslint-comments/
Evaluate jest-extended rules chore(eslint): use
eslint-plugin-jest-extended
#2820Evaluate eslint-plugin-unicorn
unicorn/recommended
rules #2824eslint-plugin-unicorn
dependency andfilename-case
rule #2833rework the prettier integration. See if we want to switch to alternatives. This may also help for [INFRA] Share the eslint configuration #2771
In the demo template and the Bonita Day 2023 demo, we use
xo
, which includeseslint-plugin-unicorn
and provides many handy ESLint rules.The text was updated successfully, but these errors were encountered: