Skip to content

Commit 3634c60

Browse files
barmacnikku
authored andcommitted
deps: update to eslint@9
1 parent 869b184 commit 3634c60

File tree

7 files changed

+1410
-747
lines changed

7 files changed

+1410
-747
lines changed

.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

eslint.config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';
2+
3+
const files = {
4+
source: [
5+
'*.js',
6+
'*.mjs'
7+
],
8+
test: [
9+
'test/**/*.js'
10+
]
11+
};
12+
13+
export default [
14+
15+
// source
16+
...bpmnIoPlugin.configs.recommended.map(config => {
17+
return {
18+
...config,
19+
files: files.source
20+
};
21+
}),
22+
23+
// test
24+
...bpmnIoPlugin.configs.mocha.map(config => {
25+
return {
26+
...config,
27+
files: files.test
28+
};
29+
})
30+
];

intersect.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ function findBezierIntersections(bez1, bez2, justCount) {
311311

312312
var l1 = bezlen(...bez1),
313313
l2 = bezlen(...bez2),
314+
// eslint-disable-next-line no-bitwise
314315
n1 = isLine(bez1) ? 1 : ~~(l1 / 5) || 1,
316+
// eslint-disable-next-line no-bitwise
315317
n2 = isLine(bez2) ? 1 : ~~(l2 / 5) || 1,
316318
dots1 = [],
317319
dots2 = [],

0 commit comments

Comments
 (0)