Skip to content

Commit 26a950f

Browse files
authored
RN73 upgrade (#2607)
* upgrade rn73 * additional fixes * remove react-navigation * Use modal instead of navigation * removing packageManager * removing react navigation * downgrade eslint-plugin-prettier * updating eslint rules * removing deprecated rule * edit eslintrc * prettier to warn * fix lint errors * fix react hooks ts error * move tests to src * lint and unit tests config fix * some test cleanups * Adding BasicDay test driver * fix drivers * fix text style * skip failing tests (custom renders and events) * remove only testing dependency * fix lint
1 parent 94f6859 commit 26a950f

File tree

90 files changed

+4805
-6560
lines changed

Some content is hidden

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

90 files changed

+4805
-6560
lines changed

.eslintrc.js

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module.exports = {
99
it: true,
1010
describe: true
1111
},
12-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
12+
root: true,
13+
extends: ['@react-native', 'plugin:react-hooks/recommended', 'plugin:@typescript-eslint/recommended'],
1314
parser: '@typescript-eslint/parser',
1415
parserOptions: {
1516
ecmaFeatures: {
@@ -20,17 +21,43 @@ module.exports = {
2021
},
2122
plugins: ['react', 'react-native', 'jest', '@typescript-eslint'],
2223
rules: {
23-
semi: ['error', 'always'],
24-
'linebreak-style': ['error', 'unix'],
25-
'no-unused-vars': 1,
26-
'object-curly-spacing': ['error', 'never'],
27-
'react/jsx-uses-react': 2,
28-
'react/jsx-uses-vars': 2,
29-
'react-native/no-inline-styles': 1,
24+
'prettier/prettier': ['warn'],
25+
'comma-dangle': ['error', 'never'],
26+
'curly': 'off',
27+
'eol-last': 'error',
28+
'no-unused-expressions': 'off',
29+
'max-len': ['warn', {code: 120, ignoreComments: true, ignoreStrings: true}],
30+
'new-cap': 'off',
31+
'no-mixed-operators': ['off'],
32+
'no-trailing-spaces': 'off',
33+
'no-undef': 'off',
34+
'operator-linebreak': 'off',
35+
'semi': ['error', 'always'],
36+
'@typescript-eslint/ban-ts-comment': 1,
37+
'@typescript-eslint/explicit-function-return-type': 0,
38+
'@typescript-eslint/no-shadow': 0,
39+
'@typescript-eslint/no-unused-vars': ['warn', {argsIgnorePattern: '^_'}],
3040
'@typescript-eslint/no-use-before-define': 0,
3141
'@typescript-eslint/no-var-requires': 0,
32-
'@typescript-eslint/explicit-function-return-type': 0,
33-
'@typescript-eslint/ban-types': 0,
34-
'@typescript-eslint/ban-ts-comment': 1
42+
'react/jsx-tag-spacing': [
43+
'error',
44+
{
45+
closingSlash: 'never',
46+
beforeSelfClosing: 'never',
47+
afterOpening: 'never',
48+
beforeClosing: 'never'
49+
}
50+
],
51+
'react/jsx-no-bind': [
52+
'off',
53+
{
54+
ignoreRefs: true,
55+
allowArrowFunctions: false,
56+
allowBind: false
57+
}
58+
],
59+
'react/jsx-uses-react': 2,
60+
'react/jsx-uses-vars': 2,
61+
'react-native/no-inline-styles': 1
3562
}
3663
};

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ local.properties
4545
#
4646
node_modules/
4747
npm-debug.log
48+
49+
# yarn
4850
yarn-error.log
51+
**/.yarn/cache
52+
**/.yarn/install-state.gz
53+
**/.yarn/yarn.build.json
4954

5055
# fastlane
5156
#
@@ -69,3 +74,6 @@ ios/Podfile.lock
6974

7075
# Temporary files created by Metro to check the health of the file watcher
7176
.metro-health-check*
77+
78+
# testing
79+
/coverage

.node-version

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

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ios/
1010
android/
1111
index.android.js
1212
index.ios.js
13-
jest-setup.js
1413

1514
.nvmrc
1615
.*ignore

.prettierrc.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"singleQuote": true,
3-
"printWidth": 120,
4-
"bracketSpacing": false,
52
"arrowParens": "avoid",
6-
"trailingComma": "none",
7-
"bracketSameLine": false
3+
"bracketSameLine": false,
4+
"bracketSpacing": false,
5+
"endOfLine": "auto",
6+
"printWidth": 120,
7+
"proseWrap": "preserve",
8+
"semicolons": true,
9+
"singleQuote": true,
10+
"trailingComma": "none"
811
}

.ruby-version

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

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
# yarnPath: .yarn/releases/yarn-3.6.4.cjs

0 commit comments

Comments
 (0)