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 0d6952f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 103 deletions.
12 changes: 0 additions & 12 deletions .unimportedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,17 @@
"entry": ["./src/index.tsx"],
"ignorePatterns": ["**/node_modules/**", "build/**", "**/parked/**"],
"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
6 changes: 1 addition & 5 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,12 +20,9 @@
"@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",
Expand Down
83 changes: 0 additions & 83 deletions scripts/translator.js

This file was deleted.

0 comments on commit 0d6952f

Please sign in to comment.