@openmrs/esm-dispensing-app 1.0.1-pre.114 → 1.0.1-pre.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "extends": ["ts-react-important-stuff", "plugin:prettier/recommended"],
3
3
  "parser": "@typescript-eslint/parser",
4
+ "plugins": ["unused-imports"],
4
5
  "ignorePatterns": ["**/*.test.tsx"],
5
6
  "rules": {
6
7
  "no-restricted-imports": [
@@ -27,6 +28,7 @@
27
28
  }
28
29
  ]
29
30
  }
30
- ]
31
+ ],
32
+ "unused-imports/no-unused-imports-ts": "error"
31
33
  }
32
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-dispensing-app",
3
- "version": "1.0.1-pre.114",
3
+ "version": "1.0.1-pre.115",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Medication dispensing application",
6
6
  "browser": "dist/openmrs-esm-dispensing-app.js",
@@ -74,6 +74,7 @@
74
74
  "eslint-config-prettier": "^8.3.0",
75
75
  "eslint-config-ts-react-important-stuff": "^3.0.0",
76
76
  "eslint-plugin-prettier": "^3.4.0",
77
+ "eslint-plugin-unused-imports": "^2.0.0",
77
78
  "husky": "^6.0.0",
78
79
  "identity-obj-proxy": "^3.0.0",
79
80
  "jest": "^28.1.2",
@@ -1,19 +1,14 @@
1
1
  import React, { useEffect } from "react";
2
2
  import {
3
3
  attach,
4
- ConfigurableLink,
5
4
  detach,
6
5
  ExtensionSlot,
7
- formatDate,
8
- interpolateString,
9
- parseDate,
10
6
  PatientUuid,
11
7
  useConfig,
12
8
  usePatient,
13
9
  } from "@openmrs/esm-framework";
14
10
  import styles from "./patient-details.scss";
15
11
  import { useTranslation } from "react-i18next";
16
- import { Patient } from "../types";
17
12
 
18
13
  const PatientDetails: React.FC<{
19
14
  patientUuid: PatientUuid;
@@ -1,4 +1,4 @@
1
- import { Type, validator } from "@openmrs/esm-framework";
1
+ import { Type } from "@openmrs/esm-framework";
2
2
 
3
3
  /**
4
4
  * This is the config schema. It expects a configuration object which
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import DispensingTiles from "../dispensing-tiles/dispensing-tiles.component";
3
2
  import Overlay from "../forms/overlay/overlay.component";
4
3
  import { PharmacyHeader } from "../pharmacy-header/pharmacy-header.component";
5
4
  import PrescriptionTabLists from "../prescriptions/prescription-tab-lists.component";