From 80646193b3c1b4aa9987106814038a2b68ad55c0 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Wed, 16 Oct 2024 22:38:15 +0200 Subject: [PATCH] chore: simplify eslint config --- eslint.config.mjs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index fdd5ab6..606ac04 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,15 +1,15 @@ import bpmnIoPlugin from 'eslint-plugin-bpmn-io'; const files = { - ignored: [ - 'coverage/**/*.js', - ], build: [ '*.js', '*.mjs', ], test: [ 'test/**/*.js' + ], + ignored: [ + 'coverage', ] }; @@ -17,18 +17,24 @@ export default [ { ignores: files.ignored }, - ...bpmnIoPlugin.configs.browser.map((config) => { + + // build + ...bpmnIoPlugin.configs.node.map((config) => { return { ...config, - ignores: files.build + files: files.build }; }), - ...bpmnIoPlugin.configs.node.map((config) => { + + // lib + test + ...bpmnIoPlugin.configs.browser.map((config) => { return { ...config, - files: files.build + ignores: files.build }; }), + + // test ...bpmnIoPlugin.configs.mocha.map((config) => { return { ...config,