Skip to content

Commit

Permalink
chore: migrate to ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Oct 11, 2024
1 parent 991ddb8 commit 434a2c7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

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

export default [
...bpmnIoPlugin.configs.browser.map((config) => {
return {
...config,
files: [ 'lib/**/*.js' ]
};
}),
...bpmnIoPlugin.configs.node.map((config) => {
return {
...config,
files: [ '*.js', '*.mjs', 'test/suite.js' ]
};
}),
...bpmnIoPlugin.configs.mocha.map((config) => {
return {
...config,
files: [ 'test/**/*.js' ]
};
})
];
21 changes: 13 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"devDependencies": {
"chai": "^4.3.10",
"diagram-js": "^14.0.0",
"eslint": "^9.0.0",
"eslint-plugin-bpmn-io": "^2.0.0",
"eslint": "^9.12.0",
"eslint-plugin-bpmn-io": "^2.0.2",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-firefox-launcher": "^2.1.2",
Expand Down
3 changes: 0 additions & 3 deletions test/.eslintrc

This file was deleted.

0 comments on commit 434a2c7

Please sign in to comment.