Skip to content

Commit

Permalink
feat!: engines.node defaults to 16.0.0
Browse files Browse the repository at this point in the history
node.js < 13, v15 has been eol.
and node.js v14 will be eol in a few months.

refs: #42
  • Loading branch information
aladdin-add committed Mar 13, 2023
1 parent fe82e2e commit 2f637f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/get-configured-node-version.js
Expand Up @@ -36,7 +36,7 @@ function getEnginesNode(filename) {
*
* 1. Parse a given version then return it if it's valid.
* 2. Look package.json up and parse `engines.node` then return it if it's valid.
* 3. Return `>=8.0.0`.
* 3. Return `>=16.0.0`.
*
* @param {string|undefined} version The version range text.
* @param {string} filename The path to the current linting file.
Expand All @@ -52,7 +52,7 @@ module.exports = function getConfiguredNodeVersion(context) {
return (
getSemverRange(version) ||
getEnginesNode(filePath) ||
getSemverRange(">=8.0.0")
getSemverRange(">=16.0.0")
)
}

Expand Down

0 comments on commit 2f637f2

Please sign in to comment.