Closed philippfromme closed 1 month ago
I've update this PR to use eslint-plugin-bpmn-io@2
, and it found additional violations that are reasonable:
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 no-identical-title
and not disable that rule? We have the same issue in the Camunda Modeler where we would have to fix a couple of things.
@philippfromme Yes. As mentioned in https://github.com/bpmn-io/diagram-js/pull/936#issuecomment-2404679462 I think the left over errors are quality of life.
@philippfromme Updated this PR as discussed with proper configuration of browser vs. node environments (https://github.com/bpmn-io/diagram-js/pull/936/commits/ce60276a25f53cadd32397b5d552e92dbf7ee355). After you do it, then you see that https://github.com/bpmn-io/diagram-js/pull/936/commits/85027fef783bf52e20cd49d94d8f36a24a26ff39 is indeed necessary. No-one but us defines that global.
Updated to designated eslint format: https://github.com/bpmn-io/diagram-js/pull/936/commits/4b179558d18867c8d8b7da26f22c00f985dc1aac.
@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