Skip to content

Commit f4b83b1

Browse files
committed
chore: migrate to eslint@9
Related to bpmn-io/internal-docs#1042
1 parent 66fb62c commit f4b83b1

File tree

15 files changed

+18
-60
lines changed

15 files changed

+18
-60
lines changed

.eslintrc

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

eslint.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ export default [
3434
}),
3535
{
3636
rules: {
37-
'max-len': [ 2, { 'code': 90 } ],
38-
'no-restricted-imports': [ 2, {
37+
'max-len': [ 'error', { 'code': 90 } ],
38+
'no-restricted-imports': [ 'error', {
3939
'patterns': [ 'dmn-js/src', 'dmn-js-*/src' ]
40-
} ]
40+
} ],
41+
'react/display-name': 'off',
42+
'react/no-deprecated': 'off',
43+
'react/jsx-key': 'off', // TODO(@barmac): reenable and fix problems
44+
'react/no-unknown-property': 'off',
4145
}
4246
}
4347
];

packages/dmn-js-boxed-expression/test/.eslintrc

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

packages/dmn-js-decision-table/test/.eslintrc

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

packages/dmn-js-decision-table/test/spec/features/copy-cut-paste/DescriptorUtilSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('DescriptorUtil', function() {
177177
}));
178178

179179

180-
it('should create Row descriptor', inject(function(elementRegistry) {
180+
it('should create Col descriptor', inject(function(elementRegistry) {
181181

182182
// given
183183
const col = elementRegistry.get('input1');

packages/dmn-js-decision-table/test/spec/features/modeling/ModelingSpec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe('Modeling', function() {
153153
}));
154154

155155

156-
it('should undo', inject(function(modeling, commandStack) {
156+
it('should redo', inject(function(modeling, commandStack) {
157157

158158
// given
159159
var col = modeling.addCol({ type: 'dmn:OutputClause' }, 3);
@@ -250,7 +250,7 @@ describe('Modeling', function() {
250250
}));
251251

252252

253-
it('should undo', inject(function(modeling, sheet, commandStack) {
253+
it('should redo', inject(function(modeling, sheet, commandStack) {
254254

255255
// given
256256
var table = sheet.getRoot();
@@ -301,7 +301,7 @@ describe('Modeling', function() {
301301
}));
302302

303303

304-
it('should undo', inject(function(modeling, sheet, commandStack) {
304+
it('should redo', inject(function(modeling, sheet, commandStack) {
305305

306306
// given
307307
var table = sheet.getRoot();
@@ -356,7 +356,7 @@ describe('Modeling', function() {
356356
}));
357357

358358

359-
it('should undo', inject(function(modeling, sheet, commandStack) {
359+
it('should redo', inject(function(modeling, sheet, commandStack) {
360360

361361
// given
362362
var table = sheet.getRoot();
@@ -407,7 +407,7 @@ describe('Modeling', function() {
407407
}));
408408

409409

410-
it('should undo', inject(function(modeling, sheet, commandStack) {
410+
it('should redo', inject(function(modeling, sheet, commandStack) {
411411

412412
// given
413413
var table = sheet.getRoot();

packages/dmn-js-decision-table/test/spec/features/modeling/behavior/IdChangeBehaviorSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('IdChangeBehavior', function() {
1515
}));
1616

1717

18-
it('should update IDs on decision ID change', inject(function(modeling, sheet) {
18+
it('should requirements refs on decision ID change', inject(function(modeling, sheet) {
1919

2020
// given
2121
const root = sheet.getRoot(),
@@ -48,7 +48,7 @@ describe('IdChangeBehavior', function() {
4848
}));
4949

5050

51-
it('should update IDs on decision ID change', inject(function(modeling, sheet) {
51+
it('should association refs on decision ID change', inject(function(modeling, sheet) {
5252

5353
// given
5454
const root = sheet.getRoot(),

packages/dmn-js-decision-table/test/spec/features/simple-string-edit/SimpleStringEditSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('simple string edit', function() {
169169
}));
170170

171171

172-
it('should override invalid custom value', inject(function(elementRegistry) {
172+
it('should override invalid custom value (negate)', inject(function(elementRegistry) {
173173

174174
// given
175175
const inputEntry3 = elementRegistry.get('inputEntry3');

packages/dmn-js-drd/test/.eslintrc

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

packages/dmn-js-drd/test/spec/features/rules/DrdRulesSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ describe('features/rules', function() {
232232
});
233233

234234

235-
describe('move', function() {
235+
describe('move decision', function() {
236236

237237
it('decision -> definitions', inject(
238238
function(drdRules, elementRegistry) {

0 commit comments

Comments
 (0)