Skip to content

Commit 2426302

Browse files
committed
chore: migrate to ESLint 9
1 parent 068515a commit 2426302

File tree

6 files changed

+30
-19
lines changed

6 files changed

+30
-19
lines changed

.eslintrc

-5
This file was deleted.

eslint.config.mjs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';
2+
3+
export default [
4+
...bpmnIoPlugin.configs.browser.map((config) => {
5+
return {
6+
...config,
7+
files: [ 'lib/**/*.js' ]
8+
};
9+
}),
10+
...bpmnIoPlugin.configs.node.map((config) => {
11+
return {
12+
...config,
13+
files: [ '*.js', '*.mjs', 'test/testBundle.js' ]
14+
};
15+
}),
16+
...bpmnIoPlugin.configs.mocha.map((config) => {
17+
return {
18+
...config,
19+
files: [ 'test/**/*.js' ]
20+
};
21+
})
22+
];

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"cmmn-js": "^0.20.0",
3838
"diagram-js-origin": "^1.4.0",
3939
"dmn-js": "^16.0.0",
40-
"eslint": "^9.0.0",
41-
"eslint-plugin-bpmn-io": "^2.0.0",
40+
"eslint": "^9.12.0",
41+
"eslint-plugin-bpmn-io": "^2.0.2",
4242
"karma": "^6.4.2",
4343
"karma-chai": "^0.1.0",
4444
"karma-chrome-launcher": "^3.2.0",

test/.eslintrc

-6
This file was deleted.

test/integration/bpmn-js.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var NoGridSnapping = {
1010

1111
describe('alignToOrigin - bpmn-js integration', function() {
1212

13-
it('should extend BpmnModeler with grid snapping', async function() {
13+
it('should extend BpmnModeler without grid snapping', async function() {
1414

1515
// given
1616
var diagramXML = require('./process.bpmn').default;

0 commit comments

Comments
 (0)