Skip to content
This repository was archived by the owner on Jul 14, 2024. It is now read-only.

Commit 3e907c3

Browse files
authored
Release v3.2.7 (#4)
* fix: updated @expo/config-plugins * refactor: removed old example app * refactor: dev enviroment files * style: enforce code-style * test: add jest * ci: add workflows * revert: add back @tsconfig/node10 * style: enforce code-style in plugins * fix: types * chore: add example to the npmignore file * feat: add example * fix: tsconfig & add sync script * refactor: removed example/
1 parent a115232 commit 3e907c3

85 files changed

Lines changed: 8550 additions & 17373 deletions

File tree

Some content is hidden

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

.circleci/config.yml

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

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.eslintignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Directories
2+
node_modules/
3+
coverage/
4+
android/
5+
ios/
6+
build/
7+
dist/
8+
9+
# File types
10+
*.svg
11+
*.png
12+
*.jpeg
13+
*.json
14+
/*.js
15+
/*.cjs

.eslintrc

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

.eslintrc.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: [
8+
'@react-native-community',
9+
'standard-with-typescript',
10+
'plugin:react/recommended',
11+
'eslint:recommended',
12+
'plugin:react-hooks/recommended',
13+
'plugin:@typescript-eslint/eslint-recommended',
14+
'plugin:@typescript-eslint/recommended',
15+
'plugin:prettier/recommended',
16+
'prettier',
17+
],
18+
overrides: [
19+
{
20+
env: {
21+
node: true,
22+
},
23+
files: ['.eslintrc.{js,cjs}'],
24+
parserOptions: {
25+
sourceType: 'script',
26+
},
27+
},
28+
],
29+
settings: {
30+
react: {
31+
version: 'detect',
32+
},
33+
},
34+
parserOptions: {
35+
ecmaFeatures: {
36+
jsx: true,
37+
},
38+
ecmaVersion: 'latest',
39+
sourceType: 'module',
40+
project: './tsconfig.json',
41+
tsconfigRootDir: __dirname,
42+
},
43+
plugins: ['@typescript-eslint', 'react', 'react-hooks', 'prettier'],
44+
rules: {
45+
'react/display-name': 'off',
46+
'react/react-in-jsx-scope': 'off',
47+
'@typescript-eslint/triple-slash-reference': 'off',
48+
'@typescript-eslint/explicit-function-return-type': 'off',
49+
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
50+
'@typescript-eslint/strict-boolean-expressions': 'off',
51+
'@typescript-eslint/no-confusing-void-expression': 'off',
52+
'@typescript-eslint/naming-convention': 'warn',
53+
'react-hooks/rules-of-hooks': 'error',
54+
'react-hooks/exhaustive-deps': 'warn',
55+
},
56+
}

.github/workflows/update_deps.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Update Dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 1 * *'
7+
8+
jobs:
9+
update_dependencies:
10+
name: Update Dependencies
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x]
16+
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Determine Yarn Cache Directory
27+
id: yarn-cache-dir-path
28+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
29+
30+
- name: Cache node_modules
31+
uses: actions/cache@v4
32+
id: yarn-cache
33+
with:
34+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
35+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-yarn-
38+
39+
- name: Update Dependencies
40+
run: |
41+
yarn global add npm-check-updates
42+
ncu -u
43+
yarn install
44+
45+
- name: Create Pull Request
46+
uses: peter-evans/create-pull-request@v4
47+
with:
48+
commit-message: 'build: update dependencies to the latest version'
49+
title: 'Update dependencies to the latest version'
50+
branch: 'update/dependencies'

.github/workflows/validate_ts.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Validate TypeScript
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- '.github/workflows/validate_ts.yml'
8+
- '**.ts'
9+
- '**.tsx'
10+
11+
jobs:
12+
typescript_compilation:
13+
name: TypeScript Compilation
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [18.x]
19+
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
29+
- name: Determine Yarn Cache Directory
30+
id: yarn-cache-dir-path
31+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
32+
33+
- name: Cache node_modules
34+
uses: actions/cache@v4
35+
id: yarn-cache
36+
with:
37+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-yarn-
41+
42+
- name: Install Dependencies
43+
run: yarn install --frozen-lockfile
44+
45+
- name: Compile TypeScript
46+
run: |
47+
yarn test:typescript
48+
49+
code_quality_checks:
50+
name: Code Quality Checks
51+
runs-on: ubuntu-latest
52+
53+
strategy:
54+
matrix:
55+
node-version: [18.x]
56+
57+
steps:
58+
- name: Checkout Code
59+
uses: actions/checkout@v4
60+
61+
- name: Setup Node.js ${{ matrix.node-version }}
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: ${{ matrix.node-version }}
65+
66+
- name: Determine Yarn Cache Directory
67+
id: yarn-cache-dir-path
68+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
69+
70+
- name: Cache node_modules
71+
uses: actions/cache@v4
72+
id: yarn-cache
73+
with:
74+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
75+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
76+
restore-keys: |
77+
${{ runner.os }}-yarn-
78+
79+
- name: Install Dependencies
80+
run: yarn install --frozen-lockfile
81+
82+
- name: Run Prettier for Code Formatting
83+
run: yarn pretty
84+
85+
- name: Run ESLint for Linting
86+
run: yarn lint
87+
88+
- name: Run Jest for Unit Testing
89+
run: yarn test:ci

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
VoiceTest
2+
example

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/fermium
1+
lts/fermium

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Directories
2+
node_modules/
3+
coverage/
4+
android/
5+
ios/
6+
build/
7+
dist/
8+
9+
# File types
10+
*.svg

0 commit comments

Comments
 (0)