diff --git a/.eslintrc b/.eslintrc index 04a05da..71d165b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -61,6 +61,7 @@ "ignoreComments": true, "ignoreTemplateLiterals": true } - ] + ], + "no-multi-spaces": 2, } -} \ No newline at end of file +} diff --git a/components/app-loading.js b/components/app-loading.js index c99cd51..ebac28f 100644 --- a/components/app-loading.js +++ b/components/app-loading.js @@ -8,11 +8,11 @@ import { shared } from '../i18n/en/labels' const AppLoadingView = () => { return ( - + {shared.loading} ) } -export default AppLoadingView \ No newline at end of file +export default AppLoadingView diff --git a/components/cycle-day/symptoms/bleeding.js b/components/cycle-day/symptoms/bleeding.js index d9cde4f..a8ae709 100644 --- a/components/cycle-day/symptoms/bleeding.js +++ b/components/cycle-day/symptoms/bleeding.js @@ -41,7 +41,7 @@ class Bleeding extends Component { autoSave = () => { const { date } = this.props const valuesToSave = { ...this.state } - const hasValueToSave = typeof this.state.value === 'number' + const hasValueToSave = typeof this.state.value === 'number' saveSymptom(this.symptom, date, hasValueToSave ? valuesToSave : null) } diff --git a/components/cycle-day/symptoms/desire.js b/components/cycle-day/symptoms/desire.js index 3b0686d..b6567dc 100644 --- a/components/cycle-day/symptoms/desire.js +++ b/components/cycle-day/symptoms/desire.js @@ -37,7 +37,7 @@ class Desire extends Component { autoSave = () => { const { date } = this.props const valuesToSave = { ...this.state } - const hasValueToSave = typeof this.state.value === 'number' + const hasValueToSave = typeof this.state.value === 'number' saveSymptom(this.symptom, date, hasValueToSave ? valuesToSave : null) } diff --git a/components/cycle-day/symptoms/symptom-view.js b/components/cycle-day/symptoms/symptom-view.js index 749a873..801fbdb 100644 --- a/components/cycle-day/symptoms/symptom-view.js +++ b/components/cycle-day/symptoms/symptom-view.js @@ -53,7 +53,7 @@ class SymptomView extends Component { return this.values[key] || this.values[key] === 0 } - const valuesKeys = Object.keys(this.values) + const valuesKeys = Object.keys(this.values) return valuesKeys.some(valueHasBeenFilledOut) } diff --git a/components/home.js b/components/home.js index 25c46b8..da0fdc8 100644 --- a/components/home.js +++ b/components/home.js @@ -29,7 +29,7 @@ const IconText = ({ children, wrapperStyles }) => { ) } -const HomeElement = ({ children, onPress, buttonColor, buttonLabel }) => { +const HomeElement = ({ children, onPress, buttonColor, buttonLabel }) => { return (