Skip to content

Commit

Permalink
chore: adjust linter config to handle all files
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 11, 2024
1 parent 44ee221 commit ff654c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

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

export default [
...bpmnIoPlugin.configs.browser,
...bpmnIoPlugin.configs.browser.map(config => {
return {
...config,
ignores: buildScripts
};
}),
...bpmnIoPlugin.configs.node.map(config => {
return {
...config,
files: [
'karma.conf.js',
'**/test/**/*.js'
]
files: buildScripts
};
}),
...bpmnIoPlugin.configs.mocha.map(config => {
Expand Down
4 changes: 2 additions & 2 deletions test/spec/ModelerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ import colorPickerModule from '../../lib/color-picker';
import nyanDrawModule from '../../lib/nyan/draw';
import nyanPaletteModule from '../../lib/nyan/palette';

import diagram from './diagram.bpmn';

describe('modeler / nyan version', function() {

var diagram = require('./diagram.bpmn');
describe('modeler / nyan version', function() {


function withModeler(config, fn) {
Expand Down

0 comments on commit ff654c3

Please sign in to comment.