This commit is contained in:
u-e 2019-05-25 13:46:07 +03:00
parent 5586d34c85
commit 5427e0e6dd
3 changed files with 20 additions and 6 deletions

View File

@ -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],

View File

@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"eslint.validate": ["javascript", "javascriptreact"]
}

View File

@ -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"