Skip to content

eslint for JavaScript #681

@bcoe

Description

@bcoe

Whenever we create a new library, we make an effort to add at least one JavaScript sample in samples/:

  1. to smoke test that the library actually works.
  2. to give customers something to reference.

We should have JavaScript eslint rules as well as gts, to make sure these files follow coding style:

The deps:

npm i eslint eslint-config-prettier eslint-plugin-node eslint-plugin-prettier prettier --save-dev

The scripts:

 "fix": "gts fix && eslint samples --fix",
 "lint": "gts check && eslint samples",

Metadata

Metadata

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions