Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
xcarpentier committed Dec 31, 2018
1 parent 32e36cf commit 8829f44
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 46 deletions.
42 changes: 20 additions & 22 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
{
"extends": "cooperka/react-native",
"env": {
"browser": true,
"jest": true
},
"rules": {
"no-underscore-dangle": 0,
"import/no-unresolved": [
2,
{
"ignore": [
"react",
"react-native"
]
}
],
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"react/no-unused-prop-types": 0,
"react/no-typos": 0,
"jsx-a11y/accessible-emoji": 0
}
"extends": "cooperka/react-native",
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true
},
"rules": {
"no-underscore-dangle": 0,
"import/no-unresolved": [
2,
{
"ignore": ["react", "react-native"]
}
],
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"react/no-unused-prop-types": 0,
"react/no-typos": 0,
"jsx-a11y/accessible-emoji": 0
}
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@types/react": "^16.0.38",
"@types/react-native": "^0.52.12",
"babel": "6.23.0",
"babel-eslint": "10.0.1",
"babel-jest": "23.0.0",
"babel-preset-react-native": "4.0.0",
"eslint": "^4.9.0",
Expand All @@ -59,19 +60,19 @@
"eslint-plugin-react-native": "3.2.1",
"husky": "0.15.0-rc.2",
"jest": "22.1.4",
"react-test-renderer": "16.4.0",
"prop-types": "15.6.2",
"react": "16.2.0",
"react-native": "0.51.0",
"prop-types": "15.6.2"
"react-test-renderer": "16.4.0"
},
"dependencies": {
"@expo/react-native-action-sheet": "^1.0.1",
"moment": "^2.19.0",
"react-native-communications": "2.2.1",
"react-native-lightbox": "^0.7.0",
"react-native-parsed-text": "^0.0.20",
"uuid": "3.3.0",
"react-native-video": "^3.2.1"
"react-native-video": "^3.2.1",
"uuid": "3.3.0"
},
"peerDependencies": {
"prop-types": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/MessageContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class MessageContainer extends React.PureComponent {
renderHeaderWrapper() {
return <View style={styles.headerWrapper}>{this.renderLoadEarlier()}</View>;
}

keyExtractor = (item) => `${item._id}`

render() {
Expand Down
Loading

0 comments on commit 8829f44

Please sign in to comment.