Skip to content

Commit 6673b3e

Browse files
authored
chore: set node/no-unsupported-features version (#8388)
1 parent 44dc27d commit 6673b3e

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.eslintrc.cjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,20 @@ module.exports = defineConfig({
132132
'node/no-extraneous-require': 'off',
133133
'node/no-missing-import': 'off',
134134
'node/no-missing-require': 'off',
135-
'no-undef': 'off'
135+
'no-undef': 'off',
136+
// engine field doesn't exist in playgrounds
137+
'node/no-unsupported-features/es-builtins': [
138+
'error',
139+
{
140+
version: '>=14.6.0'
141+
}
142+
],
143+
'node/no-unsupported-features/node-builtins': [
144+
'error',
145+
{
146+
version: '>=14.6.0'
147+
}
148+
]
136149
}
137150
},
138151
{

playground/dynamic-import/nested/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ document.querySelector('.mxdjson').addEventListener('click', async () => {
4848
// data URLs (`blob:`)
4949
const code1 = 'export const msg = "blob"'
5050
const blob = new Blob([code1], { type: 'text/javascript;charset=UTF-8' })
51-
// eslint-disable-next-line node/no-unsupported-features/node-builtins
5251
const blobURL = URL.createObjectURL(blob)
5352
document.querySelector('.issue-2658-1').addEventListener('click', async () => {
5453
const { msg } = await import(/*@vite-ignore*/ blobURL)

playground/worker/__tests__/sourcemap/sourcemap-worker.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable node/no-unsupported-features/node-builtins */
21
import fs from 'fs'
32
import path from 'path'
43
import {

0 commit comments

Comments
 (0)