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 ff654c3 commit 3c958a0
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

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

export default [
...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
};
})
];

0 comments on commit 3c958a0

Please sign in to comment.