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 7fd8c39 commit 1c8e705
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 21 deletions.
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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: [
'*.cjs'
]
};
}),
...bpmnIoPlugin.configs.mocha.map(config => {
return {
...config,
files: [
'**/test/**/*.js'
]
};
})
];
18 changes: 11 additions & 7 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 @@ -19,7 +19,7 @@
"scripts": {
"all": "run-s lint test check-types",
"check-types": "tsc --noEmit --noImplicitAny",
"lint": "eslint . --ext cjs,js",
"lint": "eslint .",
"test": "karma start karma.conf.cjs",
"dev": "npm test -- --auto-watch --no-single-run"
},
Expand All @@ -38,7 +38,7 @@
"@types/karma-mocha": "^1.3.4",
"@types/mocha": "^10.0.6",
"eslint": "^9.0.0",
"eslint-plugin-bpmn-io": "^2.0.0",
"eslint-plugin-bpmn-io": "^2.0.2",
"karma": "^6.4.1",
"karma-chrome-launcher": "^3.1.1",
"karma-firefox-launcher": "^2.1.2",
Expand Down
6 changes: 0 additions & 6 deletions test/.eslintrc

This file was deleted.

1 change: 0 additions & 1 deletion test/suite.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line spaced-comment
/// <reference types="webpack/module.d.ts" />

const allTests = import.meta.webpackContext('.', {
Expand Down

0 comments on commit 1c8e705

Please sign in to comment.