以前,我正在与pycharm合作。我想将我的JavaScript开发移至vscode。我有一个使用nexj.js(反应式SSR)的项目,而导入语句/声明有问题。我想配置vscode引发警告或突出显示/报告具有以下内容的导入语句:
检查我的代码:
import React from 'react' # this is installed, okay import PropTypes from 'prop-types' # this is installed, okay import Head from 'next/head' # this is installed, okay import { getDataFromTree } from 'react-apollo' # this does not exist yet no warning shown import cookie from 'cookie' # this does not exist yet no warning shown import lodash from 'west/you/kkhdh/jjjjds' # this does not exist yet no warning shown import initApollo from './kkk/kkkfkfkf' # this does not exist yet no warning shown