-
If you have the
Prettier
VSCode 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-prettier
npm install eslint-plugin-prettier
npm install gulp-eslint
npm 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 =>