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 9e9cd3e commit fd3db89
Show file tree
Hide file tree
Showing 6 changed files with 1,176 additions and 753 deletions.
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

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

import babelParser from '@babel/eslint-parser';

export default [
...bpmnIoPlugin.configs.node.map(config => {
return {
...config,
files: [
'karma.conf.js',
'**/test/**/*.js'
]
};
}),
...bpmnIoPlugin.configs.mocha.map(config => {
return {
...config,
files: [
'**/test/**/*.js'
]
};
}),
{
languageOptions: {
globals: {
sinon: true
},
},
files: [
'**/test/**/*.js'
]
},

// hook up babel parser
{
files: [ '**/*.js', '**/*.mjs' ],
languageOptions: {
parser: babelParser,
parserOptions: {
requireConfigFile: false,
babelOptions: {
babelrc: false,
configFile: false,
plugins: [
'@babel/plugin-syntax-import-attributes'
]
},
}
}
}
];
Loading

0 comments on commit fd3db89

Please sign in to comment.