Skip to content

Commit 5fd454d

Browse files
committed
Initial commit
0 parents  commit 5fd454d

File tree

272 files changed

+31529
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+31529
-0
lines changed

.eslintrc.js

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
tsconfigRootDir: __dirname,
5+
project: "./tsconfig.json",
6+
ecmaVersion: "latest",
7+
sourceType: "module",
8+
},
9+
overrides: [
10+
{
11+
files: ["*.ts", "*.tsx"],
12+
processor: "@graphql-eslint/graphql",
13+
parser: "@typescript-eslint/parser",
14+
plugins: [
15+
"unicorn",
16+
"import",
17+
"react",
18+
"react-hooks",
19+
"jsx-a11y",
20+
"@typescript-eslint",
21+
],
22+
extends: [
23+
"plugin:unicorn/recommended",
24+
"plugin:@typescript-eslint/recommended",
25+
"prettier",
26+
],
27+
env: {
28+
es2024: true,
29+
},
30+
rules: {
31+
"unicorn/filename-case": 0,
32+
"unicorn/prevent-abbreviations": 0,
33+
"unicorn/no-abusive-eslint-disable": 0,
34+
"import/no-duplicates": ["error", { "prefer-inline": true }],
35+
"@typescript-eslint/consistent-type-imports": [
36+
"error",
37+
{ fixStyle: "inline-type-imports" },
38+
],
39+
"@typescript-eslint/consistent-type-exports": "error",
40+
"sort-imports": [
41+
"error",
42+
{
43+
ignoreDeclarationSort: true,
44+
},
45+
],
46+
"import/order": [
47+
"error",
48+
{
49+
"newlines-between": "always",
50+
alphabetize: { order: "asc" },
51+
groups: [
52+
"builtin",
53+
"external",
54+
"internal",
55+
"parent",
56+
"sibling",
57+
"index",
58+
],
59+
pathGroupsExcludedImportTypes: ["react", "react-dom"],
60+
pathGroups: [
61+
{
62+
pattern: "react",
63+
group: "external",
64+
position: "before",
65+
},
66+
{
67+
pattern: "react-dom",
68+
group: "external",
69+
position: "before",
70+
},
71+
{
72+
pattern: "~/**/*",
73+
group: "internal",
74+
position: "before",
75+
},
76+
],
77+
},
78+
],
79+
"max-classes-per-file": "off",
80+
"react/jsx-props-no-spreading": "off",
81+
"react/no-array-index-key": "warn",
82+
"react-hooks/rules-of-hooks": "error",
83+
"react-hooks/exhaustive-deps": "warn",
84+
"@typescript-eslint/naming-convention": "off",
85+
"@typescript-eslint/no-unsafe-assignment": 0,
86+
"@typescript-eslint/no-non-null-assertion": 0,
87+
"@typescript-eslint/restrict-template-expressions": 0,
88+
"@typescript-eslint/explicit-module-boundary-types": 0,
89+
"@typescript-eslint/no-non-null-asserted-optional-chain": 0,
90+
},
91+
},
92+
{
93+
files: ["*.graphql"],
94+
parser: "@graphql-eslint/eslint-plugin",
95+
plugins: ["@graphql-eslint"],
96+
rules: {
97+
"@graphql-eslint/no-anonymous-operations": "error",
98+
"@graphql-eslint/naming-convention": [
99+
"error",
100+
{
101+
OperationDefinition: {
102+
style: "PascalCase",
103+
forbiddenPrefixes: ["Query", "Mutation", "Subscription", "Get"],
104+
forbiddenSuffixes: ["Query", "Mutation", "Subscription"],
105+
},
106+
},
107+
],
108+
},
109+
},
110+
],
111+
}

.github/workflows/gatsby.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Sample workflow for building and deploying a Gatsby site to GitHub Pages
2+
#
3+
# To get started with Gatsby see: https://www.gatsbyjs.com/docs/quick-start/
4+
#
5+
name: Deploy Gatsby site to Pages
6+
7+
on:
8+
# Runs on pushes targeting the default branch
9+
push:
10+
branches: ["main"]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
21+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23+
concurrency:
24+
group: "pages"
25+
cancel-in-progress: false
26+
27+
# Default to bash
28+
defaults:
29+
run:
30+
shell: bash
31+
32+
jobs:
33+
# Build job
34+
build:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: "18"
43+
cache: yarn
44+
- name: Restore cache
45+
uses: actions/cache@v4
46+
with:
47+
path: |
48+
public
49+
.cache
50+
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }}
51+
restore-keys: |
52+
${{ runner.os }}-gatsby-build-
53+
- name: Install dependencies
54+
run: yarn install
55+
- name: Build with Gatsby
56+
env:
57+
PREFIX_PATHS: "true"
58+
run: yarn build
59+
- name: Upload artifact
60+
uses: actions/upload-pages-artifact@v3
61+
with:
62+
path: ./public
63+
64+
# Deployment job
65+
deploy:
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deployment.outputs.page_url }}
69+
runs-on: ubuntu-latest
70+
needs: build
71+
steps:
72+
- name: Deploy to GitHub Pages
73+
id: deployment
74+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Coverage directory used by tools like istanbul
6+
coverage
7+
8+
# Dependency directories
9+
node_modules/
10+
11+
# Optional npm cache directory
12+
.npm
13+
14+
# Yarn
15+
# @see https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
16+
.pnp.*
17+
.yarn/*
18+
!.yarn/patches
19+
!.yarn/plugins
20+
!.yarn/releases
21+
!.yarn/sdks
22+
!.yarn/versions
23+
24+
# Optional eslint cache
25+
.eslintcache
26+
27+
# Output of 'npm pack'
28+
*.tgz
29+
30+
# dotenv environment variable files
31+
.env*
32+
33+
# Gatsby files
34+
.cache/
35+
public
36+
src/gatsby-types.d.ts
37+
38+
# Mac files
39+
.DS_Store

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit ""

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn pre-commit

.lintstagedrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"**/*.(js|ts)?(x)": "yarn lint:fix",
3+
"**/*": "yarn format"
4+
}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.cache
2+
.yarn
3+
public

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 80,
3+
"arrowParens": "avoid",
4+
"semi": false
5+
}

.releaserc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/npm",
6+
"@semantic-release/git",
7+
"@semantic-release/github"
8+
],
9+
"branches": [
10+
"main"
11+
]
12+
}

0 commit comments

Comments
 (0)