Commit e29c0da8 authored by Filipa Lacerda's avatar Filipa Lacerda

Updates eslint rules

parent 26137130
...@@ -82,10 +82,10 @@ export default { ...@@ -82,10 +82,10 @@ export default {
<template> <template>
<div <div
class="multi-file-commit-list-item"
:class="{ :class="{
'is-active': isActive 'is-active': isActive
}" }"
class="multi-file-commit-list-item"
> >
<button <button
type="button" type="button"
......
...@@ -94,11 +94,11 @@ export default { ...@@ -94,11 +94,11 @@ export default {
:key-prefix="$options.stageKeys.unstaged" :key-prefix="$options.stageKeys.unstaged"
:file-list="changedFiles" :file-list="changedFiles"
:action-btn-text="__('Stage all')" :action-btn-text="__('Stage all')"
:active-file-key="activeFileKey"
class="is-first" class="is-first"
icon-name="unstaged" icon-name="unstaged"
action="stageAllChanges" action="stageAllChanges"
item-action-component="stage-button" item-action-component="stage-button"
:active-file-key="activeFileKey"
/> />
<commit-files-list <commit-files-list
:title="__('Staged')" :title="__('Staged')"
...@@ -106,10 +106,10 @@ export default { ...@@ -106,10 +106,10 @@ export default {
:file-list="stagedFiles" :file-list="stagedFiles"
:action-btn-text="__('Unstage all')" :action-btn-text="__('Unstage all')"
:staged-list="true" :staged-list="true"
:active-file-key="activeFileKey"
icon-name="staged" icon-name="staged"
action="unstageAllChanges" action="unstageAllChanges"
item-action-component="unstage-button" item-action-component="unstage-button"
:active-file-key="activeFileKey"
/> />
</template> </template>
<empty-state <empty-state
......
...@@ -57,8 +57,8 @@ export default { ...@@ -57,8 +57,8 @@ export default {
<template> <template>
<div <div
class="diff-file preview-container" v-if="viewer"
v-if="viewer"> class="diff-file preview-container">
<component <component
:is="viewer" :is="viewer"
:diff-mode="diffMode" :diff-mode="diffMode"
......
...@@ -104,18 +104,18 @@ export default { ...@@ -104,18 +104,18 @@ export default {
<template> <template>
<div class="onion-skin view"> <div class="onion-skin view">
<div <div
class="onion-skin-frame"
:style="{ :style="{
'width': onionMaxPixelWidth, 'width': onionMaxPixelWidth,
'height': onionMaxPixelHeight, 'height': onionMaxPixelHeight,
'user-select': dragging === true ? 'none' : '', 'user-select': dragging === true ? 'none' : '',
}"> }"
class="onion-skin-frame">
<div <div
class="frame deleted"
:style="{ :style="{
'width': onionMaxPixelWidth, 'width': onionMaxPixelWidth,
'height': onionMaxPixelHeight, 'height': onionMaxPixelHeight,
}"> }"
class="frame deleted">
<image-viewer <image-viewer
key="onionOldImg" key="onionOldImg"
:render-info="false" :render-info="false"
...@@ -125,13 +125,13 @@ export default { ...@@ -125,13 +125,13 @@ export default {
/> />
</div> </div>
<div <div
class="added frame"
ref="addedFrame" ref="addedFrame"
:style="{ :style="{
'opacity': onionOpacity, 'opacity': onionOpacity,
'width': onionMaxPixelWidth, 'width': onionMaxPixelWidth,
'height': onionMaxPixelHeight, 'height': onionMaxPixelHeight,
}"> }"
class="added frame">
<image-viewer <image-viewer
key="onionNewImg" key="onionNewImg"
:render-info="false" :render-info="false"
...@@ -143,14 +143,14 @@ export default { ...@@ -143,14 +143,14 @@ export default {
<div class="controls"> <div class="controls">
<div class="transparent"></div> <div class="transparent"></div>
<div <div
class="drag-track"
ref="dragTrack" ref="dragTrack"
class="drag-track"
@mousedown="startDrag" @mousedown="startDrag"
@mouseup="stopDrag"> @mouseup="stopDrag">
<div <div
class="dragger"
ref="dragger" ref="dragger"
:style="{ 'left': onionDraggerPixelPos }"> :style="{ 'left': onionDraggerPixelPos }"
class="dragger">
</div> </div>
</div> </div>
<div class="opaque"></div> <div class="opaque"></div>
......
...@@ -111,12 +111,12 @@ export default { ...@@ -111,12 +111,12 @@ export default {
<template> <template>
<div class="swipe view"> <div class="swipe view">
<div <div
class="swipe-frame"
ref="swipeFrame" ref="swipeFrame"
:style="{ :style="{
'width': swipeMaxPixelWidth, 'width': swipeMaxPixelWidth,
'height': swipeMaxPixelHeight, 'height': swipeMaxPixelHeight,
}"> }"
class="swipe-frame">
<div class="frame deleted"> <div class="frame deleted">
<image-viewer <image-viewer
key="swipeOldImg" key="swipeOldImg"
...@@ -128,12 +128,12 @@ export default { ...@@ -128,12 +128,12 @@ export default {
/> />
</div> </div>
<div <div
class="swipe-wrap"
ref="swipeWrap" ref="swipeWrap"
:style="{ :style="{
'width': swipeWrapPixelWidth, 'width': swipeWrapPixelWidth,
'height': swipeMaxPixelHeight, 'height': swipeMaxPixelHeight,
}"> }"
class="swipe-wrap">
<div class="frame added"> <div class="frame added">
<image-viewer <image-viewer
key="swipeNewImg" key="swipeNewImg"
...@@ -145,11 +145,11 @@ export default { ...@@ -145,11 +145,11 @@ export default {
</div> </div>
</div> </div>
<span <span
class="swipe-bar"
ref="swipeBar" ref="swipeBar"
:style="{ 'left': swipeBarPixelPos }"
class="swipe-bar"
@mousedown="startDrag" @mousedown="startDrag"
@mouseup="stopDrag" @mouseup="stopDrag">
:style="{ 'left': swipeBarPixelPos }">
<span class="top-handle"></span> <span class="top-handle"></span>
<span class="bottom-handle"></span> <span class="bottom-handle"></span>
</span> </span>
......
...@@ -49,8 +49,8 @@ export default { ...@@ -49,8 +49,8 @@ export default {
<template> <template>
<div class="diff-file-container"> <div class="diff-file-container">
<div <div
class="diff-viewer" v-if="diffMode === $options.diffModes.replaced"
v-if="diffMode === $options.diffModes.replaced"> class="diff-viewer">
<div class="image js-replaced-image"> <div class="image js-replaced-image">
<two-up-viewer <two-up-viewer
v-if="mode === $options.imageViewMode.twoup" v-if="mode === $options.imageViewMode.twoup"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment