From ad1862b63f20ae9290ac3d7d2bbf8c124117656d Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Fri, 13 Sep 2024 13:05:53 +0200 Subject: [PATCH] Remove unused stuff --- .../demo-page/package.json | 4 - .../src/components/button/button.tsx | 2 +- .../header-container/header-container.css | 12 -- .../header-container/header-container.tsx | 25 --- .../demo-page/src/components/icon/icon.css | 8 - .../demo-page/src/components/icon/icon.tsx | 13 -- .../demo-page/src/components/menu/menu.css | 27 --- .../demo-page/src/components/menu/menu.tsx | 23 -- renovate.json | 4 +- yarn.lock | 198 +----------------- 10 files changed, 10 insertions(+), 306 deletions(-) delete mode 100644 accessibility-code-checker/demo-page/src/components/header-container/header-container.css delete mode 100644 accessibility-code-checker/demo-page/src/components/header-container/header-container.tsx delete mode 100644 accessibility-code-checker/demo-page/src/components/icon/icon.css delete mode 100644 accessibility-code-checker/demo-page/src/components/icon/icon.tsx delete mode 100644 accessibility-code-checker/demo-page/src/components/menu/menu.css delete mode 100644 accessibility-code-checker/demo-page/src/components/menu/menu.tsx diff --git a/accessibility-code-checker/demo-page/package.json b/accessibility-code-checker/demo-page/package.json index 30554a8..a58ab5a 100644 --- a/accessibility-code-checker/demo-page/package.json +++ b/accessibility-code-checker/demo-page/package.json @@ -18,12 +18,8 @@ "devDependencies": { "@types/react": "^18.2.66", "@types/react-dom": "^18.2.22", - "@typescript-eslint/eslint-plugin": "^7.2.0", - "@typescript-eslint/parser": "^7.2.0", "@vitejs/plugin-react": "^4.2.1", "eslint": "^8.57.0", - "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-react-refresh": "^0.4.6", "typescript": "^5.2.2", "vite": "^5.2.0" } diff --git a/accessibility-code-checker/demo-page/src/components/button/button.tsx b/accessibility-code-checker/demo-page/src/components/button/button.tsx index 7c202d2..809d099 100644 --- a/accessibility-code-checker/demo-page/src/components/button/button.tsx +++ b/accessibility-code-checker/demo-page/src/components/button/button.tsx @@ -7,7 +7,7 @@ interface ButtonProps { secondary?: boolean; icon?: string; } -export const Button: React.FC = ({ +const Button: React.FC = ({ onClick, text, noBorder, diff --git a/accessibility-code-checker/demo-page/src/components/header-container/header-container.css b/accessibility-code-checker/demo-page/src/components/header-container/header-container.css deleted file mode 100644 index b26e832..0000000 --- a/accessibility-code-checker/demo-page/src/components/header-container/header-container.css +++ /dev/null @@ -1,12 +0,0 @@ -.header-container-content { - display: flex; - justify-content: space-between; - align-items: center; - max-width: var(--content--width); -} - -.header-container-search { - display: flex; - align-items: center; - gap: var(--size--small); -} diff --git a/accessibility-code-checker/demo-page/src/components/header-container/header-container.tsx b/accessibility-code-checker/demo-page/src/components/header-container/header-container.tsx deleted file mode 100644 index 4793fda..0000000 --- a/accessibility-code-checker/demo-page/src/components/header-container/header-container.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import "./header-container.css"; - -import logo from "../../assets/img/quant117-logo.png"; -import Button from "../button/button"; -import { Layout } from "../layout/layout"; - -export const HeaderContainer: React.FC = () => { - return ( - -
-
- Quant logo -
-
- -
-
-
- ); -}; diff --git a/accessibility-code-checker/demo-page/src/components/icon/icon.css b/accessibility-code-checker/demo-page/src/components/icon/icon.css deleted file mode 100644 index 6615560..0000000 --- a/accessibility-code-checker/demo-page/src/components/icon/icon.css +++ /dev/null @@ -1,8 +0,0 @@ -.icon { - width: 24px; - height: 24px; -} - -.clickable { - cursor: pointer; -} diff --git a/accessibility-code-checker/demo-page/src/components/icon/icon.tsx b/accessibility-code-checker/demo-page/src/components/icon/icon.tsx deleted file mode 100644 index 40970a7..0000000 --- a/accessibility-code-checker/demo-page/src/components/icon/icon.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import "./icon.css"; - -interface IconProps { - src: string; - alt: string; - className?: string; - onclick?: () => void; -} - -export const Icon: React.FC = ({ src, alt, className, onclick }) => { - const classes = `icon ${className} ${onclick ? "clickable" : ""}`; - return {alt}; -}; diff --git a/accessibility-code-checker/demo-page/src/components/menu/menu.css b/accessibility-code-checker/demo-page/src/components/menu/menu.css deleted file mode 100644 index 30efb5a..0000000 --- a/accessibility-code-checker/demo-page/src/components/menu/menu.css +++ /dev/null @@ -1,27 +0,0 @@ -.menu { - border-top: var(--color--light-grey) 1px solid; - text-transform: uppercase; -} - -.menu-content { - display: flex; - align-items: flex-start; - gap: var(--size--regular); -} - -.menu-content .menu-item { - display: flex; - flex-direction: column; - align-items: center; - padding: var(--size--regular) 0; - margin: 0 var(--size--regular); - border-top: var(--color--white) 2px solid; -} - -.menu-content .menu-item:first-child { - margin-left: 0; -} - -.menu-content .menu-item:hover { - border-top: var(--color--light-blue) 2px solid; -} diff --git a/accessibility-code-checker/demo-page/src/components/menu/menu.tsx b/accessibility-code-checker/demo-page/src/components/menu/menu.tsx deleted file mode 100644 index 903dcd1..0000000 --- a/accessibility-code-checker/demo-page/src/components/menu/menu.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { Layout } from "../layout/layout"; -import "./menu.css"; - -export const Menu: React.FC = () => { - return ( - -
-
- Shop -
-
- Finance -
-
- Tax -
-
- Learn -
-
-
- ); -}; diff --git a/renovate.json b/renovate.json index 7dd87d8..46846a9 100644 --- a/renovate.json +++ b/renovate.json @@ -13,12 +13,14 @@ "@types/node", "chai", "cypress", + "eslint", "knip", "mocha", "playwright", "prettier", "puppeteer", - "typescript" + "typescript", + "vite" ], "enabled": false } diff --git a/yarn.lock b/yarn.lock index 04bb70d..786ce97 100644 --- a/yarn.lock +++ b/yarn.lock @@ -636,7 +636,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0": +"@eslint-community/eslint-utils@npm:^4.2.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0" dependencies: @@ -647,7 +647,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.6.1": +"@eslint-community/regexpp@npm:^4.6.1": version: 4.11.0 resolution: "@eslint-community/regexpp@npm:4.11.0" checksum: 97d2fe46690b69417a551bd19a3dc53b6d9590d2295c43cc4c4e44e64131af541e2f4a44d5c12e87de990403654d3dae9d33600081f3a2f0386b368abc9111ec @@ -3229,124 +3229,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^7.2.0": - version: 7.18.0 - resolution: "@typescript-eslint/eslint-plugin@npm:7.18.0" - dependencies: - "@eslint-community/regexpp": ^4.10.0 - "@typescript-eslint/scope-manager": 7.18.0 - "@typescript-eslint/type-utils": 7.18.0 - "@typescript-eslint/utils": 7.18.0 - "@typescript-eslint/visitor-keys": 7.18.0 - graphemer: ^1.4.0 - ignore: ^5.3.1 - natural-compare: ^1.4.0 - ts-api-utils: ^1.3.0 - peerDependencies: - "@typescript-eslint/parser": ^7.0.0 - eslint: ^8.56.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: dfcf150628ca2d4ccdfc20b46b0eae075c2f16ef5e70d9d2f0d746acf4c69a09f962b93befee01a529f14bbeb3e817b5aba287d7dd0edc23396bc5ed1f448c3d - languageName: node - linkType: hard - -"@typescript-eslint/parser@npm:^7.2.0": - version: 7.18.0 - resolution: "@typescript-eslint/parser@npm:7.18.0" - dependencies: - "@typescript-eslint/scope-manager": 7.18.0 - "@typescript-eslint/types": 7.18.0 - "@typescript-eslint/typescript-estree": 7.18.0 - "@typescript-eslint/visitor-keys": 7.18.0 - debug: ^4.3.4 - peerDependencies: - eslint: ^8.56.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 132b56ac3b2d90b588d61d005a70f6af322860974225b60201cbf45abf7304d67b7d8a6f0ade1c188ac4e339884e78d6dcd450417f1481998f9ddd155bab0801 - languageName: node - linkType: hard - -"@typescript-eslint/scope-manager@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/scope-manager@npm:7.18.0" - dependencies: - "@typescript-eslint/types": 7.18.0 - "@typescript-eslint/visitor-keys": 7.18.0 - checksum: b982c6ac13d8c86bb3b949c6b4e465f3f60557c2ccf4cc229799827d462df56b9e4d3eaed7711d79b875422fc3d71ec1ebcb5195db72134d07c619e3c5506b57 - languageName: node - linkType: hard - -"@typescript-eslint/type-utils@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/type-utils@npm:7.18.0" - dependencies: - "@typescript-eslint/typescript-estree": 7.18.0 - "@typescript-eslint/utils": 7.18.0 - debug: ^4.3.4 - ts-api-utils: ^1.3.0 - peerDependencies: - eslint: ^8.56.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 68fd5df5146c1a08cde20d59b4b919acab06a1b06194fe4f7ba1b928674880249890785fbbc97394142f2ef5cff5a7fba9b8a940449e7d5605306505348e38bc - languageName: node - linkType: hard - -"@typescript-eslint/types@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/types@npm:7.18.0" - checksum: 7df2750cd146a0acd2d843208d69f153b458e024bbe12aab9e441ad2c56f47de3ddfeb329c4d1ea0079e2577fea4b8c1c1ce15315a8d49044586b04fedfe7a4d - languageName: node - linkType: hard - -"@typescript-eslint/typescript-estree@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/typescript-estree@npm:7.18.0" - dependencies: - "@typescript-eslint/types": 7.18.0 - "@typescript-eslint/visitor-keys": 7.18.0 - debug: ^4.3.4 - globby: ^11.1.0 - is-glob: ^4.0.3 - minimatch: ^9.0.4 - semver: ^7.6.0 - ts-api-utils: ^1.3.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: c82d22ec9654973944f779eb4eb94c52f4a6eafaccce2f0231ff7757313f3a0d0256c3252f6dfe6d43f57171d09656478acb49a629a9d0c193fb959bc3f36116 - languageName: node - linkType: hard - -"@typescript-eslint/utils@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/utils@npm:7.18.0" - dependencies: - "@eslint-community/eslint-utils": ^4.4.0 - "@typescript-eslint/scope-manager": 7.18.0 - "@typescript-eslint/types": 7.18.0 - "@typescript-eslint/typescript-estree": 7.18.0 - peerDependencies: - eslint: ^8.56.0 - checksum: 751dbc816dab8454b7dc6b26a56671dbec08e3f4ef94c2661ce1c0fc48fa2d05a64e03efe24cba2c22d03ba943cd3c5c7a5e1b7b03bbb446728aec1c640bd767 - languageName: node - linkType: hard - -"@typescript-eslint/visitor-keys@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/visitor-keys@npm:7.18.0" - dependencies: - "@typescript-eslint/types": 7.18.0 - eslint-visitor-keys: ^3.4.3 - checksum: 6e806a7cdb424c5498ea187a5a11d0fef7e4602a631be413e7d521e5aec1ab46ba00c76cfb18020adaa0a8c9802354a163bfa0deb74baa7d555526c7517bb158 - languageName: node - linkType: hard - "@ungap/promise-all-settled@npm:1.1.2": version: 1.1.2 resolution: "@ungap/promise-all-settled@npm:1.1.2" @@ -4182,13 +4064,6 @@ __metadata: languageName: node linkType: hard -"array-union@npm:^2.1.0": - version: 2.1.0 - resolution: "array-union@npm:2.1.0" - checksum: 5bee12395cba82da674931df6d0fea23c4aa4660cb3b338ced9f828782a65caa232573e6bf3968f23e0c5eb301764a382cef2f128b170a9dc59de0e36c39f98d - languageName: node - linkType: hard - "array.prototype.find@npm:^2.1.1": version: 2.1.1 resolution: "array.prototype.find@npm:2.1.1" @@ -5161,12 +5036,8 @@ __metadata: dependencies: "@types/react": ^18.2.66 "@types/react-dom": ^18.2.22 - "@typescript-eslint/eslint-plugin": ^7.2.0 - "@typescript-eslint/parser": ^7.2.0 "@vitejs/plugin-react": ^4.2.1 eslint: ^8.57.0 - eslint-plugin-react-hooks: ^4.6.0 - eslint-plugin-react-refresh: ^0.4.6 react: ^18.2.0 react-dom: ^18.2.0 react-router-dom: ^6.24.1 @@ -6091,15 +5962,6 @@ __metadata: languageName: node linkType: hard -"dir-glob@npm:^3.0.1": - version: 3.0.1 - resolution: "dir-glob@npm:3.0.1" - dependencies: - path-type: ^4.0.0 - checksum: fa05e18324510d7283f55862f3161c6759a3f2f8dbce491a2fc14c8324c498286c54282c1f0e933cb930da8419b30679389499b919122952a4f8592362ef4615 - languageName: node - linkType: hard - "discontinuous-range@npm:1.0.0": version: 1.0.0 resolution: "discontinuous-range@npm:1.0.0" @@ -6766,24 +6628,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-react-hooks@npm:^4.6.0": - version: 4.6.2 - resolution: "eslint-plugin-react-hooks@npm:4.6.2" - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - checksum: 395c433610f59577cfcf3f2e42bcb130436c8a0b3777ac64f441d88c5275f4fcfc89094cedab270f2822daf29af1079151a7a6579a8e9ea8cee66540ba0384c4 - languageName: node - linkType: hard - -"eslint-plugin-react-refresh@npm:^0.4.6": - version: 0.4.11 - resolution: "eslint-plugin-react-refresh@npm:0.4.11" - peerDependencies: - eslint: ">=7" - checksum: 55c9efb14c3dadf6422bb96af8a561d3f1385f1dc68e7ca9d388cc4adc69907644e1bb509ecfbb033a8ec19ea326beb99577c82d4a2530000809d897b08bf3d4 - languageName: node - linkType: hard - "eslint-scope@npm:^7.2.2": version: 7.2.2 resolution: "eslint-scope@npm:7.2.2" @@ -7103,7 +6947,7 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.2": +"fast-glob@npm:^3.3.2": version: 3.3.2 resolution: "fast-glob@npm:3.3.2" dependencies: @@ -7661,20 +7505,6 @@ __metadata: languageName: node linkType: hard -"globby@npm:^11.1.0": - version: 11.1.0 - resolution: "globby@npm:11.1.0" - dependencies: - array-union: ^2.1.0 - dir-glob: ^3.0.1 - fast-glob: ^3.2.9 - ignore: ^5.2.0 - merge2: ^1.4.1 - slash: ^3.0.0 - checksum: b4be8885e0cfa018fc783792942d53926c35c50b3aefd3fdcfb9d22c627639dc26bd2327a40a0b74b074100ce95bb7187bfeae2f236856aa3de183af7a02aea6 - languageName: node - linkType: hard - "got@npm:^11.0.2, got@npm:^11.8.1": version: 11.8.2 resolution: "got@npm:11.8.2" @@ -8038,7 +7868,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:^5.1.8, ignore@npm:^5.2.0, ignore@npm:^5.3.1": +"ignore@npm:^5.1.8, ignore@npm:^5.2.0": version: 5.3.2 resolution: "ignore@npm:5.3.2" checksum: 2acfd32a573260ea522ea0bfeff880af426d68f6831f973129e2ba7363f422923cf53aab62f8369cbf4667c7b25b6f8a3761b34ecdb284ea18e87a5262a865be @@ -9916,7 +9746,7 @@ __metadata: languageName: node linkType: hard -"merge2@npm:^1.3.0, merge2@npm:^1.4.1": +"merge2@npm:^1.3.0": version: 1.4.1 resolution: "merge2@npm:1.4.1" checksum: 7268db63ed5169466540b6fb947aec313200bcf6d40c5ab722c22e242f651994619bcd85601602972d3c85bd2cc45a358a4c61937e9f11a061919a1da569b0c2 @@ -10846,13 +10676,6 @@ __metadata: languageName: node linkType: hard -"path-type@npm:^4.0.0": - version: 4.0.0 - resolution: "path-type@npm:4.0.0" - checksum: 5b1e2daa247062061325b8fdbfd1fb56dde0a448fb1455453276ea18c60685bdad23a445dc148cf87bc216be1573357509b7d4060494a6fd768c7efad833ee45 - languageName: node - linkType: hard - "pathval@npm:^1.1.1": version: 1.1.1 resolution: "pathval@npm:1.1.1" @@ -11941,7 +11764,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:7.x, semver@npm:^7.3.5, semver@npm:^7.5.3, semver@npm:^7.6.0, semver@npm:^7.6.3": +"semver@npm:7.x, semver@npm:^7.3.5, semver@npm:^7.5.3, semver@npm:^7.6.3": version: 7.6.3 resolution: "semver@npm:7.6.3" bin: @@ -12751,15 +12574,6 @@ __metadata: languageName: node linkType: hard -"ts-api-utils@npm:^1.3.0": - version: 1.3.0 - resolution: "ts-api-utils@npm:1.3.0" - peerDependencies: - typescript: ">=4.2.0" - checksum: c746ddabfdffbf16cb0b0db32bb287236a19e583057f8649ee7c49995bb776e1d3ef384685181c11a1a480369e022ca97512cb08c517b2d2bd82c83754c97012 - languageName: node - linkType: hard - "ts-jest@npm:^29.0.0": version: 29.1.0 resolution: "ts-jest@npm:29.1.0"