Skip to content
Merged

V2 #126

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

46 changes: 7 additions & 39 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,14 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint", "react", "prettier"],
"parserOptions": {
"jsx": true,
"project": "./tsconfig.json"
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,4 @@ yarn-error.log*
.env.production.local

# vercel
.vercel

# generated files
/data/image-sizes.json
.vercel
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Andy Hook
Copyright (c) 2025 Andy Hook

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
46 changes: 3 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,16 @@
# andyhook.dev

Source code for my personal portfolio. Built with [Next.js](https://nextjs.org/), [Styled Components](https://styled-components.com/) and [Framer Motion](https://www.framer.com/api/motion/).
Source code for my personal portfolio. Built with [Next.js](https://nextjs.org/), [Tailwind](https://tailwindcss.com/) and [Motion](https://motion.dev/).

## Development

To start development:

```sh
yarn dev
pnpm dev
```

By default this will spin up a local server on `localhost:3000`

## Image dimensions

Static image dimensions are generated during a build step, either on each run of the dev server or for every production build. If you add, update or change any images you must run `yarn generate-image-sizes` or restart the dev server to get the latest dimensions and [ImagePath](https://github.com/andy-hook/andyhook.dev/blob/main/data/images.ts) typings.

## Building

To build for Node environments:

```sh
yarn build
```

or for a [static export](https://nextjs.org/docs/advanced-features/static-html-export):

```sh
yarn build-static
```

## Testing

Run the tests:

```sh
yarn test
```

## Type checking and linting

Type checking and linting is handled by a single script:

```sh
yarn lint
```

## Formatting your code

Prettier is supported but you'll need to add your own script if you wish to use the cli.

I personally use [this vscode package](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) to format automatically within my editor.
By default this will spin up a local server on `localhost:3001`

## License

Expand Down
Loading
Loading