Skip to content
Open
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 .eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions .eslintrc.js

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ typings/
.env
.env.*

# gatsby files
# Astro build output
dist/
.cache/
public

# Astro cache
.astro/

# Mac files
.DS_Store
Expand Down
1 change: 0 additions & 1 deletion .yarnrc.yml

This file was deleted.

8 changes: 8 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';

export default defineConfig({
output: 'static',
integrations: [react()],
site: 'https://patternlanguages.netlify.com',
});
61 changes: 61 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig, globalIgnores } from "eslint/config";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import react from "eslint-plugin-react";
import typescriptEslint from "@typescript-eslint/eslint-plugin";

const __dirname = dirname(fileURLToPath(import.meta.url));

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default defineConfig([
{
languageOptions: {
globals: {
...globals.node,
},
parser: tsParser,
ecmaVersion: 2020,
sourceType: "module",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
react,
"@typescript-eslint": typescriptEslint,
},
extends: compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
),
rules: {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "off",
"react/jsx-uses-vars": "warn",
"react/jsx-uses-react": "warn",
"react/prop-types": "off",
},
settings: {
react: {
version: "detect",
},
},
},
globalIgnores(["**/node_modules", "**/public", "**/build", "**/.cache"]),
]);
7 changes: 0 additions & 7 deletions gatsby-browser.js

This file was deleted.

101 changes: 0 additions & 101 deletions gatsby-config.js

This file was deleted.

57 changes: 0 additions & 57 deletions gatsby-node.js

This file was deleted.

69 changes: 29 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,37 @@
{
"name": "pattern-languages",
"packageManager": "yarn@4.5.0",
"packageManager": "pnpm@10.28.1",
"description": "Each pattern is a rule which describes what you have to do to generate the entity which it defines. It is a three-part rule, which expresses a relation between a certain context, a problem, and a solution.",
"version": "0.1.0",
"type": "module",
"author": "Nick Trombley <trombley.nick@gmail.com>",
"dependencies": {
"async": "^3.2.6",
"gatsby": "^5.14.1",
"gatsby-image": "^3.11.0",
"gatsby-plugin-manifest": "^5.14.0",
"gatsby-plugin-offline": "^6.14.0",
"gatsby-plugin-react-helmet-async": "^1.2.3",
"gatsby-plugin-react-svg": "^3.3.0",
"gatsby-plugin-sharp": "^5.14.0",
"gatsby-plugin-typescript": "^5.14.0",
"gatsby-source-airtable": "^2.4.3",
"gatsby-source-filesystem": "^5.14.0",
"gatsby-transformer-sharp": "^5.14.0",
"@astrojs/react": "^4.2.1",
"airtable": "^0.12.2",
"astro": "^5.2.5",
"marked": "^17.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-helmet": "^6.1.0",
"react-helmet-async": "^2.0.5",
"remarkable": "^2.0.1",
"remarkable-meta": "^1.0.1",
"styled-components": "^6.1.14"
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^22.12.0",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/react-helmet": "^6.1.11",
"@types/styled-components": "^5.1.34",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-react": "^7.37.4",
"prettier": "^3.4.2",
"typescript": "^5.7.3"
"@astrojs/check": "^0.9.4",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@types/node": "^22.19.7",
"@types/react": "^18.3.27",
"@types/react-dom": "^18.3.7",
"@typescript-eslint/eslint-plugin": "^8.53.1",
"@typescript-eslint/parser": "^8.53.1",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react": "^7.37.5",
"globals": "^17.1.0",
"prettier": "^3.8.1",
"prettier-plugin-astro": "^0.14.1",
"typescript": "^5.9.3"
},
"keywords": [
"gatsby",
"astro",
"patterns",
"pattern language",
"architecture",
Expand All @@ -49,14 +40,12 @@
],
"license": "MIT",
"scripts": {
"build": "gatsby clean && gatsby build",
"dev": "gatsby clean && gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing \"",
"type-check": "tsc --noEmit",
"lint": "tslint --project ."
"build": "astro check && astro build",
"dev": "astro dev",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,astro,json,md}\"",
"preview": "astro preview",
"type-check": "astro check && tsc --noEmit",
"lint": "eslint src"
},
"repository": {
"type": "git",
Expand Down
Loading