Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add rule to guarantee node runtime compatibility #1205

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

RomainMuller
Copy link
Contributor

This adds a rule to make sure the codebase is all configured to support
node runtimes complying with >= 8.11.0, by ensuring that the
configured @types/node version starts with ^8..

In order to allow applying this rule to the top-level package.json, a
feature was added to pkglint that allows users to confgure include
and exclude filters as part of their package.json's pkglint setup.
Exclusions always have precedence over inclusions, and specifying
disable: true has the same effect as specifying exclude: '*'. Both
the include and exclude values can contain patterns that use * as
a wild-card that maches any number of characters (including no
character at all), and can be either a single pattern, or an array of
patterns. include defaults to *.

Fixes #1194

This adds a rule to make sure the codebase is all configured to support
node runtimes complying with `>= 8.11.0`, by ensuring that the
configured `@types/node` version starts with `^8.`.

In order to allow applying this rule to the top-level `package.json`, a
feature was added to `pkglint` that allows users to confgure `include`
and `exclude` filters as part of their `package.json`'s `pkglint` setup.
Exclusions always have precedence over inclusions, and specifying
`disable: true` has the same effect as specifying `exclude: '*'`. Both
the `include` and `exclude` values can contain patterns that use `*` as
a wild-card that maches any number of characters (including no
character at all), and can be either a single pattern, or an array of
patterns. `include` defaults to `*`.

Fixes #1194
@RomainMuller RomainMuller merged commit 69b7fdf into master Nov 19, 2018
@RomainMuller RomainMuller deleted the rmuller/ensure-node-compat branch November 19, 2018 10:46
@srchase srchase added feature-request A feature should be added or improved. and removed enhancement labels Jan 3, 2019
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. feature-request A feature should be added or improved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pkglint should guarantee node runtime compatibility
4 participants