UNPKG
gulp-jscs
Version:
latest (4.1.0)
4.1.0
4.0.0
3.0.2
3.0.1
3.0.0
2.0.0
1.6.0
1.5.2
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.6.1
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
Check JavaScript code style with jscs
github.com/jscs-dev/gulp-jscs
jscs-dev/gulp-jscs
gulp-jscs
/
reporters
/
load-reporter.js
13 lines
(10 loc)
•
304 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
var
getReporter =
require
(
'jscs/lib/cli-config'
).
getReporter
;
module
.
exports
=
function
(
reporter
) {
// we want the function
if
(
typeof
reporter ===
'function'
) {
return
reporter; }
// load JSCS built-in or absolute path or module reporters
return
getReporter
(reporter).
writer
; };