File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 8
8
- " 8"
9
9
- " 7"
10
10
- " 6"
11
- - " 5"
12
- - " 4"
13
11
14
12
git :
15
13
depth : 1
Original file line number Diff line number Diff line change @@ -4,11 +4,8 @@ const PluginError = require('plugin-error');
4
4
const Lesshint = require ( 'lesshint' ) . Lesshint ;
5
5
const through = require ( 'through2' ) ;
6
6
7
- const lesshintPlugin = ( options ) => {
7
+ const lesshintPlugin = ( options = { } ) => {
8
8
const lesshint = new Lesshint ( ) ;
9
-
10
- options = options || { } ;
11
-
12
9
const config = lesshint . getConfig ( options . configPath ) ;
13
10
14
11
lesshint . configure ( config ) ;
@@ -68,10 +65,9 @@ const lesshintPlugin = (options) => {
68
65
} ) ;
69
66
} ;
70
67
71
- lesshintPlugin . reporter = ( reporter ) => {
68
+ lesshintPlugin . reporter = ( reporter = 'lesshint-reporter-stylish' ) => {
72
69
const lesshint = new Lesshint ( ) ;
73
70
74
- reporter = reporter || 'lesshint-reporter-stylish' ;
75
71
reporter = lesshint . getReporter ( reporter ) ;
76
72
77
73
let results = [ ] ;
You can’t perform that action at this time.
0 commit comments