小编MaT*_*woG的帖子

未定义模块,并且在visual studio代码中的eslint中未定义进程

我已经在我的机器中安装了eslint并且我使用了visual studio代码我有一些模块和进程要导出当我尝试使用"模块"或"进程"时它显示它之前工作正常.

[eslint] 'module' is not defined. (no-undef)
[eslint] 'process' is not defined. (no-undef)
Run Code Online (Sandbox Code Playgroud)

这是我的.eslintrc.json

{

"env": {
    "browser": true,
    "amd": true

},
"parserOptions": {
    "ecmaVersion": 6
  },
"extends": "eslint:recommended",
"rules": {
    "no-console": "off",
    "indent": [
        "error",
        "tab"
    ],
    "linebreak-style": [
        "error",
        "windows"
    ],
    "quotes": [
        "error",
        "single"
    ],
    "semi": [
        "error",
        "always"
    ]
}
Run Code Online (Sandbox Code Playgroud)

}

我想删除此错误

module process eslint

27
推荐指数
4
解决办法
9664
查看次数

标签 统计

eslint ×1

module ×1

process ×1