diff --git a/eslint-warning-thresholds.json b/eslint-warning-thresholds.json index 92cc78a3f7..5f8ce43766 100644 --- a/eslint-warning-thresholds.json +++ b/eslint-warning-thresholds.json @@ -16,7 +16,7 @@ "jsdoc/check-tag-names": 375, "jsdoc/require-returns": 22, "jsdoc/tag-lines": 328, - "n/no-unsupported-features/node-builtins": 18, + "n/no-unsupported-features/node-builtins": 4, "n/prefer-global/text-encoder": 4, "n/prefer-global/text-decoder": 4, "prettier/prettier": 115, diff --git a/eslint.config.mjs b/eslint.config.mjs index 2ed8169174..a82bd5c29d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,6 +3,8 @@ import jest from '@metamask/eslint-config-jest'; import nodejs from '@metamask/eslint-config-nodejs'; import typescript from '@metamask/eslint-config-typescript'; +const NODE_LTS_VERSION = 22; + const config = createConfig([ ...base, { @@ -83,6 +85,11 @@ const config = createConfig([ 'jest/prefer-lowercase-title': 'warn', 'jest/prefer-strict-equal': 'warn', }, + settings: { + node: { + version: `^${NODE_LTS_VERSION}`, + }, + }, }, { // These files are test helpers, not tests. We still use the Jest ESLint