Skip to content

Commit

Permalink
(chore) Tooling updates
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Dec 4, 2024
1 parent 6ae1fda commit 23df68f
Show file tree
Hide file tree
Showing 9 changed files with 1,866 additions and 934 deletions.
7 changes: 5 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"project": true,
"tsconfigRootDir": "__dirname"
},
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "import", "react-hooks"],
"root": true,
"rules": {
// turned off to keep the diff small for now
Expand Down Expand Up @@ -43,6 +43,7 @@
"default": "generic"
}
],
"import/no-duplicates": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-restricted-imports": [
"error",
Expand All @@ -69,6 +70,8 @@
}
]
}
]
],
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error"
}
}
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.2.2.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.5.3.cjs
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@openmrs/esm-fast-data-entry-app",
"version": "1.0.0",
"license": "MPL-2.0",
"description": "An OpenMRS 3.x microfrontend",
"description": "O3 frontend module for fast data entry using the OpenMRS Angular Form Engine",
"browser": "dist/openmrs-esm-fast-data-entry-app.js",
"main": "src/index.ts",
"source": true,
Expand Down Expand Up @@ -69,6 +69,8 @@
"css-loader": "^6.8.1",
"eslint": "^8.49.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react-hooks": "^5.0.0",
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.3",
Expand All @@ -85,7 +87,7 @@
"semver": "^7.5.4",
"swc-loader": "^0.2.3",
"swr": "^2.2.4",
"turbo": "^1.10.13",
"turbo": "^2.3.3",
"typescript": "^4.9.5",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
Expand All @@ -94,7 +96,7 @@
"i18next": "^21.10.0",
"i18next-parser": "^6.6.0",
"react-hook-form": "^7.34.2",
"turbo": "^1.12.4",
"turbo": "^2.3.3",
"uuid": "^9.0.1"
},
"packageManager": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/FormBootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const FormBootstrap = ({

useEffect(() => {
return () => detach('form-widget-slot', 'form-widget-slot');
});
}, []);

// FIXME This should not be necessary
const [showForm, setShowForm] = useState(true);
Expand Down
2 changes: 2 additions & 0 deletions src/context/GroupFormWorkflowContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import reducer from './GroupFormWorkflowReducer';
import { useParams } from 'react-router-dom';
import { type Type, useSession } from '@openmrs/esm-framework';
import useGetSystemSetting from '../hooks/useGetSystemSetting';

interface ParamTypes {
formUuid?: string;
}
Expand All @@ -12,6 +13,7 @@ export interface GroupType {
name: string;
members: Array<Type.Object>;
}

export interface MetaType {
sessionName: string;
sessionDate: string;
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"tasks": {
"build": {
"outputs": ["dist/**"]
},
Expand Down
Loading

0 comments on commit 23df68f

Please sign in to comment.