Skip to content

Commit

Permalink
chore: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 11, 2024
1 parent d70c698 commit 066a38b
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

const buildScripts = [
'*.js',
'*.mjs',
'test/distro/karma.conf.js'
];
const files = {
build: [
'*.js',
'*.mjs',
'test/distro/karma.conf.js'
],
dist: [
'dist'
],
test: [
'test/**/*.js'
]
};

export default [
{
ignores: [
'dist'
]
ignores: files.dist
},
...bpmnIoPlugin.configs.browser.map(config => {
return {
...config,
ignores: buildScripts
ignores: files.build
};
}),
...bpmnIoPlugin.configs.node.map(config => {
return {
...config,
files: buildScripts
files: files.build
};
}),
...bpmnIoPlugin.configs.mocha.map(config => {
return {
...config,
files: [
'test/**/*.js'
]
files: files.test
};
}),
{
files: [
'test/**/*.js'
],
languageOptions: {
globals: {
require: false,
sinon: false
}
}
},
files: files.test
}
];

0 comments on commit 066a38b

Please sign in to comment.