From 19df3a217488b8148ad0118af53d8ff750584d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=E2=84=93e=20Hensel?= Date: Sat, 17 Aug 2024 03:17:28 +1000 Subject: [PATCH] fix eslint not working in IDEs (#10406) --- config/eslint.config.mjs => eslint.config.mjs | 3 --- package.json | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) rename config/eslint.config.mjs => eslint.config.mjs (98%) diff --git a/config/eslint.config.mjs b/eslint.config.mjs similarity index 98% rename from config/eslint.config.mjs rename to eslint.config.mjs index ca4636444..5e1ed02be 100644 --- a/config/eslint.config.mjs +++ b/eslint.config.mjs @@ -10,7 +10,6 @@ export default [ sourceType: 'module', globals: { ...globals.browser, - ...globals.es6 } }, rules: { @@ -111,7 +110,6 @@ export default [ languageOptions: { globals: { ...globals.node, - ...globals.es6, ...globals.mocha, 'd3': 'readonly', 'iD': 'readonly', @@ -130,7 +128,6 @@ export default [ languageOptions: { globals: { ...globals.node, - ...globals.es6 } } } diff --git a/package.json b/package.json index df6a33c4b..9274226e8 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "dist:svg:roentgen": "svg-sprite --shape-id-generator \"roentgen-%s\" --shape-dim-width 16 --shape-dim-height 16 --symbol --symbol-dest . --symbol-sprite dist/img/roentgen-sprite.svg svg/roentgen/*.svg", "dist:svg:temaki": "svg-sprite --symbol --symbol-dest . --shape-id-generator \"temaki-%s\" --symbol-sprite dist/img/temaki-sprite.svg node_modules/@rapideditor/temaki/icons/*.svg", "imagery": "node scripts/update_imagery.js", - "lint": "eslint config scripts test/spec modules -c config/eslint.config.mjs", - "lint:fix": "eslint scripts test/spec modules -c config/eslint.config.mjs --fix", + "lint": "eslint config scripts test/spec modules", + "lint:fix": "eslint scripts test/spec modules --fix", "start": "run-s start:watch", "start:single-build": "run-p build:js start:server", "start:watch": "run-p build:js:watch start:server",