Skip to content

Commit

Permalink
Useful tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Aug 21, 2024
1 parent ae88850 commit 87d864f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 41 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
src/**/*.test.tsx
**/*.d.tsx
**/*.d.tsx
node_modules
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
dist/
node_modules/
**/*.css
**/*.scss
**/*.md
**/*.json
yarn.lock
Expand Down
2 changes: 2 additions & 0 deletions packages/esm-home-app/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('jest').Config} */
module.exports = {
clearMocks: true,
transform: {
'^.+\\.tsx?$': '@swc/jest',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-home-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"debug": "npm run serve",
"build": "webpack --mode production",
"analyze": "webpack --mode=production --env.analyze=true",
"lint": "cross-env TIMING=1 eslint src --ext ts,tsx --fix --max-warnings=0 --color",
"lint": "cross-env eslint src --ext ts,tsx --fix --max-warnings=0 --color",
"typescript": "tsc",
"verify": "turbo lint typescript test --color",
"extract-translations": "i18next 'src/**/*.{component.tsx,tsx}' 'src/index.ts' --config ../../tools/i18next-parser.config.js",
Expand Down

This file was deleted.

Empty file.
3 changes: 1 addition & 2 deletions packages/esm-home-app/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"home": "Home",
"homepageIllustration": "Homepage illustration"
"home": "Home"
}
3 changes: 1 addition & 2 deletions packages/esm-home-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"],
"exclude": ["src/**/*.test.tsx"]
"include": ["src/**/*", "./setupTests.ts", "./jest.config.js"],
}
19 changes: 10 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"compilerOptions": {
"esModuleInterop": true,
"module": "esnext",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"jsx": "react",
"skipLibCheck": true,
"moduleResolution": "node",
"lib": [
"dom",
"es5",
Expand All @@ -15,16 +12,20 @@
"es2016.array.include",
"es2018",
"es2020",
"es2021"
"es2021",
"es2022"
],
"resolveJsonModule": true,
"strictNullChecks": true,
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"target": "esnext",
"paths": {
"@openmrs/*": ["./node_modules/@openmrs/*"],
"__mocks__": ["./__mocks__"],
"tools": ["./tools"],
}
},
"resolveJsonModule": true,
"skipLibCheck": true,
"strictNullChecks": true,
"target": "esnext",
}
}

0 comments on commit 87d864f

Please sign in to comment.