Skip to content

Commit

Permalink
chore: clean eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Nov 6, 2024
1 parent d233791 commit 44d7bee
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,46 +1,55 @@
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'
],
ignored: [
'dist'
],
test: [
'test/**/*.js'
]
};


export default [
{
ignores: [
'dist'
]
ignores: files.ignored
},
...bpmnIoPlugin.configs.browser.map(config => {

// build
...bpmnIoPlugin.configs.node.map(config => {
return {
...config,
ignores: buildScripts
files: files.build
};
}),
...bpmnIoPlugin.configs.node.map(config => {

// lib + test
...bpmnIoPlugin.configs.browser.map(config => {
return {
...config,
files: buildScripts
ignores: files.build
};
}),

// test
...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 44d7bee

Please sign in to comment.