Skip to content

chore: Add package level lint scripts #50

@rekmarks

Description

@rekmarks

Currently, our linter can only be run at the monorepo root, which is the same as MetaMask/core. In order to facilitate running our linter at the package-level, we should add the relevant lint scripts to each package. This is how linting works in https://github.com/MetaMask/snaps.

The relevant scripts are:

  • lint
  • lint:fix
  • lint:eslint
  • lint:misc

The existing scripts in the root package.json should contain the relevant pieces, but we should not check Yarn constraints or run the dependency linter in packages. See individual packages in MetaMask/snaps as a reference.

For dependencies, it probably makes sense to add the whole suite of lint dependencies to each package, but whatever works should ultimately be fine.

Metadata

Metadata

Assignees

Labels

choreNot a feature, not documentation, but something we still have to do.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions