Skip to content

Standardize our npm scripts #14827

@nzakas

Description

@nzakas

We have a number of different projects that are using different conventions for various npm scripts. I'd like us to standardize our script names and what they for the following actions:

  • Building - in packages where building is necessary, I'd like to standardize on build. I think we are doing this everywhere, but wanted to include here for the record.
  • Linting - I'd like to standardize on lint to lint every type of file, and then lint:*, where * is the file extension, for linting just specific types of files (examples: lint:js, lint:md).
  • Fixing lint errors - throughout our packages we have fix, fixlint, lint:fix, and some have no lint fix script at all. I'd like to standardize on lint:fix, which should run on all file types, or else lint:fix:* to run just on a subtype.
  • Testing - we are all over the place with this. In some packages test runs both linting and testing. In some packages we have unit:* scripts and in some we have test:* scripts. Some packages have coverage and others do not (test:cover, coverage, test-cov, etc.). I think we should standardize:
    1. That test does not include lint
    2. That we do test coverage
    3. That all testing that can have coverage does have coverage
    4. That test always runs with coverage
    5. That any subset of testing be named test:*. Every test:* is run with test

Thoughts?

Metadata

Metadata

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbuildThis change relates to ESLint's build processchoreThis change is not user-facing

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions