-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
33,238 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* |
Oops, something went wrong.