Browse Source

scss: add lint rules, lint files.

Chimo 2 years ago
parent
commit
927d04cf50
3 changed files with 34 additions and 4 deletions
  1. 29
    0
      .scss-lint.yml
  2. 3
    2
      _sass/chimo/_fragmention.scss
  3. 2
    2
      _sass/chimo/_util.scss

+ 29
- 0
.scss-lint.yml View File

@@ -0,0 +1,29 @@
1
+scss_files: "_sass/chimo/*.scss"
2
+
3
+linters:
4
+  StringQuotes:
5
+    enabled: true
6
+    style: double_quotes
7
+  Indentation:
8
+    width: 4
9
+  Comment:
10
+    enabled: false
11
+  LeadingZero:
12
+    enabled: false
13
+  SelectorDepth:
14
+    enabled: false
15
+  SelectorFormat:
16
+    enabled: false
17
+  ImportantRule:
18
+    enabled: false
19
+  QualifyingElement:
20
+    enabled: false
21
+  ColorVariable:
22
+    enabled: false
23
+  NestingDepth:
24
+    enabled: false
25
+  IdSelector:
26
+    enabled: false
27
+  DuplicateProperty:
28
+    enabled: false
29
+

+ 3
- 2
_sass/chimo/_fragmention.scss View File

@@ -1,4 +1,4 @@
1
-#fragmentioner-ui  {
1
+#fragmentioner-ui {
2 2
     padding-left: 5px;
3 3
     padding-right: 5px;
4 4
 
@@ -15,4 +15,5 @@
15 15
             padding-right: 5px;
16 16
         }
17 17
     }
18
-}
18
+}
19
+

+ 2
- 2
_sass/chimo/_util.scss View File

@@ -165,13 +165,13 @@ summary {
165 165
         display: none;
166 166
     }
167 167
 
168
-    > summary:before {
168
+    > summary::before {
169 169
         content: "► ";
170 170
         float: left;
171 171
         width: 20px;
172 172
     }
173 173
 
174
-    &.open > summary:before {
174
+    &.open > summary::before {
175 175
         content: "▼ ";
176 176
     }
177 177
 

Loading…
Cancel
Save