ESLint-Formatter.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:ESLint-Formatter 作者: TheSavior 项目源码 文件源码
def get_local_eslint(dirname):
    pkg = PluginUtils.findup('node_modules/eslint', dirname)
    if pkg == None:
      return None
    else:
      path = PluginUtils.get_pref("local_eslint_path").get(sublime.platform())
      d = os.path.dirname(os.path.dirname(pkg))
      esl = os.path.join(d, path)

      if os.path.isfile(esl):
        return esl
      else:
        return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号