From b51832785f58953d1d4b0e35e8f61ca958fc95a5 Mon Sep 17 00:00:00 2001 From: barshathakuri Date: Tue, 19 Mar 2024 15:56:07 +0545 Subject: [PATCH] Remove unused dependencies --- .unimportedrc.json | 16 +-------- eslint.config.js | 1 - index.html | 3 +- package.json | 11 ++---- scripts/translator.js | 83 ------------------------------------------- 5 files changed, 4 insertions(+), 110 deletions(-) delete mode 100644 scripts/translator.js diff --git a/.unimportedrc.json b/.unimportedrc.json index 941f62eb..2baf1ef6 100644 --- a/.unimportedrc.json +++ b/.unimportedrc.json @@ -1,30 +1,16 @@ { "entry": ["./src/index.tsx"], - "ignorePatterns": ["**/node_modules/**", "build/**", "**/parked/**"], + "ignorePatterns": ["**/node_modules/**", "build/**"], "ignoreUnimported": ["**/*.d.ts", "**/*.test.*"], - "ignoreUnresolved": [ - "#assets/content/operational_timeline_title.svg?react", - "#assets/content/operational_timeline_body.svg?react" - ], "ignoreUnused": [ - "@tinymce/tinymce-react", - "@mapbox/mapbox-gl-draw", "@apollo/client", "@graphql-codegen/introspection", "@graphql-codegen/typescript-operations", "@togglecorp/re-map", - "@turf/bbox", - "@turf/buffer", - "graphql-request", - "sanitize-html", "@sentry/react" ], "extensions": [".ts", ".js", ".tsx", ".jsx"], "aliases": { - "#assets/*": ["./src/assets/*"], - "#components/*": ["./src/components/*"], - "#config": ["./src/config"], - "#strings/*": ["./src/strings/*"], "#utils/*": ["./src/utils/*"], "#views/*": ["./src/views/*"] } diff --git a/eslint.config.js b/eslint.config.js index 891f8a8a..67c54cda 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -120,7 +120,6 @@ const appConfigs = compat.config({ }).map((conf) => ({ ...conf, files: ['src/**/*.tsx', 'src/**/*.jsx', 'src/**/*.ts', 'src/**/*.js'], - ignores: ['src/generated/types.ts'], })); const otherConfig = { diff --git a/index.html b/index.html index 3db286e5..ce1d6e84 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ -