Skip to content

Commit 60676d1

Browse files
Merge pull request LucasLeandro1204#6 from LucasLeandro1204/fix-lint-issues
Fix lint issues
2 parents b29b9b8 + da3ddda commit 60676d1

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"animation",
3030
"loading-animations"
3131
],
32+
"dependencies": {
33+
"vue": "^2.4.4"
34+
},
3235
"devDependencies": {
3336
"babel-core": "^6.26.0",
3437
"babel-loader": "^7.1.2",
@@ -45,7 +48,6 @@
4548
"github-markdown-css": "^2.9.0",
4649
"node-sass": "^4.5.3",
4750
"sass-loader": "^6.0.6",
48-
"vue": "^2.4.4",
4951
"vue-loader": "^13.0.5",
5052
"vue-template-compiler": "^2.4.4",
5153
"webpack": "^3.6.0",

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</template>
4040

4141
<script>
42-
import VueContentLoading, { VclCode, VclList, VclInstagram, VclFacebook, } from './core/components.js';
42+
import VueContentLoading, { VclCode, VclList, VclInstagram, VclFacebook } from './core/components';
4343
4444
export default {
4545
components: {

src/components/VueContentLoading.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,28 @@ export default {
4040
},
4141

4242
formatedSpeed () {
43-
return this.speed + 's';
43+
return `${this.speed}s`;
4444
},
4545

4646
gradientId () {
47-
return 'gradient-' + this._uid;
47+
return `gradient-${this._uid}`;
4848
},
4949

5050
clipPathId () {
51-
return 'clipPath-' + this._uid;
51+
return `clipPath-${this._uid}`;
5252
},
5353
},
5454

5555
template: `
5656
<svg :viewBox="viewbox" preserveAspectRatio="xMidYMid meet">
57-
<rect :style="{ fill: 'url(#' + gradientId + ')' }" :clip-path="'url(#' + clipPathId + ')'" x="0" y="0" :width="width" :height="height" />
57+
<rect
58+
:style="{ fill: 'url(#' + gradientId + ')' }"
59+
:clip-path="'url(#' + clipPathId + ')'"
60+
x="0"
61+
y="0"
62+
:width="width"
63+
:height="height"
64+
/>
5865
5966
<defs>
6067
<clipPath :id="clipPathId">

0 commit comments

Comments
 (0)