Skip to content

Commit

Permalink
chore: update eslint* dependencies (major) (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Oct 15, 2024
1 parent 93f10da commit 7eb762d
Show file tree
Hide file tree
Showing 17 changed files with 1,611 additions and 1,033 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

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

const buildScripts = [ '*.js', '*.mjs' ];

export default [
{
ignores: [ 'preact', 'dist' ],
},
...bpmnIoPlugin.configs.browser,
...bpmnIoPlugin.configs.jsx,
...bpmnIoPlugin.configs.mocha.map(config => {
return {
...config,
files: [
'test/**/*.js'
]
};
}),
...bpmnIoPlugin.configs.node.map(config => {
return {
...config,
files: [
...buildScripts,
'test/**/*.js'
]
};
}),
{
plugins: {
'react-hooks': reactHooks,
'import': eslintImport
},
rules: {
...reactHooks.configs.recommended.rules,
'import/first': 'error',
'import/no-amd': 'error',
'import/no-webpack-loader-syntax': 'error',
'react-hooks/exhaustive-deps': 'off',
'react/display-name': 'off',
'react/no-unknown-property': 'off',
},
},
{
languageOptions: {
globals: {
sinon: true
},
},
files: [
'test/**/*.js'
]
}
];
Loading

0 comments on commit 7eb762d

Please sign in to comment.