Code Monkey home page Code Monkey logo

jshint4sublime's Introduction

jshint for sublime 配置及使用方法 v1.1.1

安装:npm install-TopuNet-JsHint4Sublime

文件结构:

	1. .jshintrc 放入项目根目录

使用:

  1. node.js>npm install -g jshint

  2. 在sublime安装package:JSHint

  3. 将 “npm目录\jshint.cmd” 加入到系统环境变量Path中

     如:C:\Users\Administrator\AppData\Roaming\npm\jshint.cmd
    
  4. 打开js文件

  5. Alt + j

  6. 正常显示:

         [JSHint: 当前文件路径]
    
         ✓ 0 errors, [esc] to hide.
    
         [Finished in 0.5s]
    
  7. 错误显示:

         [JSHint: 当前文件路径]
    
           20,28: Expected an assignment or function call and instead saw an expression.
           20,34: Missing semicolon.
    
         ✗ 2 errors, double-click above, [F4] for next, [shift-F4] for previous.
    
         [Finished in 0.4s]
    
         此时双击具体错误行,可以快速跳转至错误所在行
    

注意:

  1. 每次进行验证前,需要将修改保存,否则还是在检测旧版本的代码。
  2. .jshintrc可以记录忽略项。如遇忽略项有添加,可以直接 pull request 到github上。
  3. 解决不了的问题需要上报。

更新记录:

v1.1.1

    1. 不知道忽略项里Base_meta和WeixinJSBridge为什么没了,重新加上了。
    2. 增加忽略项:wx
    3. 规范版本号。新增忽略项直接改子版本号

v1.0.8

    1. 不知道忽略项里JRoll为什么没了,重新加上了。

v1.0.7

    1. 增加忽略项:EXIF

v1.0.6

    1. 增加忽略项:WeixinJSBridge和JRoll

v1.0.5

    1. 增加忽略项:fis

v1.0.4

    1. jshintrc文件增加expr规则(是否允许上下文为表达式),为true。——苏成闯 pull

v1.0.3

    1. 从jshintify转到jshint
    2. 修改Readme

v1.0.2

    1. 增加忽略项:process、module
    2. 修改忽略项数组的排序,以后查找方便

v1.0.1

    创建项目并发布

jshint4sublime's People

Contributors

agulado avatar suscc avatar

Watchers

 avatar  avatar

Forkers

suscc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.