4
未定义ESLint dollar($)。(没有undef)
$("#ID").hide(); 我将ESLint添加到我的项目中。 一切都很好,除了symbol $。 我得到错误: [eslint] '$' is not defined. (no-undef) 我的.eslintrc.json(注意:当有等效的javascript代码时,它还设置了其他规则以禁止jquery函数): { "env": { "browser": true, "commonjs": true, "es6": true }, "extends": [ "eslint:recommended" ], "parserOptions": { "sourceType": "module" }, "plugins": [ "dollar-sign", "jquery" ], "rules": { "indent": [ "error" , "tab" ], "linebreak-style": [ "error", "windows" ], "quotes": …