diff --git a/.eslintrc.json b/.eslintrc.json index 6d4b23a2c..22a61fa6f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,10 +1,19 @@ { - "extends": "airbnb", "parser": "babel-eslint", + "extends": [ + "airbnb", + "plugin:prettier/recommended", + "plugin:eslint-comments/recommended", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:jest/recommended" + ], "env": { - "browser": true + "browser": true, + "jest": true, + "react-native/react-native": true }, - "plugins": ["react"], + "plugins": ["react", "react-native", "jsx-a11y", "import", "prettier", "jest", "eslint-comments"], "rules": { "react/jsx-filename-extension": [ 2, @@ -12,6 +21,7 @@ "extensions": [".js", ".jsx"] } ], + "max-len": ["error", 100], "react/forbid-prop-types": [0], "no-underscore-dangle": 0, "react/require-default-props": [0], diff --git a/.vscode/settings.json b/.vscode/settings.json index e69de29bb..fb23f707d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "editor.formatOnSave": true, + "eslint.validate": ["javascript", "javascriptreact"] +} \ No newline at end of file diff --git a/appcenter-pre-build.sh b/appcenter-pre-build.sh index 4be0e811c..d70c34413 100644 --- a/appcenter-pre-build.sh +++ b/appcenter-pre-build.sh @@ -5,15 +5,15 @@ GOOGLE_JSON_FILE=$APPCENTER_SOURCE_DIRECTORY/android/app/google-services.json printf "%s\n\n" $APPCENTER_SOURCE_DIRECTORY -if [ -e "$GOOGLE_JSON_FILE" ] -then +if [ -e "$GOOGLE_JSON_FILE" ] +then echo "Updating Google Json" echo "$GOOGLE_JSON" > $GOOGLE_JSON_FILE sed -i -e 's/\\"/'\"'/g' $GOOGLE_JSON_FILE echo "File content:" cat $GOOGLE_JSON_FILE -fi +fi printf "google-services json file:\n"