Skip to content

Commit 6ecb808

Browse files
authored
Merge pull request #47 from MetaMask/merge-master-into-fork
sync with upstream v13.13.5
2 parents d8d4091 + a683d06 commit 6ecb808

File tree

94 files changed

+158389
-5064
lines changed

Some content is hidden

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

94 files changed

+158389
-5064
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
lib/
2-
babel.config.js
2+
babel.config.js
3+
node_modules

.eslintrc.js

Lines changed: 7 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,15 @@
11
module.exports = {
2-
// Airbnb is the base, prettier is here so that eslint doesn't conflict with prettier
3-
extends: ['airbnb', 'prettier', 'prettier/react', 'plugin:react-hooks/recommended'],
4-
parser: '@typescript-eslint/parser',
5-
plugins: ['react', 'react-native', 'import', '@typescript-eslint'],
2+
extends: ['@react-native', 'prettier'],
63
rules: {
7-
'no-console': 'off',
8-
// Lines will be broken before binary operators
9-
'operator-linebreak': ['error', 'before'],
10-
// Allow imports from dev and peer dependencies
11-
'import/no-extraneous-dependencies': [
12-
'error',
13-
{ devDependencies: true, peerDependencies: true },
14-
],
15-
'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],
16-
// This rule doesn't play nice with Prettier
17-
'react/jsx-one-expression-per-line': 'off',
18-
// This rule doesn't play nice with Prettier
19-
'react/jsx-wrap-multilines': 'off',
20-
// Remove this rule because we only destructure props, but never state
21-
'react/destructuring-assignment': 'off',
22-
'react/prop-types': 'off',
23-
'react/jsx-props-no-spreading': 'off',
24-
'react/static-property-placement': 'off',
25-
'react/state-in-constructor': 'off',
26-
'@typescript-eslint/adjacent-overload-signatures': 'error',
27-
'@typescript-eslint/array-type': [
28-
'error',
29-
{
30-
default: 'array',
31-
},
32-
],
33-
'@typescript-eslint/generic-type-naming': ['error', '^[a-zA-Z]+$'],
34-
'@typescript-eslint/no-array-constructor': 'error',
35-
'@typescript-eslint/no-empty-interface': 'error',
36-
'@typescript-eslint/no-explicit-any': 'error',
37-
'@typescript-eslint/no-extraneous-class': 'error',
38-
'@typescript-eslint/no-inferrable-types': 'error',
39-
'@typescript-eslint/no-misused-new': 'error',
40-
'@typescript-eslint/no-namespace': 'error',
41-
'@typescript-eslint/no-non-null-assertion': 'error',
42-
'@typescript-eslint/consistent-type-assertions': [
43-
'error',
44-
{
45-
assertionStyle: 'as',
46-
},
47-
],
48-
'@typescript-eslint/no-parameter-properties': 'error',
49-
'@typescript-eslint/no-this-alias': 'error',
50-
'@typescript-eslint/triple-slash-reference': [
51-
'error',
52-
{ path: 'never', types: 'never', lib: 'never' },
53-
],
54-
'@typescript-eslint/no-type-alias': [
4+
'prettier/prettier': [
555
'error',
566
{
57-
allowAliases: 'always',
58-
allowCallbacks: 'always',
59-
allowMappedTypes: 'always',
7+
quoteProps: 'consistent',
8+
singleQuote: true,
9+
tabWidth: 2,
10+
trailingComma: 'es5',
11+
useTabs: false,
6012
},
6113
],
62-
'@typescript-eslint/no-unused-vars': [
63-
'error',
64-
{ ignoreRestSiblings: true },
65-
],
66-
'@typescript-eslint/consistent-type-definitions': [
67-
'error',
68-
'interface',
69-
],
70-
'@typescript-eslint/prefer-namespace-keyword': 'error',
71-
'@typescript-eslint/type-annotation-spacing': 'error',
72-
},
73-
settings: {
74-
'import/resolver': {
75-
node: {
76-
extensions: [
77-
'.js',
78-
'.android.js',
79-
'.ios.js',
80-
'.jsx',
81-
'.android.jsx',
82-
'.ios.jsx',
83-
'.tsx',
84-
'.ts',
85-
'.android.tsx',
86-
'.android.ts',
87-
'.ios.tsx',
88-
'.ios.ts',
89-
],
90-
},
91-
},
9214
},
9315
};

.github/workflows/android-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
- name: Set up Node.js
18-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: 20
2121
cache: 'yarn'
2222
- name: Set up JDK
23-
uses: actions/setup-java@v3
23+
uses: actions/setup-java@v4
2424
with:
2525
distribution: temurin
26-
java-version: 11
26+
java-version: 17
2727
- name: Install npm dependencies
2828
run: yarn --frozen-lockfile
2929
shell: bash

.github/workflows/detox.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ jobs:
66
name: 'Running tests'
77
runs-on: 'macOS-latest'
88
steps:
9-
- uses: actions/checkout@master
10-
- uses: actions/setup-node@master
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Set up Node.js
12+
uses: actions/setup-node@v4
1113
with:
1214
node-version: 20
15+
cache: 'yarn'
1316
- name: Setup - Install Yarn
1417
run: YARN_GPG=NO curl -o- -L https://yarnpkg.com/install.sh | bash
1518
- name: Setup - Install NPM Dependencies
1619
run: yarn --frozen-lockfile
17-
- name: Setup - Install CocoaPods CLI
18-
run: sudo gem install cocoapods -v 1.8.4
1920
- name: Run tests
2021
run: yarn ci

.github/workflows/ios-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: macos-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Set up Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
2020
cache: 'yarn'
@@ -25,7 +25,7 @@ jobs:
2525
working-directory: example/ios
2626
- name: Build iOS test app
2727
run: |
28-
device_name='iPhone 14'
28+
device_name='iPhone 15'
2929
device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (")
3030
re='\(([-0-9A-Fa-f]+)\)'
3131
[[ $device =~ $re ]] || exit 1

.github/workflows/macos-ci.yml

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

.prettierrc.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// https://prettier.io/docs/en/options.html
22

33
module.exports = {
4-
// Enables semicolons at the end of statements
5-
semi: true,
6-
// Formats strings with single quotes ('') instead of quotes ("")
4+
quoteProps: 'consistent',
75
singleQuote: true,
8-
// Adds a trailing comma at the end of all lists (including function arguments)
9-
trailingComma: 'all',
6+
tabWidth: 2,
7+
trailingComma: 'es5',
8+
useTabs: false,
109
};

0 commit comments

Comments
 (0)