mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-05-17 15:19:23 +08:00
53 lines
772 B
JavaScript
53 lines
772 B
JavaScript
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';
|
|
|
|
const files = {
|
|
ignored: [
|
|
'dist',
|
|
'coverage'
|
|
],
|
|
build: [
|
|
'test/config/*.js',
|
|
'tasks/**/*.mjs',
|
|
'*.js',
|
|
'*.mjs'
|
|
],
|
|
test: [
|
|
'test/**/*.js'
|
|
]
|
|
};
|
|
|
|
export default [
|
|
{
|
|
ignores: files.ignored
|
|
},
|
|
...bpmnIoPlugin.configs.node.map(config => {
|
|
|
|
return {
|
|
...config,
|
|
files: files.build
|
|
};
|
|
}),
|
|
...bpmnIoPlugin.configs.browser.map(config => {
|
|
|
|
return {
|
|
...config,
|
|
ignores: files.build
|
|
};
|
|
}),
|
|
...bpmnIoPlugin.configs.mocha.map(config => {
|
|
|
|
return {
|
|
...config,
|
|
files: files.test,
|
|
};
|
|
}),
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
sinon: true,
|
|
require: true
|
|
}
|
|
},
|
|
files: files.test
|
|
}
|
|
]; |