Skip to content

Commit f247147

Browse files
committed
Use Lesshint.getConfig() instead of configLoader()
1 parent b37cb90 commit f247147

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tasks/lesshint.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
'use strict';
1010

1111
var Lesshint = require( 'lesshint' ).Lesshint,
12-
chalk = require( 'chalk' ),
13-
configLoader = require( 'lesshint/lib/config-loader' );
12+
chalk = require( 'chalk' );
1413

1514
module.exports = function( grunt ){
1615
grunt.registerMultiTask( 'lesshint', 'Lint lesscss files', function(){
@@ -21,10 +20,10 @@ module.exports = function( grunt ){
2120

2221
if( options.lesshintrc === true ){
2322
// let lesshint find the options itself
24-
config = configLoader();
23+
config = linter.getConfig();
2524
} else if( options.lesshintrc ){
2625
// Read Lesshint options from a specified .lesshintrc file.
27-
config = configLoader( options.lesshintrc );
26+
config = linter.getConfig( options.lesshintrc );
2827
} else {
2928
config = options;
3029
}

0 commit comments

Comments
 (0)