Skip to content
Snippets Groups Projects
Commit 325191dd authored by Takuya Noguchi's avatar Takuya Noguchi
Browse files

Enable UnnecessaryParentReference in scss-lint

parent 420f6b54
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -240,7 +240,7 @@ linters:
# Do not use parent selector references (&) when they would otherwise
# be unnecessary.
UnnecessaryParentReference:
enabled: false
enabled: true
 
# URLs should be valid and not contain protocols or domain names.
UrlFormat:
Loading
Loading
Loading
Loading
@@ -368,7 +368,7 @@
margin-right: 0.3em;
}
 
& > .value {
> .value {
font-weight: 600;
}
}
Loading
Loading
@@ -467,7 +467,7 @@
-webkit-flex-direction: column;
flex-direction: column;
 
&> span {
> span {
white-space: normal;
word-break: break-all;
}
Loading
Loading
Loading
Loading
@@ -61,7 +61,7 @@
&:focus {
outline: none;
 
& i {
i {
visibility: visible;
}
}
Loading
Loading
Loading
Loading
@@ -96,7 +96,7 @@
overflow: visible;
}
 
& > span {
> span {
padding-right: 4px;
}
 
Loading
Loading
Loading
Loading
@@ -250,7 +250,7 @@ ul.notes {
}
 
.note-text {
& p:first-child {
p:first-child {
display: none;
}
 
Loading
Loading
Loading
Loading
@@ -96,12 +96,12 @@
}
 
&:last-child {
& .pipeline-variable-row-remove-button {
.pipeline-variable-row-remove-button {
display: none;
}
 
@media (max-width: $screen-sm-max) {
& .pipeline-variable-value-input {
.pipeline-variable-value-input {
margin-right: $pipeline-variable-remove-button-width;
}
}
Loading
Loading
Loading
Loading
@@ -26,7 +26,7 @@
margin-bottom: 5px;
}
 
& > .form-group {
> .form-group {
padding-left: 0;
}
 
Loading
Loading
@@ -83,7 +83,7 @@
border: 1px solid $border-color;
}
 
& + .select2 a {
+ .select2 a {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
Loading
Loading
Loading
Loading
@@ -81,7 +81,7 @@
.todo-title {
display: flex;
 
& > .title-item {
> .title-item {
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
margin: 0 2px;
Loading
Loading
Loading
Loading
@@ -147,13 +147,13 @@
}
 
ul.wiki-pages-list.content-list {
& ul {
ul {
list-style: none;
margin-left: 0;
padding-left: 15px;
}
 
& ul li {
ul li {
padding: 5px 0;
}
}
Loading
Loading
---
title: Enable UnnecessaryParentReference in scss-lint
merge_request: 12738
author: Takuya Noguchi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment