coffeescope2中文文档|coffeescope2 js中文教程|解析

npm npmdoc 2年前 (2021-12-13) 448次浏览

coffeescope2中文文档|coffeescope2 js中文教程|解析

安装命令:npm i coffeescope2

coffeescope2

圆CI
依赖关系
开发依赖
覆盖状态

处理变量及其作用域的coffeelint插件。它可以检测:

  • 试图访问未定义的变量
  • 从外部作用域覆盖或隐藏变量
  • 未使用的变量和参数

目录

安装

将 coffeescope 添加到项目的依赖项中

npm install --save coffeescope2

将此插入到您的coffeelint.json文件中(我喜欢将自定义规则保留在底部):

"check_scope": {
    "module": "coffeescope2",
    "level": "warn",
    "environments": ["es5"],
    "globals": {
        "jQuery": true,
        "$": true
    },
    "overwrite": true,
    "shadow": true,
    "shadow_builtins": false,
    "shadow_exceptions": ["err", "next"],
    "undefined": true,
    "hoist_local": true,
    "hoist_parent": true,
    "unused_variables": true,
    "unused_arguments": false,
    "unused_classes": true
},

选项和值的完整列表

↑ 返回顶部

执照

coffeescope2 在MIT许可下获得许可

↑ 返回顶部

项目贡献人员列表:


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:coffeescope2中文文档|coffeescope2 js中文教程|解析
喜欢 (0)
.excerpt .focus {display:none}