Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Shareable ESLint style configuration for Google Maps repositories.

License

Notifications You must be signed in to change notification settings

googlemaps/eslint-config-googlemaps

Repository files navigation

eslint-config-googlemaps

npm Build Release GitHub contributors semantic-release Discord

Description

Shareable style configuration for ESLint based upon Google TypesScript Style (GTS).

Install

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

npm i -D eslint-config-googlemaps

Usage

The following configs extend https://github.com/google/gts and provide Google specific styles when combined with a Prettier Configuration file:

  • googlemaps:web
  • googlemaps:typescript
  • googlemaps:react
  • googlemaps:node

eslintrc.json:

{
  "extends": [ "googlemaps:web"]
}

.prettierrc.js:

module.exports = {
  ...require('./node_modules/gts/.prettierrc.json'),
};

See ./src/index.test.ts for the dereferenced configuration.