Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9025226

Browse files
committed
Fix remaining eslint errors
1 parent ebe0899 commit 9025226

File tree

6 files changed

+48
-20
lines changed

6 files changed

+48
-20
lines changed

‎.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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
};

‎components/NavBarContainer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

1010
import NavBarContent from './NavBarContent';

‎components/NavBarContent.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React, {PropTypes} from "react";
1+
import React, {PropTypes} from 'react';
22
import {
3+
Animated,
4+
Easing,
5+
Platform,
36
StyleSheet,
47
Text,
58
View,
6-
Animated,
7-
Easing,
8-
Platform
99
} from 'react-native';
1010
import NavButton from './NavButton';
1111
import * 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}

‎components/NavButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, {PropTypes} from "react";
1+
import React, {PropTypes} from 'react';
22
import {
33
StyleSheet,
44
Text,
5+
TouchableHighlight,
56
View,
6-
TouchableHighlight
77
} from 'react-native';
88

99
const propTypes = {

‎index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {PropTypes} from "react";
1+
import React, {PropTypes} from 'react';
22
import {
33
StyleSheet,
44
Navigator,

‎package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@
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
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /