scss_lint 0.58.0 → 0.60.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/properties.txt +14 -0
- data/data/property-sort-orders/smacss.txt +5 -0
- data/lib/scss_lint/linter/chained_classes.rb +1 -1
- data/lib/scss_lint/version.rb +1 -1
- data/spec/scss_lint/linter/duplicate_property_spec.rb +1 -1
- data/spec/scss_lint/linter/length_variable_spec.rb +1 -1
- metadata +3 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 570475ca333090a33a54d608ce015b5164c56b4b195d775cb96d4e01178a5c24
|
4
|
+
data.tar.gz: 02da18b960f297a62eb8f84736452bfd2aa0107cbac27ea532fbda399dfe0300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed25ade8dbb9e0f16674924ecd7751a2a4d843ee08d1870e713623c569832c702f6a5308c31c069e71d5e8fa1e061d3469dce6995547d634a5294cb9061369a4
|
7
|
+
data.tar.gz: 5558c11fccfac36b82a6b2d20c741b9a7d2869893315da8957cde5168aa5c284ff1e2f7ad06ebcb838ef6b0d088afa1f533c5d93a5e27734379e6bfbe8192d56
|
data/data/properties.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
@keyframes
|
2
|
+
accent-color
|
2
3
|
align-content
|
3
4
|
align-items
|
4
5
|
align-self
|
@@ -203,6 +204,7 @@ font-variant
|
|
203
204
|
font-variant-ligatures
|
204
205
|
font-variant-numeric
|
205
206
|
font-weight
|
207
|
+
gap
|
206
208
|
glyph-orientation-horizontal
|
207
209
|
glyph-orientation-vertical
|
208
210
|
grid
|
@@ -395,6 +397,7 @@ perspective-origin-x
|
|
395
397
|
perspective-origin-y
|
396
398
|
phonemes
|
397
399
|
place-content
|
400
|
+
place-items
|
398
401
|
pointer-events
|
399
402
|
position
|
400
403
|
print-color-adjust
|
@@ -421,6 +424,16 @@ ruby-span
|
|
421
424
|
rx
|
422
425
|
ry
|
423
426
|
scroll-behavior
|
427
|
+
scroll-margin
|
428
|
+
scroll-margin-bottom
|
429
|
+
scroll-margin-left
|
430
|
+
scroll-margin-right
|
431
|
+
scroll-margin-top
|
432
|
+
scroll-padding
|
433
|
+
scroll-padding-bottom
|
434
|
+
scroll-padding-left
|
435
|
+
scroll-padding-right
|
436
|
+
scroll-padding-top
|
424
437
|
scrollbar-width
|
425
438
|
shape-image-threshold
|
426
439
|
shape-inside
|
@@ -489,6 +502,7 @@ text-stroke-width
|
|
489
502
|
text-transform
|
490
503
|
text-underline-color
|
491
504
|
text-underline-mode
|
505
|
+
text-underline-offset
|
492
506
|
text-underline-position
|
493
507
|
text-underline-style
|
494
508
|
text-underline-width
|
@@ -58,6 +58,10 @@ align-self
|
|
58
58
|
justify-content
|
59
59
|
order
|
60
60
|
|
61
|
+
gap
|
62
|
+
row-gap
|
63
|
+
column-gap
|
64
|
+
|
61
65
|
width
|
62
66
|
min-width
|
63
67
|
max-width
|
@@ -222,6 +226,7 @@ text-shadow
|
|
222
226
|
text-transform
|
223
227
|
text-wrap
|
224
228
|
word-wrap
|
229
|
+
overflow-wrap
|
225
230
|
word-break
|
226
231
|
|
227
232
|
text-emphasis
|
@@ -6,7 +6,7 @@ module SCSSLint
|
|
6
6
|
def visit_sequence(sequence)
|
7
7
|
line_offset = 0
|
8
8
|
sequence.members.each do |member|
|
9
|
-
line_offset += 1 if member =~ /\n/
|
9
|
+
line_offset += 1 if member.to_s =~ /\n/
|
10
10
|
next unless chained_class?(member)
|
11
11
|
add_lint(member.line + line_offset,
|
12
12
|
'Prefer using a distinct class over chained classes ' \
|
data/lib/scss_lint/version.rb
CHANGED
@@ -217,7 +217,7 @@ describe SCSSLint::Linter::DuplicateProperty do
|
|
217
217
|
end
|
218
218
|
|
219
219
|
context 'when specific consecutive duplicate properties are allowed' do
|
220
|
-
let(:linter_config) { { 'ignore_consecutive' => [
|
220
|
+
let(:linter_config) { { 'ignore_consecutive' => %w[background-color transition] } }
|
221
221
|
|
222
222
|
context 'when rule set contains consecutive duplicates in whitelist' do
|
223
223
|
let(:scss) { <<-SCSS }
|
@@ -348,7 +348,7 @@ describe SCSSLint::Linter::LengthVariable do
|
|
348
348
|
end
|
349
349
|
|
350
350
|
context 'when using a length with an allowed property' do
|
351
|
-
let(:linter_config) { { 'allowed_properties' => [
|
351
|
+
let(:linter_config) { { 'allowed_properties' => %w[text-shadow box-shadow] } }
|
352
352
|
let(:scss) { <<-SCSS }
|
353
353
|
p {
|
354
354
|
text-shadow: 10px 10px 5px blue;
|
metadata
CHANGED
@@ -1,35 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scss_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.60.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane da Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rake
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.9'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '13'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.9'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '13'
|
33
13
|
- !ruby/object:Gem::Dependency
|
34
14
|
name: sass
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
257
|
- !ruby/object:Gem::Version
|
278
258
|
version: '0'
|
279
259
|
requirements: []
|
280
|
-
rubygems_version: 3.
|
260
|
+
rubygems_version: 3.1.6
|
281
261
|
signing_key:
|
282
262
|
specification_version: 4
|
283
263
|
summary: SCSS lint tool
|