Skip to content

Commit dd4a2a2

Browse files
committed
Merge branch 'feature/example' into feature/keystoreAsDefault
2 parents ac5298f + 2a869af commit dd4a2a2

Some content is hidden

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

48 files changed

+4409
-4952
lines changed

.DS_Store

6 KB
Binary file not shown.

.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ android/build/
4141
android/local.properties
4242
android.yml
4343
*.iml
44+
45+
.DS_STORE

.prettierrc

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

RNSensitiveInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {NativeModules} from 'react-native';
1+
import { NativeModules } from 'react-native';
22

3-
const RNSensitiveInfo = NativeModules.RNSensitiveInfo;
3+
const { RNSensitiveInfo } = NativeModules;
44

55
module.exports = {
66
...RNSensitiveInfo,

example/.eslintrc.js

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,57 @@
11
module.exports = {
2-
root: true,
3-
extends: '@react-native-community',
2+
env: {
3+
browser: true,
4+
es2020: true,
5+
},
6+
extends: [
7+
'plugin:react/recommended',
8+
'airbnb',
9+
'plugin:@typescript-eslint/recommended',
10+
'prettier/@typescript-eslint',
11+
'plugin:prettier/recommended',
12+
],
13+
parser: '@typescript-eslint/parser',
14+
parserOptions: {
15+
ecmaFeatures: {
16+
jsx: true,
17+
},
18+
ecmaVersion: 11,
19+
sourceType: 'module',
20+
},
21+
plugins: ['react', 'react-hooks', '@typescript-eslint', 'prettier'],
22+
rules: {
23+
'prettier/prettier': 'error',
24+
'react-hooks/rules-of-hooks': 'error',
25+
'react-hooks/exhaustive-deps': 'warn',
26+
'react/jsx-filename-extension': [
27+
1,
28+
{
29+
extensions: ['.tsx'],
30+
},
31+
],
32+
'import/prefer-default-export': 'off',
33+
'react/jsx-one-expression-per-line': 'off',
34+
'react/jsx-props-no-spreading': 'off',
35+
'no-unused-expressions': 'off',
36+
'react/prop-types': 'off',
37+
'@typescript-eslint/explicit-function-return-type': [
38+
'error',
39+
{
40+
allowExpressions: true,
41+
},
42+
],
43+
'import/extensions': [
44+
'error',
45+
'ignorePackages',
46+
{
47+
ts: 'never',
48+
tsx: 'never',
49+
},
50+
],
51+
},
52+
settings: {
53+
'import/resolver': {
54+
typescript: {},
55+
},
56+
},
457
};

example/.flowconfig

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

example/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ build/
2929
local.properties
3030
*.iml
3131

32+
# Visual Studio Code
33+
#
34+
.vscode/
35+
3236
# node.js
3337
#
3438
node_modules/
@@ -57,3 +61,5 @@ buck-out/
5761

5862
# CocoaPods
5963
/ios/Pods/
64+
65+
.yalc

example/.prettierrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
module.exports = {
2-
bracketSpacing: false,
3-
jsxBracketSameLine: true,
42
singleQuote: true,
53
trailingComma: 'all',
64
};

0 commit comments

Comments
 (0)