File tree Expand file tree Collapse file tree 6 files changed +48
-20
lines changed Expand file tree Collapse file tree 6 files changed +48
-20
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,29 @@ module.exports = {
33 plugins : [
44 'react' ,
55 ] ,
6+ parser : 'babel-eslint' ,
7+ settings : {
8+ 'import/resolver' : {
9+ node : {
10+ extensions : [
11+ '.js' ,
12+ '.android.js' ,
13+ '.ios.js' ,
14+ ] ,
15+ } ,
16+ } ,
17+ node : true ,
18+ } ,
19+ rules : {
20+ 'import/no-unresolved' : [
21+ 2 ,
22+ {
23+ ignore : [
24+ '^react$' ,
25+ '^react-native$' ,
26+ '^react-native/' ,
27+ ] ,
28+ } ,
29+ ] ,
30+ } ,
631} ;
Original file line number Diff line number Diff line change 1- import React , { PropTypes } from "react" ;
2- import {
1+ import React , { PropTypes } from 'react' ;
2+ import {
3+ BackAndroid ,
4+ Platform ,
35 StyleSheet ,
6+ Text ,
47 View ,
5- Platform ,
6- BackAndroid ,
7- Text
88} from 'react-native' ;
99
1010import NavBarContent from './NavBarContent' ;
Original file line number Diff line number Diff line change 1- import React , { PropTypes } from " react" ;
1+ import React , { PropTypes } from ' react' ;
22import {
3+ Animated ,
4+ Easing ,
5+ Platform ,
36 StyleSheet ,
47 Text ,
58 View ,
6- Animated ,
7- Easing ,
8- Platform
99} from 'react-native' ;
1010import NavButton from './NavButton' ;
1111import * as Styles from '../styles' ;
@@ -245,11 +245,12 @@ class NavBarContent extends React.Component {
245245 ) ;
246246 } else {
247247 titleContent = (
248- < Text style = { [
249- styles . navbarText ,
250- this . props . titleStyle ,
251- this . props . route . titleStyle ,
252- ] }
248+ < Text
249+ style = { [
250+ styles . navbarText ,
251+ this . props . titleStyle ,
252+ this . props . route . titleStyle ,
253+ ] }
253254 numberOfLines = { 1 }
254255 >
255256 { this . props . route . name }
Original file line number Diff line number Diff line change 1- import React , { PropTypes } from " react" ;
1+ import React , { PropTypes } from ' react' ;
22import {
33 StyleSheet ,
44 Text ,
5+ TouchableHighlight ,
56 View ,
6- TouchableHighlight
77} from 'react-native' ;
88
99const propTypes = {
Original file line number Diff line number Diff line change 1- import React , { PropTypes } from " react" ;
1+ import React , { PropTypes } from ' react' ;
22import {
33 StyleSheet ,
44 Navigator ,
Original file line number Diff line number Diff line change 4141 "react-native" : " *"
4242 },
4343 "devDependencies" : {
44- "eslint" : " ^2.7.0" ,
44+ "babel-eslint" : " ^6.0.4" ,
45+ "eslint" : " ^2.9.0" ,
4546 "eslint-config-airbnb" : " ^9.0.1" ,
46- "eslint-plugin-react" : " ^5.1.1" ,
47- "eslint-plugin-jsx-a11y" : " ^1.2.0"
47+ "eslint-plugin-import" : " ^1.8.0" ,
48+ "eslint-plugin-jsx-a11y" : " ^1.2.0" ,
49+ "eslint-plugin-react" : " ^5.1.1"
4850 }
4951}
You can’t perform that action at this time.
0 commit comments