Skip to content

Commit

Permalink
chore: migrate to eslint@9
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Oct 11, 2024
1 parent aedaacb commit d70c698
Show file tree
Hide file tree
Showing 6 changed files with 942 additions and 623 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

const buildScripts = [
'*.js',
'*.mjs',
'test/distro/karma.conf.js'
];

export default [
{
ignores: [
'dist'
]
},
...bpmnIoPlugin.configs.browser.map(config => {
return {
...config,
ignores: buildScripts
};
}),
...bpmnIoPlugin.configs.node.map(config => {
return {
...config,
files: buildScripts
};
}),
...bpmnIoPlugin.configs.mocha.map(config => {
return {
...config,
files: [
'test/**/*.js'
]
};
}),
{
files: [
'test/**/*.js'
],
languageOptions: {
globals: {
require: false,
sinon: false
}
}
}
];
Loading

0 comments on commit d70c698

Please sign in to comment.