Skip to content

Commit 8adb9e5

Browse files
davidLeonardicharpeni
authored andcommitted
updating linting tooling to latest versions available (#119)
1 parent d9c2c49 commit 8adb9e5

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

components/NavBarContent.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ class NavBarContent extends React.Component {
149149
let titleContent;
150150
let TitleComponent;
151151
let trans;
152-
let width;
153-
let color;
152+
const width = this.props.borderBottomWidth ? this.props.borderBottomWidth : 0;
153+
const color = this.props.borderColor ? this.props.borderColor : null;
154154

155155
/**
156156
* Set leftCorner
@@ -261,9 +261,6 @@ class NavBarContent extends React.Component {
261261
trans = {};
262262
}
263263

264-
width = this.props.borderBottomWidth ? this.props.borderBottomWidth : 0;
265-
color = this.props.borderColor ? this.props.borderColor : null;
266-
267264
return (
268265
<Animated.View
269266
style={

components/NavButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class NavButton extends React.Component {
3333

3434
if (this.props.backButtonComponent) {
3535
BackButton = this.props.backButtonComponent;
36-
backButton = <View><BackButton/></View>;
36+
backButton = <View><BackButton /></View>;
3737
} else {
3838
backButton = <Text style={this.styles.navbarText}>Back</Text>;
3939
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
"react-native": "*"
4141
},
4242
"devDependencies": {
43-
"eslint": "^1.10.3",
44-
"eslint-config-airbnb": "^3.1.0",
45-
"eslint-plugin-react": "^3.15.0"
43+
"eslint": "^2.7.0",
44+
"eslint-config-airbnb": "^7.0.0",
45+
"eslint-plugin-react": "^4.3.0",
46+
"eslint-plugin-jsx-a11y": "^0.6.2"
4647
}
4748
}

0 commit comments

Comments
 (0)