Skip to content

Commit

Permalink
chore: migrate to ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Oct 11, 2024
1 parent a90b063 commit 6d899e5
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 23 deletions.
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

23 changes: 23 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

export default [
...bpmnIoPlugin.configs.recommended,
...bpmnIoPlugin.configs.browser.map((config) => {
return {
...config,
files: [ 'lib/**/*.js', 'test/**/*.js' ]
};
}),
...bpmnIoPlugin.configs.node.map((config) => {
return {
...config,
files: [ 'karma.config.js', 'test/*.js' ]
};
}),
...bpmnIoPlugin.configs.mocha.map((config) => {
return {
...config,
files: [ 'test/**/*.js' ]
};
})
];
2 changes: 0 additions & 2 deletions karma.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

var path = require('path');

var singleStart = process.env.SINGLE_START;
Expand Down
9 changes: 7 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"camunda-bpmn-moddle": "^7.0.1",
"chai": "^4.4.1",
"cross-env": "^7.0.3",
"eslint": "^9.0.0",
"eslint-plugin-bpmn-io": "^2.0.0",
"eslint": "^9.12.0",
"eslint-plugin-bpmn-io": "^2.0.2",
"execa": "^8.0.0",
"karma": "^6.4.2",
"karma-chai": "^0.1.0",
Expand Down
4 changes: 0 additions & 4 deletions test/.eslintrc

This file was deleted.

14 changes: 7 additions & 7 deletions test/camunda-cloud/CopyPasteBehaviorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ describe('CopyPasteBehavior', function() {

describe('timeCycle', function() {

it('should allow to copy to non-interrupting timer boundary event', function() {
it('should allow to copy to non-interrupting timer boundary event (start event)', function() {

// given
const timerEventDefinition = moddle.create('bpmn:TimerEventDefinition'),
Expand All @@ -809,7 +809,7 @@ describe('CopyPasteBehavior', function() {
});


it('should NOT allow to copy to non-interrupting timer boundary event', function() {
it('should NOT allow to copy to non-interrupting timer boundary event (intermediate catch event)', function() {

// given
const timerEventDefinition = moddle.create('bpmn:TimerEventDefinition'),
Expand Down Expand Up @@ -912,7 +912,7 @@ describe('CopyPasteBehavior', function() {

describe('timeDate', function() {

it('should allow to copy to non-interrupting timer boundary event', function() {
it('should allow to copy to non-interrupting timer boundary event (start event)', function() {

// given
const timerEventDefinition = moddle.create('bpmn:TimerEventDefinition'),
Expand All @@ -931,7 +931,7 @@ describe('CopyPasteBehavior', function() {
});


it('should allow to copy to non-interrupting timer boundary event', function() {
it('should allow to copy to non-interrupting timer boundary event (intermediate catch event)', function() {

// given
const timerEventDefinition = moddle.create('bpmn:TimerEventDefinition'),
Expand Down Expand Up @@ -969,7 +969,7 @@ describe('CopyPasteBehavior', function() {
});


it('should allow to copy to non-interrupting timer boundary event', function() {
it('should allow to copy to non-interrupting timer boundary event (boundary event)', function() {

// given
const timerEventDefinition = moddle.create('bpmn:TimerEventDefinition'),
Expand Down Expand Up @@ -1053,7 +1053,7 @@ describe('CopyPasteBehavior', function() {
});


it('should allow to copy to non-interrupting timer boundary event', function() {
it('should allow to copy to non-interrupting timer boundary event (intermediate catch event)', function() {

// given
const timerEventDefinition = moddle.create('bpmn:TimerEventDefinition'),
Expand Down Expand Up @@ -1091,7 +1091,7 @@ describe('CopyPasteBehavior', function() {
});


it('should allow to copy to non-interrupting timer boundary event', function() {
it('should allow to copy to non-interrupting timer boundary event (boundary event)', function() {

// given
const timerEventDefinition = moddle.create('bpmn:TimerEventDefinition'),
Expand Down
2 changes: 1 addition & 1 deletion test/camunda-platform/UpdateInputOutputBehaviorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('camunda-platform/features/modeling - UpdateInputOutputBehavior', funct
});


describe('remove camunda:InputOuput when removing camunda:InputParameter', function() {
describe('remove camunda:InputOuput when removing camunda:OutputParameter', function() {

let businessObject;

Expand Down

0 comments on commit 6d899e5

Please sign in to comment.