Skip to content

Commit

Permalink
migration to react-navigation v2.x (#3068) (#3141)
Browse files Browse the repository at this point in the history
migration to react-navigation v2.x (#3068)
  • Loading branch information
aksonov committed Aug 8, 2018
1 parent 980ff1c commit d61960c
Show file tree
Hide file tree
Showing 66 changed files with 6,647 additions and 7,048 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ jobs:
build:
working_directory: ~/react-native-router-flux
docker:
- image: circleci/node:7
- image: circleci/node:8
steps:
- run:
name: temporary-eslint-airbnb-config-install
command: |
git clone https://github.com/airbnb/javascript.git ~/airbnb-style
cd ~/airbnb-style/ && yarn install
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
Expand Down
57 changes: 23 additions & 34 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,70 +1,59 @@
module.exports = {
extends: 'airbnb',
plugins: [
'react',
'jest'
],
plugins: ['react', 'jest'],
env: {
"jest/globals": true
'jest/globals': true,
},
parser: 'babel-eslint',
rules: {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/valid-expect": "error",
'react/forbid-prop-types': 0,
'no-new-func': 'warn',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/valid-expect': 'error',

'react/forbid-prop-types': 'warn',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/no-unused-prop-types': 'off',
'no-param-reassign': 0,
'no-console': 0,
'new-cap': 0,
'no-underscore-dangle': 0,
'no-use-before-define': 0,
'max-len': ["error", 180],
'max-len': ['error', 180],
'import/no-unresolved': [
2,
{
ignore: [
'^react$',
'^react-native$',
'^react-native/',
],
ignore: ['^react$', '^react-native$', '^react-native/'],
},
],
'import/no-cycle': 'warn',
'import/no-self-import': 'warn',
'react/jsx-filename-extension': [
1,
{
extensions: [
'.js',
'.jsx',
],
extensions: ['.js', '.jsx'],
},
],
'import/no-extraneous-dependencies': [
'error',
{
'devDependencies': true,
}
devDependencies: true,
},
],
'no-bitwise': [
'error',
{
'allow': ['^'],
allow: ['^'],
},
],
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
},
settings: {
'import/resolver': {
node: {
extensions: [
'.js',
'.android.js',
'.ios.js',
],
extensions: ['.js', '.android.js', '.ios.js'],
},
},
node: true,
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 180,
"singleQuote": true,
"semi": true,
"bracketSpacing": true,
"trailingComma": "all"
}
8 changes: 0 additions & 8 deletions Example/.babelrc

This file was deleted.

1 change: 1 addition & 0 deletions Example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ buck-out/
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
node_modules/
Loading

0 comments on commit d61960c

Please sign in to comment.