-
If you have the
PrettierVSCode plugin, uninstall or disable it via the extensions menu on the side bar -
Install the required node modules via these commands:
npm install eslint-config-prettiernpm install eslint-plugin-prettiernpm install gulp-eslintnpm install prettier-eslint
/**
* Takes a google maps api key and
* a json props object to generate
* a valid URL to a static map image.
*
* @returns a valid URL to static map image
*/
function getStaticMap(key, props) {
const markers = (props.markers || []).map(marker =>