Skip to content

Commit

Permalink
no-mixed-operators
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Feb 28, 2021
1 parent 18404d2 commit c273c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ SVGSpriteCss.prototype._layout = function() {
SVGSpriteCss.prototype._layoutSimple = function(pseudoShapeMap) {
this._spriter._shapes.forEach((shape, index) => {
if (this._displaceable || !shape.master) {
this._addShapeToSimpleCssSprite(shape, pseudoShapeMap[shape.base], index, !index + (index === this._spriter._shapes.length - 1) * 2);
this._addShapeToSimpleCssSprite(shape, pseudoShapeMap[shape.base], index, (!index + (index === this._spriter._shapes.length - 1)) * 2);
}
});
return this;
Expand Down Expand Up @@ -297,7 +297,7 @@ SVGSpriteCss.prototype._layoutBinPacked = function(pseudoShapeMap) {
this.data.spriteWidth = Math.max(this.data.spriteWidth, Math.ceil(position.x + dimensions.width));
this.data.spriteHeight = Math.max(this.data.spriteHeight, Math.ceil(position.y + dimensions.height));

this._addShapeToCSSSprite(shape, pseudoShapeMap[shape.base], index, !index + (index === this._spriter._shapes.length - 1) * 2, this._refineRootAttributes(shape, index, rootAttributes), -position.x, -position.y);
this._addShapeToCSSSprite(shape, pseudoShapeMap[shape.base], index, (!index + (index === this._spriter._shapes.length - 1)) * 2, this._refineRootAttributes(shape, index, rootAttributes), -position.x, -position.y);
}
});

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"max-nested-callbacks": "off",
"max-params": "off",
"no-labels": "off",
"no-mixed-operators": "off",
"no-negated-condition": "off",
"object-curly-spacing": [
"error",
Expand Down

0 comments on commit c273c42

Please sign in to comment.