pug-lint-wb-loader
Advanced tools
Comparing version 1.0.0 to 1.0.1
15
index.js
@@ -10,2 +10,3 @@ 'use strict'; | ||
// 获取带有错误文件行列的信息 | ||
var getFullMessage = function(filename, src, line, column, message) { | ||
@@ -52,8 +53,2 @@ var fullMessage; | ||
}).map(function (problem) { | ||
//console.log(problem) | ||
/*let errMsg = '\nPug-Lint Error:\n' + | ||
'Filename: ' + _this.resourcePath + '\n' + | ||
'Line at: [%s:%s]\n' + | ||
'Rule: %s\n' + | ||
'Msg: %s\n'*/ | ||
let errMsg = '\npug-lint报错信息\n' + | ||
@@ -63,5 +58,2 @@ '报错规则: %s\n' + | ||
'报错消息: ' + getFullMessage(_this.resourcePath, content, problem.line, problem.column, problem.msg) + '\n' | ||
/*console.log('===========getFullMessage===========') | ||
console.log(getFullMessage(_this.resourcePath, content, problem.line, problem.column, problem.msg)) | ||
console.log('===========getFullMessage end===========')*/ | ||
return util.format( | ||
@@ -72,7 +64,2 @@ errMsg, | ||
); | ||
/*return util.format('\t\x1b[31m[%s:%s] %s\x1b[0m | Rule: \x1b[91m%s\x1b[0m', | ||
problem.line, | ||
problem.column || 0, | ||
problem.msg, | ||
problem.code.toLowerCase().replace(/^pug:/, '').replace(/^lint_/, ''));*/ | ||
}).join('\n\n')); | ||
@@ -79,0 +66,0 @@ } |
{ | ||
"name": "pug-lint-wb-loader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "用于pug-lint的loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -58,3 +58,3 @@ # pug-lint-wb-loader | ||
exclude: /node_modules/, | ||
loader: "pug-lint-loader", | ||
loader: "pug-lint-wb-loader", | ||
options: Object.assign({ | ||
@@ -61,0 +61,0 @@ emitError: true, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4572
73