Skip to content

Commit 20739f3

Browse files
authored
Merge pull request #11 from Woonivers/refactor/typescript
Refactor/typescript
2 parents cf727fd + 1f03c11 commit 20739f3

File tree

13 files changed

+10031
-275
lines changed

13 files changed

+10031
-275
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
Example/
3+
# generated by bob
4+
lib/

.eslintrc.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"prettier",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:react/recommended",
7+
"plugin:react-native/all",
8+
"standard"
9+
],
10+
"parserOptions": {
11+
"ecmaFeatures": {
12+
"jsx": true
13+
},
14+
"project": "./tsconfig.json"
15+
},
16+
"plugins": ["simple-import-sort", "@typescript-eslint", "react", "react-native", "react-hooks"],
17+
"settings": {
18+
"react": {
19+
"pragma": "React",
20+
"version": "detect"
21+
}
22+
},
23+
"globals": {
24+
"__DEV__": false,
25+
"jasmine": false,
26+
"beforeAll": false,
27+
"afterAll": false,
28+
"beforeEach": false,
29+
"afterEach": false,
30+
"test": false,
31+
"expect": false,
32+
"describe": false,
33+
"jest": false,
34+
"it": false
35+
},
36+
"rules": {
37+
"no-unused-vars": 0,
38+
"no-undef": 0,
39+
"react/no-unescaped-entities": 0,
40+
"react-native/no-raw-text": 0,
41+
"@typescript-eslint/indent": 0,
42+
"@typescript-eslint/explicit-member-accessibility": 0,
43+
"@typescript-eslint/explicit-function-return-type": 0,
44+
"@typescript-eslint/no-explicit-any": 0,
45+
"@typescript-eslint/no-object-literal-type-assertion": 0,
46+
"@typescript-eslint/no-empty-interface": 0,
47+
"@typescript-eslint/no-var-requires": 0,
48+
"simple-import-sort/sort": "error",
49+
"react-hooks/rules-of-hooks": "error",
50+
"react-hooks/exhaustive-deps": "warn"
51+
}
52+
}

.gitignore

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
21
# OSX
32
#
43
.DS_Store
54

6-
# node.js
7-
#
8-
node_modules/
9-
npm-debug.log
10-
yarn-error.log
11-
5+
# XDE
6+
.expo/
7+
8+
# VSCode
9+
.vscode/
10+
jsconfig.json
1211

1312
# Xcode
1413
#
@@ -29,7 +28,6 @@ DerivedData
2928
*.ipa
3029
*.xcuserstate
3130
project.xcworkspace
32-
3331

3432
# Android/IntelliJ
3533
#
@@ -39,8 +37,18 @@ build/
3937
local.properties
4038
*.iml
4139

40+
# node.js
41+
#
42+
node_modules/
43+
npm-debug.log
44+
yarn-debug.log
45+
yarn-error.log
46+
4247
# BUCK
4348
buck-out/
4449
\.buckd/
45-
*.keystore
46-
50+
android/app/libs
51+
android/keystores/debug.keystore
52+
53+
# generated by bob
54+
lib/

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 100,
3+
"semi": false,
4+
"singleQuote": false,
5+
"trailingComma": "all"
6+
}

.release-it.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release %s",
4+
"tagName": "v%s"
5+
},
6+
"npm": {
7+
"publish": true
8+
},
9+
"github": {
10+
"release": true
11+
},
12+
"plugins": {
13+
"@release-it/conventional-changelog": {
14+
"preset": "angular"
15+
}
16+
}
17+
}
-4.22 MB
Binary file not shown.

commitlint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* eslint-disable import/no-commonjs */
2+
3+
module.exports = {
4+
extends: ['@commitlint/config-conventional']
5+
}

index.js

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

package-lock.json

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

0 commit comments

Comments
 (0)