代码检查工具jshint和csslint(转载)
.csslinttrc
{
"adjoining-classes":false,
"box-sizing":false,
"box-model":false,
"compatible-vendor-prefixes": false,
"floats":false,
"font-sizes":false,
"grandients":false,
"important":false,
"known-properties":false,
"outline-none":false,
"qualified-headings":false,
"regex-selectors":false,
"shorthand":false,
"text-indent":false,
"unique-headings":false,
"universal-selector":false,
"unqualified-attributes":false
}
.jshintrc
{
"curly": true,
"immed": true,
"noarg": true,
"noempty": true,
"quotmark": "single",
"unused": true,
"node": true,
"globals": {
"jQuery": true,
"console": true,
"module": true
}
}
两个文件放在项目同级文件夹下。