1、安装node.js
;
2、将node.exe
加入到系统环境变量;
3、全局安装npm,全局安装cnpm
,设置镜像为国内淘宝镜像;
npm install -g cnpm --registry=https://registry.npm.taobao.org
4、cnpm安装jshint,htmlhint,csshint
;
cnpm install -g jshint
cnpm install -g csslint
cnpm install -g htmlhint@latest
5、sublime text安装package control;
6、sublime安装sublimeLinter,安装SublimeLinter-jshint
,SublimeLinter-contrib-htmlhint
,SublimeLinter-csslint
配置额外选项。
Package Control Messages
========================
SublimeLinter-jshint
--------------------
SublimeLinter-jshint
-------------------------------
This linter plugin for SublimeLinter provides an interface to jshint.
** IMPORTANT! **
Before this plugin will activate, you *must*
follow the installation instructions here:
https://github.com/SublimeLinter/SublimeLinter-jshint
SublimeLinter-contrib-htmlhint
------------------------------
SublimeLinter-contrib-htmlhint
-------------------------------
This linter plugin for SublimeLinter provides an interface to htmlhint. This plugin currently only works with htmlhint versions 0.9.7 and prior. Look for a new version to support 0.9.8 soon.
** IMPORTANT! **
Before this plugin will activate, you *must*
follow the installation instructions here:
https://github.com/mmaday/SublimeLinter-contrib-htmlhint
SublimeLinter-csslint
---------------------
SublimeLinter-csslint
-------------------------------
This linter plugin for SublimeLinter provides an interface to csslint.
** IMPORTANT! **
Before this plugin will activate, you *must*
follow the installation instructions here:
https://github.com/SublimeLinter/SublimeLinter-csslint