aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js40
-rw-r--r--.eslintrc.json31
-rw-r--r--.github/workflows/build.yml9
-rw-r--r--src/components/BlockLink.tsx8
-rw-r--r--src/pages/index.tsx4
5 files changed, 46 insertions, 46 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 9128d0a..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,40 +0,0 @@
-module.exports = {
- parser: "@typescript-eslint/parser", // Specifies the ESLint parser
- extends: [
- "eslint:recommended",
- "plugin:react/recommended",
- "plugin:@typescript-eslint/recommended",
- "plugin:prettier/recommended",
- ],
- settings: {
- react: {
- version: "detect",
- },
- },
- env: {
- browser: true,
- node: true,
- es6: true,
- },
- plugins: ["@typescript-eslint", "react"],
- parserOptions: {
- ecmaFeatures: {
- jsx: true,
- },
- ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
- sourceType: "module", // Allows for the use of imports
- },
- rules: {
- "react/prop-types": "off", // Disable prop-types as we use TypeScript for type checking
- "@typescript-eslint/explicit-function-return-type": "off",
- },
- overrides: [
- // Override some TypeScript rules just for .js files
- {
- files: ["*.js"],
- rules: {
- "@typescript-eslint/no-var-requires": "off",
- },
- },
- ],
-};
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..a2f2202
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,31 @@
+{
+ "parser": "@typescript-eslint/parser", // Specifies the ESLint parser
+ "extends": [
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:prettier/recommended"
+ ],
+ "settings": {
+ "react": {
+ "version": "detect"
+ }
+ },
+ "env": {
+ "browser": true,
+ "node": true,
+ "es6": true
+ },
+ "plugins": ["@typescript-eslint", "react"],
+ "parserOptions": {
+ "ecmaFeatures": {
+ "jsx": true
+ },
+ "ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features
+ "sourceType": "module" // Allows for the use of imports
+ },
+ "rules": {
+ "react/prop-types": "off", // Disable prop-types as we use TypeScript for type checking
+ "@typescript-eslint/explicit-function-return-type": "off"
+ }
+}
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 683f9ae..62e11ed 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,6 +22,15 @@ jobs:
cache: 'npm'
- name: Install Node.js packages
run: npm ci
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%s')"
+ - name: Modify version number
+ uses: mingjun97/file-regex-replace@v1
+ with:
+ regex: 'version: "[0-9]*",'
+ replacement: 'version: "${{ steps.date.outputs.date }}",'
+ include: 'gatsby-config\.ts'
- name: Clean Gatsby cache
run: npm run clean
- name: Run Gatsby Build
diff --git a/src/components/BlockLink.tsx b/src/components/BlockLink.tsx
index c0f2ad6..6b841f0 100644
--- a/src/components/BlockLink.tsx
+++ b/src/components/BlockLink.tsx
@@ -1,10 +1,10 @@
import React from "react";
-import { ThemedStyledFunction } from "styled-components";
-import { BlockAnchor, BlockBody, Theme } from "../styles";
+import { BlockAnchor, BlockBody } from "../styles";
type BlockLinkProps = {
- children: React.ReactNode;
-} & ThemedStyledFunction<"a", Theme>;
+ children?: React.ReactNode;
+ as?: undefined;
+} & React.LinkHTMLAttributes<HTMLAnchorElement>;
const BlockLink = ({ children, ...attributes }: BlockLinkProps) => {
return (
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 10ba281..5ab65f0 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -21,8 +21,8 @@ const IndexPage = (): React.ReactElement => {
<BlockBody>
<p>
I&apos;m a computer science and math graduate from Millersville
- University. I work as an IT consultant and specialize in development
- operations and systems validation for web applications.
+ University. I work as a Solutions Architect and specialize in
+ development operations and systems validation for web applications.
</p>
<p>
My most recent projects have been focused on full-stack development. I