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 14, 2024
1 parent 6fde8e4 commit 7b6b1b9
Show file tree
Hide file tree
Showing 7 changed files with 1,618 additions and 1,193 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

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

export default [
...bpmnIoPlugin.configs.browser.map((config) => {
return {
...config,
files: [ 'src/**/*.js' ]
};
}),
...bpmnIoPlugin.configs.jsx.map((config) => {
return {
...config,
files: [ 'src/**/*.js', 'test/**/*.js' ]
};
}),
...bpmnIoPlugin.configs.node.map((config) => {
return {
...config,
files: [ '*.js', '*.mjs', 'test/suite.js' ]
};
}),
...bpmnIoPlugin.configs.mocha.map((config) => {
return {
...config,
files: [ 'test/**/*.js' ]
};
}),
{
rules: {
'max-len': [ 'error', { 'code': 90 } ],
'react/display-name': 'off',
'react/no-deprecated': 'off',
'react/jsx-key': 'off', // TODO(@barmac): reenable and fix problems
'react/no-unknown-property': 'off',
}
},
{
ignores: [
'lib'
]
}
];
Loading

0 comments on commit 7b6b1b9

Please sign in to comment.