Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Jun 4, 2023
1 parent 432a0f3 commit 3986cf5
Show file tree
Hide file tree
Showing 124 changed files with 33,238 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
build
.expo
.jest
.vscode
coverage
patches
test
babel.config.js
jest.config.js
208 changes: 208 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:promise/recommended",
"plugin:json/recommended",
// "plugin:import/recommended",
"plugin:import/typescript"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"globalReturn": true,
"impliedStrict": true
},
"project": "tsconfig.json"
},
"plugins": [
"es5",
"html",
"@typescript-eslint",
"simple-import-sort",
"promise",
"deprecate",
"node",
"import",
"compat",
"@getify/proper-arrows",
"eslint-plugin",
"eslint-plugin-tsdoc",
"@typescript-eslint/eslint-plugin",
"jsdoc"
],
"rules": {
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "warn",
"promise/always-return": ["warn", { "ignoreLastCallback": true }],
// to enforce using type for object type definitions, can be type or interface
"@typescript-eslint/consistent-type-definitions": ["warn", "interface"],
"@typescript-eslint/array-type": [
"warn",
{
"default": "array"
}
],
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/consistent-type-exports": "warn",
"@typescript-eslint/restrict-template-expressions": [
"warn",
{
"allowNumber": true,
"allowBoolean": true,
"allowNullish": true
}
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
/* "@typescript-eslint/naming-convention": [
"warn",
{
"selector": "variableLike",
"format": [
"camelCase"
]
},
{
"selector": "memberLike",
"format": [
"camelCase"
]
},
{
"selector": "variable",
"types": [
"boolean"
],
"format": [
"camelCase"
],
"prefix": [
"is",
"should",
"has",
"can",
"did",
"will"
]
},
{
"selector": "typeParameter",
"format": [
"PascalCase"
],
"prefix": [
"T"
]
},
{
"selector": "default",
"format": [
"camelCase"
]
},
{
"selector": "variable",
"format": [
"camelCase",
"UPPER_CASE"
],
"leadingUnderscore": "allow"
},
{
"selector": "parameter",
"format": [
"camelCase"
],
"leadingUnderscore": "allow"
},
{
"selector": "memberLike",
"modifiers": [
"private"
],
"format": [
"camelCase"
],
"leadingUnderscore": "require"
},
{
"selector": "typeLike",
"format": [
"PascalCase"
]
}
], */
"new-cap": 1,
"camelcase": 0,
/* "@getify/proper-arrows/params": ["warn", {
"unused": "trailing",
"allow": ["e", "err"],
"length": 3, "trivial": true
}],,
"@getify/proper-arrows/return": ["warn", {
"object": true
}] */
"@getify/proper-arrows/where": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "all",
"ignoreRestSiblings": false,
"argsIgnorePattern": "^_"
}
],
"mocha/no-mocha-arrows": 0,
"prefer-promise-reject-errors": "warn",
"no-await-in-loop": "warn",
"no-return-await": "warn",
"no-prototype-builtins": "warn",
"no-empty": "warn",
"arrow-body-style": ["warn", "as-needed"],
"no-useless-return": "warn",
"require-await": "warn",
"prefer-arrow-callback": "warn",
"no-var": "warn",
"no-fallthrough": "warn",
"no-extra-parens": ["warn", "functions"],
"no-extra-semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-else-return": "warn",
"prefer-const": "warn",
"no-console": 1,
"no-unused-vars": [
"warn",
{
// "varsIgnorePattern": "^_",
// "caughtErrorsIgnorePattern": "^ignore"
"argsIgnorePattern": "^_"
}
],
"indent": [
"warn",
"tab",
{
"SwitchCase": 1
}
],
"linebreak-style": ["warn", "windows"],
"quotes": ["warn", "single"],
"semi": ["warn", "never"]
},
"ignorePatterns": ["dist"]
}
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.
30 changes: 30 additions & 0 deletions .github/workflows/eas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: eas build
on:
push:
tags:
- "v**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3

- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 📦 Install dependencies
run: npm install

- name: 🚀 Build app
run: npm run build:ci
35 changes: 35 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [main, dev]
pull_request:
types: [opened, reopened]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm run build --if-present
- run: npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
node_modules/
.expo/
.jest/
coverage/
build/
dist/
sqlite/
dev/
./dev/sqlite
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
*.db
# macOS
.DS_Store

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
Loading

0 comments on commit 3986cf5

Please sign in to comment.