Skip to content

Commit

Permalink
chore: update config to eslint@9
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 16, 2024
1 parent 0707e21 commit cc5fba4
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 8 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

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

const files = {
lib: [
'lib/**/*.js'
],
test: [
'test/**/*.js',
'test/**/*.cjs'
],
ignored: [
'dist'
]
};

export default [
{
'ignores': files.ignored
},

// build
...bpmnIoPlugin.configs.node.map(config => {

return {
...config,
ignores: files.lib
};
}),

// lib + test
...bpmnIoPlugin.configs.recommended.map(config => {

return {
...config,
files: files.lib
};
}),

// test
...bpmnIoPlugin.configs.mocha.map(config => {

return {
...config,
files: files.test
};
})
];
3 changes: 0 additions & 3 deletions test/.eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion test/spec/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ describe('Reader', function() {

describe('simple nested properties', function() {

it('parse boolean property', async function() {
it('parse int property', async function() {

// given
var reader = new Reader(model);
Expand Down

0 comments on commit cc5fba4

Please sign in to comment.