Skip to content

Commit

Permalink
Merge pull request #163 from sybers/refactor_remove_react_dependency
Browse files Browse the repository at this point in the history
refactor: generate html report using templated strings
  • Loading branch information
alexcanessa authored Oct 1, 2024
2 parents 7344574 + 78f1b3f commit ba6b5c9
Show file tree
Hide file tree
Showing 15 changed files with 187 additions and 540 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
plugins: ["jest"],
parser: "@typescript-eslint/parser",
extends: [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
Expand All @@ -14,11 +13,6 @@ module.exports = {
jsx: true
}
},
settings: {
react: {
version: "detect"
}
},
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off"
Expand Down
8 changes: 8 additions & 0 deletions assets/source-file.css → assets/report.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#coverage-table tbody td:nth-child(1) {
direction: rtl;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
text-align: left;
}

.uncovered {
background: rgba(235, 26, 26, 0.3);
}
Expand Down
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
}
}
],
"@babel/preset-react",
"@babel/preset-typescript"
]
};
13 changes: 1 addition & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"commander": "^5.0.0",
"ncp": "^2.0.0",
"rimraf": "^3.0.2",
"semantic-ui-react": "^0.88.2",
"type-coverage-core": "^2.23.0"
},
"scripts": {
Expand All @@ -31,42 +30,32 @@
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.2.5",
"@types/ncp": "^2.0.3",
"@types/node": "^20.11.17",
"@types/react": "^16.9.23",
"@types/react-dom": "^16.9.5",
"@types/testing-library__react": "^9.1.3",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"babel-jest": "^25.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"github-release-notes": "^0.17.1",
"husky": "^4.2.3",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^10.0.8",
"package-json-type": "^1.0.3",
"prettier": "^2.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "5.0.4"
},
"peerDependencies": {
"typescript": "2 || 3 || 4 || 5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"typescript": "2 || 3 || 4 || 5"
},
"husky": {
"hooks": {
Expand Down
81 changes: 0 additions & 81 deletions src/components/DetailPage/DetailPage.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/components/DetailPage/__tests__/DetailPage.test.tsx

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/DetailPage/index.ts

This file was deleted.

Loading

0 comments on commit ba6b5c9

Please sign in to comment.