Skip to content

Commit

Permalink
chore: set node/no-unsupported-features version (#8388)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored May 29, 2022
1 parent 44dc27d commit 6673b3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,20 @@ module.exports = defineConfig({
'node/no-extraneous-require': 'off',
'node/no-missing-import': 'off',
'node/no-missing-require': 'off',
'no-undef': 'off'
'no-undef': 'off',
// engine field doesn't exist in playgrounds
'node/no-unsupported-features/es-builtins': [
'error',
{
version: '>=14.6.0'
}
],
'node/no-unsupported-features/node-builtins': [
'error',
{
version: '>=14.6.0'
}
]
}
},
{
Expand Down
1 change: 0 additions & 1 deletion playground/dynamic-import/nested/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ document.querySelector('.mxdjson').addEventListener('click', async () => {
// data URLs (`blob:`)
const code1 = 'export const msg = "blob"'
const blob = new Blob([code1], { type: 'text/javascript;charset=UTF-8' })
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const blobURL = URL.createObjectURL(blob)
document.querySelector('.issue-2658-1').addEventListener('click', async () => {
const { msg } = await import(/*@vite-ignore*/ blobURL)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable node/no-unsupported-features/node-builtins */
import fs from 'fs'
import path from 'path'
import {
Expand Down

0 comments on commit 6673b3e

Please sign in to comment.