From 3b5bfaca64e18e54c0889d23509a1cbfd1bcf81d Mon Sep 17 00:00:00 2001 From: Jarek Danielak Date: Fri, 11 Oct 2024 15:01:30 +0200 Subject: [PATCH] chore: fix eslint --- eslint.config.mjs | 14 ++++++++++++-- i18n/package.json | 2 -- modeler/package.json | 2 -- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 4d6121ee..fe450a05 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -2,10 +2,20 @@ import bpmnIoPlugin from 'eslint-plugin-bpmn-io'; export default [ { - ignores: [ '**/public' ], + ignores: [ '**/public', '**/dist' ], }, ...bpmnIoPlugin.configs.browser, - ...bpmnIoPlugin.configs.node, + ...bpmnIoPlugin.configs.node.map(config => { + return { + ...config, + files: [ + '**/*.config.js', + '**/*.conf.js', + '**/server.js', + '**/test/**/*.js', + ] + }; + }), ...bpmnIoPlugin.configs.mocha.map(config => { return { ...config, diff --git a/i18n/package.json b/i18n/package.json index 32a995f7..23fdc139 100644 --- a/i18n/package.json +++ b/i18n/package.json @@ -29,8 +29,6 @@ "devDependencies": { "copy-webpack-plugin": "^12.0.0", "css-loader": "^7.1.2", - "eslint": "^9.0.0", - "eslint-plugin-bpmn-io": "^2.0.0", "npm-run-all2": "^6.2.2", "raw-loader": "^4.0.0", "style-loader": "^4.0.0", diff --git a/modeler/package.json b/modeler/package.json index 6c9c35cd..e988447e 100644 --- a/modeler/package.json +++ b/modeler/package.json @@ -29,8 +29,6 @@ "devDependencies": { "copy-webpack-plugin": "^12.0.0", "css-loader": "^7.1.2", - "eslint": "^9.0.0", - "eslint-plugin-bpmn-io": "^2.0.0", "npm-run-all2": "^6.2.2", "raw-loader": "^4.0.0", "style-loader": "^4.0.0",