-
Notifications
You must be signed in to change notification settings - Fork 418
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
Migrate to ESLint 9 and flat config #936
Conversation
7da6b7a
to
9f6b348
Compare
I've update this PR to use Some minor adjustments for the mocha validations were needed, I propose to incorporate them in the plug-in in a patch version. My investigation is completed for the moment, @philippfromme consider when and how to take this back over. |
The nested test looks like a false positive. We should change the function name only. |
Updated to eslint-plugin-bpmn-io@2.0.1. |
So I guess we want to fix things like |
@philippfromme Yes. As mentioned in #936 (comment) I think the left over errors are quality of life. |
4a94f42
to
9137c12
Compare
@@ -490,7 +490,7 @@ describe('features/overlays', function() { | |||
} | |||
|
|||
|
|||
it('should position top left of shape', inject(function(overlays) { | |||
it(' (connection)', inject(function(overlays) { |
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.
Is this an accident?
@@ -313,29 +313,6 @@ describe('features/resize - Resize', function() { | |||
})); | |||
|
|||
|
|||
it('should resize to minimum bounds', inject(function(canvas, resize, dragging, elementFactory) { |
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.
Removed by accident, or duplicate?
@@ -329,61 +329,6 @@ describe('resize/ResizeUtil', function() { | |||
}); | |||
|
|||
|
|||
describe('getMinResizeBounds', function() { |
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.
Removed by accident or duplicate?
@@ -38,11 +38,6 @@ describe('i18n - translate', function() { | |||
expect(translate('<div />')).to.eql('<div />'); | |||
})); | |||
|
|||
|
|||
it('should handle missing replacement', inject(function(translate) { |
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.
Duplicate ✔️
@philippfromme Updated this PR as discussed with proper configuration of browser vs. node environments (ce60276). After you do it, then you see that 85027fe is indeed necessary. No-one but us defines that global. |
Updated to designated eslint format: 4b17955. |
@philippfromme Some open questions on this PR. |
@nikku The deleted tests were duplicates. |
Related to https://github.com/bpmn-io/internal-docs/issues/1042
Proposed Changes
Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}