Skip to content

Commit 30a9e5d

Browse files
committed
first commit
0 parents  commit 30a9e5d

File tree

1,058 files changed

+4988
-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.

1,058 files changed

+4988
-0
lines changed

.commitlintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}
4+

.eslintrc

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"plugins": ["prettier"],
3+
"extends": ["next", "next/core-web-vitals", "prettier"],
4+
"rules": {
5+
"prettier/prettier": "error",
6+
"camelcase": "off",
7+
"import/prefer-default-export": "off",
8+
"react/jsx-filename-extension": "off",
9+
"react/jsx-props-no-spreading": "off",
10+
"react/no-unused-prop-types": "off",
11+
"react/require-default-props": "off",
12+
"import/extensions": [
13+
"error",
14+
"ignorePackages",
15+
{
16+
"ts": "never",
17+
"tsx": "never",
18+
"js": "never",
19+
"jsx": "never"
20+
}
21+
],
22+
"quotes": "off",
23+
"jsx-a11y/anchor-is-valid": [
24+
"error",
25+
{
26+
"components": ["Link"],
27+
"specialLink": ["hrefLeft", "hrefRight"],
28+
"aspects": ["invalidHref", "preferButton"]
29+
}
30+
]
31+
},
32+
"overrides": [
33+
{
34+
"files": "**/*.+(ts|tsx)",
35+
"parser": "@typescript-eslint/parser",
36+
"plugins": ["@typescript-eslint/eslint-plugin"],
37+
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
38+
"rules": {
39+
"@typescript-eslint/explicit-function-return-type": "off",
40+
"@typescript-eslint/explicit-module-boundary-types": "off",
41+
"no-use-before-define": [0],
42+
"@typescript-eslint/no-use-before-define": [1],
43+
"@typescript-eslint/no-explicit-any": "off",
44+
"@typescript-eslint/no-var-requires": "off",
45+
"@typescript-eslint/quotes": [
46+
2,
47+
"backtick",
48+
{
49+
"avoidEscape": true
50+
}
51+
]
52+
}
53+
}
54+
]
55+
}

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Check PR
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
run-ci:
7+
env:
8+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
10+
name: Run Type Check & Linters
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2.2.2
21+
with:
22+
version: 7
23+
24+
- name: Set up Node
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: lts/*
28+
cache: 'pnpm'
29+
30+
- name: Install dependencies
31+
run: pnpm install
32+
33+
- name: Check types
34+
run: pnpm type-check
35+
36+
- name: Check linting
37+
run: pnpm lint
38+
39+
- name: Check commits messages
40+
uses: wagoid/commitlint-github-action@v5

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [ master ]
5+
workflow_dispatch:
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: '16.x'
17+
- name: Setup semantic-release
18+
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
19+
- name: Release
20+
env:
21+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
22+
run: npx semantic-release

.github/workflows/tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Run Jest tests
2+
on: [push]
3+
4+
jobs:
5+
install-tests:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
- name: Install Node.js
11+
uses: actions/setup-node@v3
12+
with:
13+
node-version: 16
14+
- uses: pnpm/action-setup@v2.0.1
15+
name: Install pnpm
16+
id: pnpm-install
17+
with:
18+
version: 7
19+
run_install: false
20+
- name: Install dependencies
21+
run: pnpm install
22+
- name: Test
23+
run: pnpm run test

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
/dist
3+
/*.log
4+
pnpm-lock.yaml
5+
package-lock.json

.husky/commit-msg

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

.husky/common.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
command_exists () {
2+
command -v "$1" >/dev/null 2>&1
3+
}
4+
5+
# Workaround for Windows 10, Git Bash and Yarn
6+
if command_exists winpty && test -t 1; then
7+
exec < /dev/tty
8+
fi

.husky/pre-commit

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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": true,
4+
"printWidth": 80,
5+
"tabWidth": 2
6+
}

.releaserc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"branches": [
3+
"master"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
"@semantic-release/changelog",
9+
[
10+
"@semantic-release/git",
11+
{
12+
"assets": [
13+
"CHANGELOG.md"
14+
]
15+
}
16+
],
17+
"@semantic-release/github"
18+
]
19+
}

.vscode/settings.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": true,
4+
5+
// TO REDUCE DISTRACTION AND INCREASE IN FOCUS RATE
6+
"**/.eslintrc": true,
7+
"**/.gitignore": true,
8+
"**/.npmrc": true,
9+
"**/.releaserc": true,
10+
"**/.commitlintrc.json": true,
11+
"**/.prettierrc": true,
12+
"**/CHANGELOG.md": true,
13+
"**/pnpm-lock.yaml": true,
14+
"**/.github": true,
15+
"**/.husky": true,
16+
"**/LICENSE": true,
17+
"**/README.md": true,
18+
"**/renovate.json": true,
19+
"**/index.html": true,
20+
"**/vite.config.ts": true,
21+
"**/tsconfig.json": true,
22+
// TO REDUCE DISTRACTION AND INCREASE IN FOCUS RATE
23+
24+
25+
"**/.svn": true,
26+
"**/.hg": true,
27+
"**/CVS": true,
28+
"**/.DS_Store": true,
29+
"**/Thumbs.db": true,
30+
"**/node_modules": true,
31+
},
32+
"githubPullRequests.ignoredPullRequestBranches": [
33+
"master"
34+
]
35+
}

0 commit comments

Comments
 (0)