Skip to content

Commit b311af0

Browse files
committed
refactor: structure
1 parent c0638e0 commit b311af0

Some content is hidden

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

89 files changed

+6429
-7700
lines changed

.env.sample

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.eslintrc

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
},
1111
"allowImportExportEverywhere": true
1212
},
13-
"plugins": ["@typescript-eslint", "import", "react", "jest"],
13+
"plugins": ["@typescript-eslint", "import", "jest"],
1414
"extends": [
1515
"eslint:recommended",
1616
"plugin:eslint-comments/recommended",
1717
"plugin:@typescript-eslint/recommended",
1818
"plugin:import/errors",
1919
"plugin:import/warnings",
2020
"plugin:import/typescript",
21-
"plugin:react/recommended",
2221
"plugin:react-hooks/recommended",
2322
"plugin:prettier/recommended",
2423
"prettier"
@@ -51,26 +50,7 @@
5150
"ignoreDeclarationSort": true,
5251
"ignoreMemberSort": false
5352
}
54-
],
55-
// `eslint-plugin-react`
56-
// https://github.com/yannickcr/eslint-plugin-react
57-
"react/display-name": "off",
58-
"react/jsx-boolean-value": ["warn", "never"],
59-
"react/jsx-curly-brace-presence": [
60-
"error",
61-
{ "props": "never", "children": "ignore" }
62-
],
63-
"react/jsx-sort-props": [
64-
"error",
65-
{
66-
"callbacksLast": true
67-
}
68-
],
69-
"react/jsx-wrap-multilines": "error",
70-
"react/no-array-index-key": "error",
71-
"react/no-multi-comp": "off",
72-
"react/prop-types": "off",
73-
"react/self-closing-comp": "warn"
53+
]
7454
},
7555
"settings": {
7656
"import/parsers": {

.github/workflows/main.yml

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,51 @@
11
name: Main
22

3-
on:
4-
pull_request:
5-
push:
6-
branches: [main]
3+
on: [push, pull_request]
74

85
jobs:
6+
build:
7+
name: Build
8+
needs: lint
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [14]
13+
pnpm-version: [6.24.2]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: pnpm/[email protected]
17+
with:
18+
version: ${{ matrix.pnpm-version }}
19+
- name: Set up Node ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
cache: 'pnpm'
23+
node-version: ${{ matrix.node-version }}
24+
- name: Install Dependencies
25+
run: pnpm i
26+
- name: Build
27+
run: pnpm build
28+
929
lint:
1030
name: Lint
1131
runs-on: ubuntu-latest
1232
strategy:
1333
matrix:
1434
node-version: [14]
35+
pnpm-version: [6.24.2]
1536
steps:
1637
- uses: actions/checkout@v2
38+
- uses: pnpm/[email protected]
39+
with:
40+
version: ${{ matrix.pnpm-version }}
1741
- name: Set up Node ${{ matrix.node-version }}
1842
uses: actions/setup-node@v2
1943
with:
20-
cache: 'yarn'
44+
cache: 'pnpm'
2145
node-version: ${{ matrix.node-version }}
22-
- name: Install dependencies
23-
run: yarn install
24-
- name: Lint
25-
run: yarn lint
46+
- name: Install Dependencies
47+
run: pnpm i
48+
- name: Lint code
49+
run: pnpm lint
2650
- name: Check types
27-
run: yarn lint:types
51+
run: pnpm lint:types

.gitignore

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
node_modules
1+
*.local
22
.DS_Store
3+
.eslintcache
4+
.next
35
dist
4-
dist-ssr
5-
*.local
6-
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
6+
node_modules
7+
.pnpm-debug.log*
8+
tsconfig.tsbuildinfo
99

1010
# local env files
1111
.env
1212
.env.local
1313
.env.development.local
1414
.env.test.local
1515
.env.production.local
16-
17-
.yarn/*
18-
!.yarn/patches
19-
!.yarn/releases
20-
!.yarn/plugins
21-
!.yarn/sdks
22-
!.yarn/versions

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
pnpm lint-staged

.node-version

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

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
"tabWidth": 2,
88
"trailingComma": "all"
99
}
10+

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)