Skip to content

Commit

Permalink
chore: simplify eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 16, 2024
1 parent fc5c649 commit 8064619
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

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

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

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

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

// test
...bpmnIoPlugin.configs.mocha.map((config) => {
return {
...config,
Expand Down

0 comments on commit 8064619

Please sign in to comment.