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 856c600 commit e9d006c
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,39 @@ import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

import babelParser from '@babel/eslint-parser';

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

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

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

return {
...config,
files: [
'tasks/**/*.cjs'
]
files: files.build
};
}),
...bpmnIoPlugin.configs.mocha.map(config => {

return {
...config,
files: [
'test/**/*.js',
'test/**/*.cjs'
]
files: files.test
};
}),

Expand Down

0 comments on commit e9d006c

Please sign in to comment.