Skip to content

coordinate linting of JS files in examples/* and .mjs files in the repo #2891

@trentm

Description

@trentm

Currently the linting in this repo works like this:

  • npm run lint at the top-level runs npm run lint in each of the packages in the workspace
  • these all run eslint using a shared "eslint.config.js" from the top-level (which includes the "prettier" plugin for style, including using the "prettier.config.js" at the top-level)

This issue is about:

  1. Including JS and TS files in examples/..., linted via npm run lint and using the same shared config files. (Currently there is a npm run lint:examples, but it (a) is not run in CI and (b) uses a different eslint config ("examples/.eslintrc").
  2. Linting JS files (in addition to the TS files that are already linted) elsewhere in the repo. There aren't many: mostly these are .../test/fixtures/*.mjs files for testing ESM instrumentation.

The plan is to:

(The original work for this started in #2567.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions