Skip to content

Commit

Permalink
Remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
barshathakuri committed Mar 19, 2024
1 parent ea3877e commit b518327
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 110 deletions.
16 changes: 1 addition & 15 deletions .unimportedrc.json
Original file line number Diff line number Diff line change
@@ -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/*"]
}
Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link
rel="icon"
type="image/svg+xml"
href=""
href="#"
/>
<meta
name="viewport"
Expand All @@ -25,7 +25,6 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">

<!-- link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@300;400;600;700&family=OpenSans:wght@300;400;600;700&display=swap" rel="stylesheet" -->
<style>
html, body {
margin: 0;
Expand Down
11 changes: 2 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"lint:js": "eslint src",
"lint:css": "stylelint \"./src/**/*.css\"",
"lint:unused": "unimported",
"lint:translation": "node ./scripts/translator.js",
"lint": "yarn lint:js && yarn lint:css && yarn lint:unused && yarn lint:translation",
"lint": "yarn lint:js && yarn lint:css && yarn lint:unused",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc"
Expand All @@ -21,19 +20,14 @@
"@graphql-codegen/introspection": "^4.0.3",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@ifrc-go/icons": "^1.3.3",
"@mapbox/mapbox-gl-draw": "^1.2.0",
"@sentry/react": "^7.81.1",
"@togglecorp/fujs": "^2.1.1",
"@togglecorp/re-map": "^0.2.0-beta-6",
"@turf/bbox": "^6.5.0",
"@turf/buffer": "^6.5.0",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"mapbox-gl": "^1.13.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.3",
"sanitize-html": "^2.9.0"
"react-router-dom": "^6.22.3"
},
"devDependencies": {
"@eslint/eslintrc": "^2.0.3",
Expand Down Expand Up @@ -62,7 +56,6 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"fast-glob": "^3.3.0",
"happy-dom": "^9.18.3",
"openapi-typescript": "6.5.5",
"postcss": "^8.3.0",
"postcss-nested": "^6.0.1",
"postcss-normalize": "^10.0.1",
Expand Down
83 changes: 0 additions & 83 deletions scripts/translator.js

This file was deleted.

0 comments on commit b518327

Please sign in to comment.