From 04c9e019d3d6faa8f5d61885c868b5068d7ad33e Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 5 Mar 2022 08:59:35 +0100 Subject: [PATCH] Linting --- src/App.vue | 77 ++++++++++++------------ src/components/MoviesListItem.vue | 2 +- src/components/ui/LoadingPlaceholder.vue | 10 ++- src/components/ui/MovieDescription.vue | 5 +- src/components/ui/SeasonedMessages.vue | 37 +++++------- src/scss/elements.scss | 13 ++-- src/scss/loading-placeholder.scss | 4 +- src/scss/main.scss | 1 + 8 files changed, 74 insertions(+), 75 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6a3cd77..8680676 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,40 @@ - - - - - - - diff --git a/src/components/MoviesListItem.vue b/src/components/MoviesListItem.vue index 10e9491..1bbfdf9 100644 --- a/src/components/MoviesListItem.vue +++ b/src/components/MoviesListItem.vue @@ -65,7 +65,7 @@ export default { }; }, computed: { - posterAltText: function () { + posterAltText: function() { const type = this.movie.type || ""; const title = this.movie.title || this.movie.name; return this.movie.poster diff --git a/src/components/ui/LoadingPlaceholder.vue b/src/components/ui/LoadingPlaceholder.vue index db96719..c0acda6 100644 --- a/src/components/ui/LoadingPlaceholder.vue +++ b/src/components/ui/LoadingPlaceholder.vue @@ -1,7 +1,11 @@ @@ -15,10 +19,10 @@ export default { }, lineClass: { type: String, - default: '' + default: "" } } -} +}; \ No newline at end of file + diff --git a/src/scss/elements.scss b/src/scss/elements.scss index 37361b2..ae72d55 100644 --- a/src/scss/elements.scss +++ b/src/scss/elements.scss @@ -9,7 +9,7 @@ border: 1px solid; border-radius: 2px; display: flex; - transition: color .2s ease; + transition: color 0.2s ease; &-item { padding: 6px 15px; @@ -20,12 +20,13 @@ text-transform: capitalize; text-align: center; width: 100%; - white-space:nowrap; + white-space: nowrap; - &:nth-child(n+2) { + &:nth-child(n + 2) { border-left: solid 1px; } - &.active, &:hover { + &.active, + &:hover { border-color: transparent; background-color: $teal; color: $green; @@ -38,5 +39,5 @@ } } -// TODO -// - add buttons \ No newline at end of file +// TODO +// - add buttons diff --git a/src/scss/loading-placeholder.scss b/src/scss/loading-placeholder.scss index 400e9a6..4512992 100644 --- a/src/scss/loading-placeholder.scss +++ b/src/scss/loading-placeholder.scss @@ -12,7 +12,7 @@ .text-input__loading { width: 100%; - &--line { + &--line { height: 10px; margin: 10px; animation: pulse 1s infinite ease-in-out; @@ -52,4 +52,4 @@ background-color: rgba(165, 165, 165, 0.1); } } -} \ No newline at end of file +} diff --git a/src/scss/main.scss b/src/scss/main.scss index bbda671..3886c59 100644 --- a/src/scss/main.scss +++ b/src/scss/main.scss @@ -12,6 +12,7 @@ * { box-sizing: border-box; } + html { height: 100%; }