Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix various lint errors

  • Loading branch information...
commit ec4e2c5715d53ef20e1985006a32c305210789af 1 parent 5c9fd54
@jonathanong jonathanong authored
View
5 lib/plugins/at2x.js
@@ -93,11 +93,6 @@ module.exports = function(vendors) {
});
});
};
-
- return function(style, rework) {
- vendors = vendors || rework.prefixes;
- visit(style.rules, style);
- };
};
/**
View
9 lib/plugins/colors.js
@@ -15,7 +15,7 @@ module.exports = function() {
return functions({
/**
- * Converts RGBA(color, alpha) to the corrosponding RGBA(r, g, b, a) equivalent.
+ * Converts RGBA(color, alpha) to the corrosponding RGBA(r, g, b, a) equivalent.
*
* background: rgba(#eee, .5)
* background: rgba(white, .2)
@@ -23,11 +23,12 @@ module.exports = function() {
*/
rgba: function(color, alpha){
+ var args;
if (2 == arguments.length) {
var c = parse(color.trim());
- var args = [c.r, c.g, c.b, alpha];
+ args = [c.r, c.g, c.b, alpha];
} else {
- var args = [].slice.call(arguments);
+ args = [].slice.call(arguments);
}
return 'rgba(' + args.join(', ') + ')';
@@ -62,7 +63,7 @@ module.exports = function() {
alpha = /%/.test(alpha)
? parseInt(alpha, 10) / 100
: parseFloat(alpha, 10);
-
+
alpha = String(alpha).replace(/^0+\./, '.');
var rgb = hsb2rgb(hue, saturation, value);
View
11 lib/plugins/function.js
@@ -23,17 +23,6 @@ module.exports = function(functions, args) {
};
/**
- * Escape regexp codes in string.
- *
- * @param {String} s
- * @api private
- */
-
-function escape(s) {
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
-}
-
-/**
* Visit declarations and apply functions.
*
* @param {Array} declarations
View
1  lib/plugins/mixin.js
@@ -3,7 +3,6 @@
* Module dependencies.
*/
-var utils = require('../utils');
var visit = require('../visit');
/**
View
1  lib/plugins/url.js
@@ -3,7 +3,6 @@
* Module dependencies.
*/
-var utils = require('../utils');
var func = require('./function');
/**
View
2  lib/rework.js
@@ -110,5 +110,5 @@ exports.vars = require('./plugins/vars');
try {
exports.inline = require('./plugins/inline');
-} catch (err) {};
+} catch (err) {}
Please sign in to comment.
Something went wrong with that request. Please try again.