Skip to content

Commit

Permalink
Inform eslint-plugin-n about dev Node version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Jan 16, 2025
1 parent edd5219 commit 054025c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down Expand Up @@ -72,6 +74,11 @@ const config = createConfig([
// Re-enable these rules and address any lint violations.
'n/no-unsupported-features/node-builtins': 'warn',
},
settings: {
node: {
version: `^${NODE_LTS_VERSION}`,
},
},
},
{
files: ['**/*.test.{js,ts}', '**/tests/**/*.{js,ts}'],
Expand Down

0 comments on commit 054025c

Please sign in to comment.