Skip to content

Commit d61960c

Browse files
authored
migration to react-navigation v2.x (#3068) (#3141)
migration to react-navigation v2.x (#3068)
1 parent 980ff1c commit d61960c

Some content is hidden

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

66 files changed

+6647
-7048
lines changed

.babelrc

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

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ jobs:
33
build:
44
working_directory: ~/react-native-router-flux
55
docker:
6-
- image: circleci/node:7
6+
- image: circleci/node:8
77
steps:
8+
- run:
9+
name: temporary-eslint-airbnb-config-install
10+
command: |
11+
git clone https://github.com/airbnb/javascript.git ~/airbnb-style
12+
cd ~/airbnb-style/ && yarn install
813
- checkout
914
- restore_cache:
1015
key: dependency-cache-{{ checksum "package.json" }}

.eslintrc.js

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,59 @@
11
module.exports = {
22
extends: 'airbnb',
3-
plugins: [
4-
'react',
5-
'jest'
6-
],
3+
plugins: ['react', 'jest'],
74
env: {
8-
"jest/globals": true
5+
'jest/globals': true,
96
},
107
parser: 'babel-eslint',
118
rules: {
12-
"jest/no-disabled-tests": "warn",
13-
"jest/no-focused-tests": "error",
14-
"jest/no-identical-title": "error",
15-
"jest/valid-expect": "error",
16-
'react/forbid-prop-types': 0,
9+
'no-new-func': 'warn',
10+
'jest/no-disabled-tests': 'warn',
11+
'jest/no-focused-tests': 'error',
12+
'jest/no-identical-title': 'error',
13+
'jest/valid-expect': 'error',
14+
15+
'react/forbid-prop-types': 'warn',
16+
'react/prop-types': 'off',
17+
'react/require-default-props': 'off',
18+
'react/no-unused-prop-types': 'off',
19+
'no-param-reassign': 0,
1720
'no-console': 0,
1821
'new-cap': 0,
1922
'no-underscore-dangle': 0,
2023
'no-use-before-define': 0,
21-
'max-len': ["error", 180],
24+
'max-len': ['error', 180],
2225
'import/no-unresolved': [
2326
2,
2427
{
25-
ignore: [
26-
'^react$',
27-
'^react-native$',
28-
'^react-native/',
29-
],
28+
ignore: ['^react$', '^react-native$', '^react-native/'],
3029
},
3130
],
31+
'import/no-cycle': 'warn',
32+
'import/no-self-import': 'warn',
3233
'react/jsx-filename-extension': [
3334
1,
3435
{
35-
extensions: [
36-
'.js',
37-
'.jsx',
38-
],
36+
extensions: ['.js', '.jsx'],
3937
},
4038
],
4139
'import/no-extraneous-dependencies': [
4240
'error',
4341
{
44-
'devDependencies': true,
45-
}
42+
devDependencies: true,
43+
},
4644
],
4745
'no-bitwise': [
4846
'error',
4947
{
50-
'allow': ['^'],
48+
allow: ['^'],
5149
},
5250
],
53-
'no-restricted-syntax': [
54-
'error',
55-
'ForInStatement',
56-
'LabeledStatement',
57-
'WithStatement',
58-
],
51+
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
5952
},
6053
settings: {
6154
'import/resolver': {
6255
node: {
63-
extensions: [
64-
'.js',
65-
'.android.js',
66-
'.ios.js',
67-
],
56+
extensions: ['.js', '.android.js', '.ios.js'],
6857
},
6958
},
7059
node: true,

.prettierrc

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

Example/.babelrc

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

Example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ buck-out/
5151
fastlane/report.xml
5252
fastlane/Preview.html
5353
fastlane/screenshots
54+
node_modules/

0 commit comments

Comments
 (0)