Здравствуйте. А не подскажите по
eslint как для путей
import { pipeline } from 'stream/promises'; настроить правила
import/no-unresolved и
node/no-missing-import ?
Unable to resolve path to module 'stream/promises'. import/no-unresolved
"stream/promises" is not found. node/no-missing-import
package.json
...
"engines": {
"node": "15.4.0",
"npm": "7.0.15"
},
...
.eslintrc.cjs
module.exports = {
root: true,
env: {
node: true
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module'
},
extends: ['airbnb-base', 'plugin:node/recommended'],
....