Skip to content

Commit

Permalink
chore: migrate to eslint@9
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Oct 11, 2024
1 parent 36987fb commit 93a1bc5
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 60 deletions.
25 changes: 0 additions & 25 deletions .eslintrc

This file was deleted.

10 changes: 7 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ export default [
}),
{
rules: {
'max-len': [ 2, { 'code': 90 } ],
'no-restricted-imports': [ 2, {
'max-len': [ 'error', { 'code': 90 } ],
'no-restricted-imports': [ 'error', {
'patterns': [ 'dmn-js/src', 'dmn-js-*/src' ]
} ]
} ],
'react/display-name': 'off',
'react/no-deprecated': 'off',
'react/jsx-key': 'off', // TODO(@barmac): reenable and fix problems
'react/no-unknown-property': 'off',
}
}
];
3 changes: 0 additions & 3 deletions packages/dmn-js-boxed-expression/test/.eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/dmn-js-decision-table/test/.eslintrc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ describe('DescriptorUtil', function() {
}));


it('should create Row descriptor', inject(function(elementRegistry) {
it('should create Col descriptor', inject(function(elementRegistry) {

// given
const col = elementRegistry.get('input1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ describe('Modeling', function() {
}));


it('should undo', inject(function(modeling, commandStack) {
it('should redo', inject(function(modeling, commandStack) {

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


it('should undo', inject(function(modeling, sheet, commandStack) {
it('should redo', inject(function(modeling, sheet, commandStack) {

// given
var table = sheet.getRoot();
Expand Down Expand Up @@ -301,7 +301,7 @@ describe('Modeling', function() {
}));


it('should undo', inject(function(modeling, sheet, commandStack) {
it('should redo', inject(function(modeling, sheet, commandStack) {

// given
var table = sheet.getRoot();
Expand Down Expand Up @@ -356,7 +356,7 @@ describe('Modeling', function() {
}));


it('should undo', inject(function(modeling, sheet, commandStack) {
it('should redo', inject(function(modeling, sheet, commandStack) {

// given
var table = sheet.getRoot();
Expand Down Expand Up @@ -407,7 +407,7 @@ describe('Modeling', function() {
}));


it('should undo', inject(function(modeling, sheet, commandStack) {
it('should redo', inject(function(modeling, sheet, commandStack) {

// given
var table = sheet.getRoot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('IdChangeBehavior', function() {
}));


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

// given
const root = sheet.getRoot(),
Expand Down Expand Up @@ -48,7 +48,7 @@ describe('IdChangeBehavior', function() {
}));


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

// given
const root = sheet.getRoot(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('simple string edit', function() {
}));


it('should override invalid custom value', inject(function(elementRegistry) {
it('should override invalid custom value (negate)', inject(function(elementRegistry) {

// given
const inputEntry3 = elementRegistry.get('inputEntry3');
Expand Down
3 changes: 0 additions & 3 deletions packages/dmn-js-drd/test/.eslintrc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe('features/rules', function() {
});


describe('move', function() {
describe('move decision', function() {

it('decision -> definitions', inject(
function(drdRules, elementRegistry) {
Expand Down
3 changes: 0 additions & 3 deletions packages/dmn-js-literal-expression/test/.eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/dmn-js-shared/test/.eslintrc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ describe('components/InputSelect', function() {
});


it('should hide options on ENTER', function() {
it('should hide options on ESCAPE', function() {

// given
const renderedTree = renderIntoDocument(
Expand Down
3 changes: 0 additions & 3 deletions packages/dmn-js/tasks/.eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/dmn-js/test/.eslintrc

This file was deleted.

0 comments on commit 93a1bc5

Please sign in to comment.