Skip to content

Commit 6b1b22a

Browse files
committed
test: putout: esm
1 parent 56a8c33 commit 6b1b22a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/eslint-plugin-putout/test/eslint.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ test('eslint-plugin-putout: putout: sync: ESM', async ({pass, comparePlaces}) =>
235235
},
236236
};
237237

238-
if (process.version.startsWith('v23') || process.version.startsWith('v22'))
239-
return pass('require of ESM supported in node v23');
238+
if (process.version.startsWith('v2'))
239+
return pass('require of ESM supported in node v2x');
240240

241241
await comparePlaces('sync-esm', [{
242242
message: `☝️ Looks like 'apply-nullish-coalescing' is ESM, extend from 'plugin:putout/esm' (putout)`,

packages/test/lib/eslint/eslint.spec.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ test('test: eslint: comparePlaces: overrides: ESM', async ({comparePlaces}) => {
126126
rule: 'putout/putout (eslint)',
127127
}];
128128

129-
if (process.version.startsWith('v23') || process.version.startsWith('v22')) {
129+
if (process.version.startsWith('v2')) {
130130
const places = [{
131131
message: `Avoid useless argument 'a' (remove-useless-arguments/arguments)`,
132132
position: {

0 commit comments

Comments
 (0)