Skip to content

Commit

Permalink
refactor: format all supported files (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalston authored Dec 6, 2023
1 parent d3cc8aa commit dcd2215
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
Expand Down
55 changes: 37 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,48 @@
# dependencies
/node_modules
/.pnp
.pnp.js
# Dependency directories
node_modules/

# testing
# Production build files
/build

# ESLint cache
.eslintcache

# Stylelint cache
.stylelintcache

# Coverage directory used by Jest
/coverage

# production
/build
# TypeScript compiled output
/dist
/out
/ts-build

# misc
/deprecated
.DS_Store
# Logs
logs
*.log
npm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Environment Variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.eslintcache
.stylelintcache

npm-debug.log*
yarn-debug.log*
yarn-error.log*

react.md
# Misc
.DS_Store
Thumbs.db
/deprecated

# Local Netlify folder
# Netlify configuration file
.netlify
2 changes: 1 addition & 1 deletion .lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.exports = {
'stylelint --cache --fix --max-warnings 0',
'prettier --cache --write',
],
'*.{json,md}': 'prettier --cache --write',
'*.{html,json,md,yml}': 'prettier --cache --write',
};
1 change: 0 additions & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** @type {import("prettier").Config} */
module.exports = {
arrowParens: 'always',
singleQuote: true,
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test:coverage": "react-scripts test --coverage --watchAll=false",
"eject": "react-scripts eject",
"lint": "eslint --cache --fix --max-warnings 0 ./src/",
"format": "prettier --cache --write ./src/",
"format": "prettier --cache --write ./{.github,public,src}/",
"prepare": "husky install"
},
"dependencies": {
Expand Down
68 changes: 39 additions & 29 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="author" content="Adam Alston" />
<meta name="keywords" content="Adam Alston, Adam, Alston, adamalston, software engineer" />
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="author" content="Adam Alston" />
<meta
name="keywords"
content="Adam Alston, Adam, Alston, adamalston, software engineer"
/>

<meta name="title" property="og:title" content="Adam Alston" />
<meta name="description" property="og:description" content="Source: https://github.com/adamalston/v2" />
<meta name="title" property="og:title" content="Adam Alston" />
<meta
name="description"
property="og:description"
content="Source: https://github.com/adamalston/v2"
/>

<meta property="og:site_name" content="Adam Alston's personal website" />
<meta property="og:url" content="http://www.adamalston.com/" />
<meta property="og:locale" content="en_US" />
<meta property="og:image" content="https://git.io/JUWDe" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="640" />
<meta property="og:image:alt" content="adamalston.com" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Adam Alston's personal website" />
<meta property="og:url" content="http://www.adamalston.com/" />
<meta property="og:locale" content="en_US" />
<meta property="og:image" content="https://git.io/JUWDe" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="640" />
<meta property="og:image:alt" content="adamalston.com" />
<meta property="og:type" content="website" />

<link rel="icon" href="%PUBLIC_URL%/icons/favicon.ico" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icons/apple-touch-icon.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.webmanifest" />
<link rel="icon" href="%PUBLIC_URL%/icons/favicon.ico" />
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/icons/apple-touch-icon.png"
/>
<link rel="manifest" href="%PUBLIC_URL%/manifest.webmanifest" />

<title>Adam Alston</title>
</head>
<body>
<noscript>
Enable JavaScript to see this website.
<a href="https://github.com/adamalston/v2"> Source</a>
</noscript>
<div id="root"></div>
</body>
<title>Adam Alston</title>
</head>
<body>
<noscript>
Enable JavaScript to see this website.
<a href="https://github.com/adamalston/v2"> Source</a>
</noscript>
<div id="root"></div>
</body>
</html>

0 comments on commit dcd2215

Please sign in to comment.