Skip to content

Commit

Permalink
Merge pull request #37 from chingu-x/dev
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
Dan-Y-Ko authored Oct 6, 2023
2 parents da2b194 + 4cfa4df commit 48cb02a
Show file tree
Hide file tree
Showing 106 changed files with 2,101 additions and 2,424 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
**/node_modules/*
dist
cypress.config.ts
coverage
**/.next/*
*.json
Expand Down
29 changes: 24 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"plugins": ["@typescript-eslint", "import", "no-relative-import-paths"],
"extends": [
"plugin:import/recommended",
"plugin:import/typescript",
Expand All @@ -33,12 +33,20 @@
],
"react/function-component-definition": [
2,
{ "namedComponents": "function-declaration" }
{
"namedComponents": "function-declaration"
}
],
"react/destructuring-assignment": [2, "always"],
"react/button-has-type": 2,
"react/no-array-index-key": 2,
"import/order": 2,
"no-relative-import-paths/no-relative-import-paths": [
"error",
{
"allowSameFolder": true
}
],
"semi": [2, "always"],
"quotes": [2, "double"],
"prefer-destructuring": [
Expand All @@ -61,12 +69,23 @@
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "always"],
"space-infix-ops": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"no-unused-vars": [2, { "args": "all", "argsIgnorePattern": "_" }],
"arrow-spacing": [
2,
{
"before": true,
"after": true
}
],
"no-unused-vars": [
2,
{
"args": "all",
"argsIgnorePattern": "_"
}
],
"guard-for-in": 2,
"no-await-in-loop": 2,
"indent": [2, 2],
"object-curly-newline": [2, { "minProperties": 4, "consistent": true }],
"brace-style": 2,
"no-multiple-empty-lines": 2,
"eol-last": [2, "always"],
Expand Down
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
32 changes: 0 additions & 32 deletions .github/workflows/preview.yml

This file was deleted.

9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18" # current LTS (we have 16 in Docker)
node-version: "18"

- name: Install dependencies
run: yarn install
Expand All @@ -27,4 +27,9 @@ jobs:
run: yarn test

- name: Run Cypress tests
run: yarn cypress
run: |
if [[ ${{ github.event.pull_request.base.ref }} == 'main' ]]; then
yarn cypress
else
echo "Skipping Cypress tests for non-main branch."
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# testing
/coverage
/cypress/screenshots

# next.js
/.next/
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

yarn prettier
yarn lint
yarn cypress
15 changes: 0 additions & 15 deletions Dockerfile.dev

This file was deleted.

Loading

0 comments on commit 48cb02a

Please sign in to comment.