Skip to content

Commit

Permalink
Fix few eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
grabbou committed Dec 21, 2017
1 parent 89871a3 commit f11b88a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"node": true
},
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:promise/recommended", "plugin:flowtype/recommended"],
"extends": ["eslint:recommended", "plugin:promise/recommended", "plugin:flowtype/recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
Expand Down Expand Up @@ -44,4 +44,4 @@
"onlyFilesWithFlowAnnotation": false
}
}
}
}
12 changes: 7 additions & 5 deletions mobile/views/splash/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
* @flow
*/

import React, { Component } from 'react';
import React from 'react';
import { Text, View } from 'react-native';

import { Wrapper } from './style';

class Splash extends Component {
class Splash extends React.Component<{}> {
render() {
return (
<View testID="welcome">
<Text>Open up App.js to start working on your app!</Text>
</View>
<Wrapper>
<View testID="welcome">
<Text>Open up App.js to start working on your app!</Text>
</View>
</Wrapper>
);
}
}
Expand Down

0 comments on commit f11b88a

Please sign in to comment.