format: prettify entire project
This commit is contained in:
3
node_modules/clean-css/lib/utils/clone-array.js
generated
vendored
3
node_modules/clean-css/lib/utils/clone-array.js
generated
vendored
@ -2,8 +2,7 @@ function cloneArray(array) {
|
||||
var cloned = array.slice(0);
|
||||
|
||||
for (var i = 0, l = cloned.length; i < l; i++) {
|
||||
if (Array.isArray(cloned[i]))
|
||||
cloned[i] = cloneArray(cloned[i]);
|
||||
if (Array.isArray(cloned[i])) cloned[i] = cloneArray(cloned[i]);
|
||||
}
|
||||
|
||||
return cloned;
|
||||
|
4
node_modules/clean-css/lib/utils/format-position.js
generated
vendored
4
node_modules/clean-css/lib/utils/format-position.js
generated
vendored
@ -3,9 +3,7 @@ function formatPosition(metadata) {
|
||||
var column = metadata[1];
|
||||
var source = metadata[2];
|
||||
|
||||
return source ?
|
||||
source + ':' + line + ':' + column :
|
||||
line + ':' + column;
|
||||
return source ? source + ':' + line + ':' + column : line + ':' + column;
|
||||
}
|
||||
|
||||
module.exports = formatPosition;
|
||||
|
10
node_modules/clean-css/lib/utils/natural-compare.js
generated
vendored
10
node_modules/clean-css/lib/utils/natural-compare.js
generated
vendored
@ -19,13 +19,15 @@ function naturalCompare(value1, value2) {
|
||||
}
|
||||
}
|
||||
|
||||
return keys1.length > keys2.length ? 1 : (keys1.length == keys2.length ? 0 : -1);
|
||||
return (
|
||||
keys1.length > keys2.length ? 1
|
||||
: keys1.length == keys2.length ? 0
|
||||
: -1
|
||||
);
|
||||
}
|
||||
|
||||
function tryParseInt(value) {
|
||||
return ('' + parseInt(value)) == value ?
|
||||
parseInt(value) :
|
||||
value;
|
||||
return '' + parseInt(value) == value ? parseInt(value) : value;
|
||||
}
|
||||
|
||||
module.exports = naturalCompare;
|
||||
|
7
node_modules/clean-css/lib/utils/split.js
generated
vendored
7
node_modules/clean-css/lib/utils/split.js
generated
vendored
@ -26,7 +26,12 @@ function split(value, separator) {
|
||||
level--;
|
||||
}
|
||||
|
||||
if (level === 0 && cursor > 0 && cursor + 1 < len && value[cursor] == separator) {
|
||||
if (
|
||||
level === 0 &&
|
||||
cursor > 0 &&
|
||||
cursor + 1 < len &&
|
||||
value[cursor] == separator
|
||||
) {
|
||||
parts.push(value.substring(lastStart, cursor));
|
||||
lastStart = cursor + 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user