From c94b98f38b94120f6bc2690f9fa2751b1a73cefc Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 5 Dec 2024 09:28:26 +0300 Subject: [PATCH] chore: Remove obsolete ESLint configuration files across multiple apps and packages --- apps/charterafrica/eslint.config.js | 14 -------------- apps/climatemappedafrica/eslint.config.js | 14 -------------- apps/codeforafrica/eslint.config.js | 14 -------------- eslint.config.js | 7 ++++++- packages/commons-ui-core/eslint.config.js | 3 --- packages/commons-ui-payload/eslint.config.js | 3 --- .../commons-ui-testing-library/eslint.config.js | 3 --- packages/{commons-ui-next => }/eslint.config.js | 0 packages/hurumap-core/eslint.config.js | 3 --- packages/jest-config-commons-ui/eslint.config.js | 3 --- .../playwright-config-commons-ui/eslint.config.js | 3 --- 11 files changed, 6 insertions(+), 61 deletions(-) delete mode 100644 apps/charterafrica/eslint.config.js delete mode 100644 apps/climatemappedafrica/eslint.config.js delete mode 100644 apps/codeforafrica/eslint.config.js delete mode 100644 packages/commons-ui-core/eslint.config.js delete mode 100644 packages/commons-ui-payload/eslint.config.js delete mode 100644 packages/commons-ui-testing-library/eslint.config.js rename packages/{commons-ui-next => }/eslint.config.js (100%) delete mode 100644 packages/hurumap-core/eslint.config.js delete mode 100644 packages/jest-config-commons-ui/eslint.config.js delete mode 100644 packages/playwright-config-commons-ui/eslint.config.js diff --git a/apps/charterafrica/eslint.config.js b/apps/charterafrica/eslint.config.js deleted file mode 100644 index b9b82ad8d..000000000 --- a/apps/charterafrica/eslint.config.js +++ /dev/null @@ -1,14 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui/next"); - -module.exports = [ - { - settings: { - "import/resolver": { - webpack: { - config: "./eslint.webpack.config.js", - }, - }, - }, - }, - ...eslintConfig, -]; diff --git a/apps/climatemappedafrica/eslint.config.js b/apps/climatemappedafrica/eslint.config.js deleted file mode 100644 index b9b82ad8d..000000000 --- a/apps/climatemappedafrica/eslint.config.js +++ /dev/null @@ -1,14 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui/next"); - -module.exports = [ - { - settings: { - "import/resolver": { - webpack: { - config: "./eslint.webpack.config.js", - }, - }, - }, - }, - ...eslintConfig, -]; diff --git a/apps/codeforafrica/eslint.config.js b/apps/codeforafrica/eslint.config.js deleted file mode 100644 index b9b82ad8d..000000000 --- a/apps/codeforafrica/eslint.config.js +++ /dev/null @@ -1,14 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui/next"); - -module.exports = [ - { - settings: { - "import/resolver": { - webpack: { - config: "./eslint.webpack.config.js", - }, - }, - }, - }, - ...eslintConfig, -]; diff --git a/eslint.config.js b/eslint.config.js index 3c3b83c5c..be999d719 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,8 +1,13 @@ const eslintConfig = require("eslint-config-commons-ui/next"); -export default [ +module.exports = [ { settings: { + "import/resolver": { + webpack: { + config: "./eslint.webpack.config.js", + }, + }, next: { rootDir: "apps/*/", }, diff --git a/packages/commons-ui-core/eslint.config.js b/packages/commons-ui-core/eslint.config.js deleted file mode 100644 index 94a06f3e4..000000000 --- a/packages/commons-ui-core/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui"); - -module.exports = [...eslintConfig]; diff --git a/packages/commons-ui-payload/eslint.config.js b/packages/commons-ui-payload/eslint.config.js deleted file mode 100644 index 1d414921d..000000000 --- a/packages/commons-ui-payload/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui"); - -module.exports = eslintConfig; diff --git a/packages/commons-ui-testing-library/eslint.config.js b/packages/commons-ui-testing-library/eslint.config.js deleted file mode 100644 index 1d414921d..000000000 --- a/packages/commons-ui-testing-library/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui"); - -module.exports = eslintConfig; diff --git a/packages/commons-ui-next/eslint.config.js b/packages/eslint.config.js similarity index 100% rename from packages/commons-ui-next/eslint.config.js rename to packages/eslint.config.js diff --git a/packages/hurumap-core/eslint.config.js b/packages/hurumap-core/eslint.config.js deleted file mode 100644 index 1d414921d..000000000 --- a/packages/hurumap-core/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui"); - -module.exports = eslintConfig; diff --git a/packages/jest-config-commons-ui/eslint.config.js b/packages/jest-config-commons-ui/eslint.config.js deleted file mode 100644 index 1d414921d..000000000 --- a/packages/jest-config-commons-ui/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui"); - -module.exports = eslintConfig; diff --git a/packages/playwright-config-commons-ui/eslint.config.js b/packages/playwright-config-commons-ui/eslint.config.js deleted file mode 100644 index 1d414921d..000000000 --- a/packages/playwright-config-commons-ui/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const eslintConfig = require("eslint-config-commons-ui"); - -module.exports = eslintConfig;