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 a61da82 commit aefe16f
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

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


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',
'test/**/*.cjs'
]
files: files.test
};
})
];

0 comments on commit aefe16f

Please sign in to comment.