Skip to content

Commit a506585

Browse files
author
Vitaly Puzrin
committed
lint: enabled spaced-line-comment rule
1 parent 5337021 commit a506585

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ rules:
106106
space-infix-ops: 2
107107
space-return-throw-case: 2
108108
space-unary-ops: 2
109-
#spaced-line-comment: 2
109+
spaced-line-comment: [ 2, always, { exceptions: [ '/' ] } ]
110110
strict: 2
111111
use-isnan: 2
112112
yoda: 2

examples/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var environment = module.exports = new Mincer.Environment(__dirname);
3131
//
3232

3333
environment.enable('source_maps');
34-
//environment.sourceRoot = '/'; // use to cheat nesting level in dev tools
34+
// environment.sourceRoot = '/'; // use to cheat nesting level in dev tools
3535

3636
//
3737
// Configure environment load paths (where to find ssets)

lib/mincer/engines/less_engine.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ LessEngine.prototype.evaluate = function (context, locals) {
117117
self.data = tree.toCSS({
118118
sourceMap: true,
119119
outputSourceFiles: true,
120-
//sourceMapBasepath: context.environment.root,
121-
//sourceMapRootpath: '/',
120+
// sourceMapBasepath: context.environment.root,
121+
// sourceMapRootpath: '/',
122122
writeSourceMap: function(output) {
123123
// Manually convert paths to relative, because LESS
124124
// can make tose absolute for complex cases.

lib/mincer/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
var Base = require('./base');
2626
var prop = require('./common').prop;
2727
var getter = require('./common').getter;
28-
//var cloneMimeTypes = require('./common').cloneMimeTypes;
2928

3029

3130
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)