Skip to content

Commit

Permalink
Cleaned up with knip
Browse files Browse the repository at this point in the history
  • Loading branch information
HHogg committed Dec 14, 2024
1 parent 2afb729 commit 5f9ad76
Show file tree
Hide file tree
Showing 73 changed files with 141 additions and 736 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
run: cargo install typeshare-cli
- name: 'Install dependencies: wasm32-unknown-unknown'
run: rustup target add wasm32-unknown-unknown
- name: 'Typescript check'
run: yarn tsc
- name: 'Build'
run: yarn build
- name: 'Lint'
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
8 changes: 5 additions & 3 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
],
"project": ["workspaces/**/*.ts", "workspaces/**/*.tsx"],
"ignore": [
"workspaces/snake/src/SolutionRunnerWorker.ts",
"workspaces/website/.svgrrc.images.cjs"
]
"workspaces/snake/src/Presentation/SolutionRunnerWorker.ts",
"workspaces/common/.svgrrc.images.cjs",
"workspaces/tilings/src/Presentation/**"
],
"ignoreBinaries": ["cargo", "typeshare", "wasm-pack"]
}
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"format": "prettier --write .",
"lint": "yarn lint:css & yarn lint:js && yarn lint:rust",
"lint:css": "stylelint workspaces/**/*.css",
"lint:js": "eslint 'workspaces/**/*.tsx' 'workspaces/**/*.ts' --fix",
"lint:js": "yarn tsc && yarn knip && eslint 'workspaces/**/*.tsx' 'workspaces/**/*.ts' --fix",
"lint:rust": "yarn lint:rust:clippy && yarn lint:rust:fmt",
"lint:rust:clippy": "cargo clippy --all-targets --all-features -- -D warnings",
"lint:rust:fmt": "cargo fmt --all -- --check",
Expand Down Expand Up @@ -48,12 +48,8 @@
"knip": "^5.0.1",
"prettier": "^2.8.8",
"stylelint": "^15.6.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recommended": "^12.0.0",
"stylelint-config-standard": "^33.0.0",
"typescript": "^5.0.4"
},
"dependencies": {
"preshape": "^19.1.5"
"typescript": "^5.0.4",
"vite": "^5.2.9"
}
}
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions workspaces/circle-art/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,21 @@
"type": "module",
"main": "./src/index.ts",
"dependencies": {
"@floating-ui/react": "^0.27.0",
"@hogg/circle-intersections": "workspace:^",
"@hogg/common": "workspace:^",
"classnames": "^2.3.2",
"file-saver": "^2.0.5",
"lucide-react": "0.447.0",
"preshape": "^19.1.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"uuid": "10.0.0"
},
"devDependencies": {
"@types/file-saver": "^2.0.7",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11"
"@types/react-dom": "^18.0.11",
"@types/uuid": "^10.0.0"
}
}
45 changes: 0 additions & 45 deletions workspaces/circle-intersections/.svgrrc.images.cjs

This file was deleted.

14 changes: 2 additions & 12 deletions workspaces/circle-intersections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,16 @@
"build": "yarn svgr -d ./src/Article/images ./src/Article/images --ext tsx --config-file ../common/.svgrrc.images.cjs"
},
"dependencies": {
"@floating-ui/react": "^0.26.3",
"@hogg/common": "workspace:^",
"@hogg/spirals": "workspace:^",
"bitset": "^5.1.1",
"classnames": "^2.3.2",
"file-saver": "^2.0.5",
"framer-motion": "11.5.6",
"lucide-react": "0.445.0",
"preshape": "^19.1.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sat": "^0.9.0",
"uuid": "10.0.0"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@svgr/cli": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"@swc/core": "^1.4.2",
"@types/file-saver": "^2.0.7",
"@types/sat": "^0.0.35",
"@types/uuid": "10.0.0"
"@svgr/cli": "^8.1.0"
}
}
Empty file.
7 changes: 3 additions & 4 deletions workspaces/circular-sequence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
},
"dependencies": {
"@hogg/common": "workspace:^",
"@hogg/tilings": "workspace:^",
"@hogg/wasm": "workspace:^",
"lucide-react": "0.445.0",
"preshape": "^19.1.5",
"react": "^18.2.0",
"uuid": "10.0.0"
"react": "^18.2.0"
},
"devDependencies": {
"@svgr/cli": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"@types/react": "^18.0.28",
"typescript": "^5.0.4"
}
Expand Down
4 changes: 4 additions & 0 deletions workspaces/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "module",
"main": "./src/index.ts",
"dependencies": {
"@artsy/fresnel": "^7.1.4",
"framer-motion": "11.5.6",
"lucide-react": "0.445.0",
"luxon": "3.5.0",
Expand All @@ -16,5 +17,8 @@
"react-use": "^17.4.3",
"sat": "^0.9.0",
"screenfull": "^6.0.2"
},
"devDependencies": {
"@types/sat": "^0.0.35"
}
}
7 changes: 0 additions & 7 deletions workspaces/common/src/Article/ArticleHeading.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions workspaces/common/src/Article/ArticleParagraph.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions workspaces/common/src/Article/ArticleSection.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions workspaces/common/src/Media/Media.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, BoxProps } from 'preshape';
import { FresnelMedial } from './MediaProvider';
import { FresnelMedia } from './MediaProvider';

type Props = BoxProps & typeof FresnelMedial.defaultProps;
type Props = BoxProps & typeof FresnelMedia.defaultProps;

export default function Media({
children,
Expand All @@ -21,13 +21,13 @@ export default function Media({
};

return (
<FresnelMedial {...deleteEmptyProps(fresnelProps)}>
<FresnelMedia {...deleteEmptyProps(fresnelProps)}>
{(className, renderChildren) => (
<Box className={`fresnel-container ${className}`} {...rest}>
{renderChildren ? children : undefined}
</Box>
)}
</FresnelMedial>
</FresnelMedia>
);
}

Expand Down
2 changes: 1 addition & 1 deletion workspaces/common/src/Media/MediaProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createMedia } from '@artsy/fresnel';

export const {
MediaContextProvider,
Media: FresnelMedial,
Media: FresnelMedia,
createMediaStyle,
} = createMedia({
breakpoints: {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/common/src/SvgLabels/utils/algorithms.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createLinearScale } from '../../utils';
import { Point } from '../types';

export const pointAlgorithmArchimedesSpiral = (i: number): Point => {
const pointAlgorithmArchimedesSpiral = (i: number): Point => {
const r = Math.sqrt(i) || 0;
const a = i * (r && Math.asin(1 / r)) * Math.PI;
const x = r * Math.cos(a);
Expand Down
10 changes: 1 addition & 9 deletions workspaces/evolution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,14 @@
"private": true,
"type": "module",
"main": "./src/index.ts",
"scripts": {
"build": "yarn clean && yarn build:wasm",
"build:wasm": "wasm-pack build --target web",
"clean": "rm -rf ./pkg",
"dev": "cargo watch -w ./src-rust -q -s 'yarn workspace @hogg/evolution run build:wasm'"
},
"dependencies": {
"@hogg/common": "workspace:^",
"lucide-react": "0.445.0",
"preshape": "^19.1.5",
"react": "^18.2.0",
"uuid": "10.0.0"
"react": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.28",
"@types/uuid": "10.0.0",
"typescript": "^5.0.4"
}
}
64 changes: 0 additions & 64 deletions workspaces/evolution/src/Article/Matrix.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions workspaces/evolution/src/Article/MatrixCell.tsx

This file was deleted.

Loading

0 comments on commit 5f9ad76

Please sign in to comment.