A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.npmjs.com/package/eslint-plugin-googlemaps below:

eslint-plugin-googlemaps - npm

eslint-plugin-googlemaps1.4.15 • Public • Published 3 years ago

eslint-plugin-googlemaps

Description

ESLint plugin with rules specific to Google Maps Platform JavaScript API.

Install

Available via npm as the package eslint-plugin-googlemaps.

npm i -D eslint-plugin-googlemaps
Usage

To use rules provided by the plugin, use the following:

eslintrc.json:

{
  "extends": ["plugin:googlemaps:recommended"]
  "plugins": ["googlemaps"],
}

Some rules are fixable with eslint --fix. For example the place-fields rule.

service.getDetails({place_id: 'foo'})

becomes

service.getDetails({fields: /** TODO: Add necessary fields to the request */ [], place_id: 'foo'})
Rules
Package Sidebar Install

npm i eslint-plugin-googlemaps

Downloads Weekly Downloads Collaborators

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4