【文件属性】:
文件名称:jshint-json:JSHint的JSON报告程序
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 08:05:16
JavaScript
jshint-json
JSON报告程序
使JSHint与其他工具一起使用变得容易。
安装
npm install --save-dev jshint-json
用法
JSHint CLI
$ jshint --reporter node_modules/jshint-json/json.js file.js
grunt . initConfig ( {
jshint : {
options : {
reporter : require ( 'jshint-json' )
} ,
target : [ 'file.js' ]
}
} ) ;
grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
grunt . registerTask ( 'default' , [ 'jshint' ] ) ;
输出示例
{
【文件预览】:
jshint-json-main
----.gitignore(23B)
----.github()
--------workflows()
----.gitattributes(29B)
----package.json(622B)
----readme.md(3KB)
----index.js(75B)
----test.js(484B)
----.editorconfig(175B)
----license(1KB)
----json.js(182B)
----.npmrc(19B)