Skip to content

Commit faa5f4c

Browse files
aijmartijnrusschen
authored andcommitted
Upgrade from scss-lint to sass-lint (Hacker0x01#697)
* Upgrade from scss-lint to sass-lint sass-lint is pure JS, so this removes the Ruby dependency. * Also upgrade from grunt-contrib-sass to grunt-sass grunt-sass uses node-sass, whereas grunt-contrib-sass still depends on Ruby.
1 parent 33ad8e4 commit faa5f4c

File tree

5 files changed

+163
-227
lines changed

5 files changed

+163
-227
lines changed

.sass-lint.yml

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
# sass-lint config generated by make-sass-lint-config v0.1.2
2+
#
3+
# The following scss-lint Linters are not yet supported by sass-lint:
4+
# ChainedClasses, DisableLinterReason, ElsePlacement, PropertyCount
5+
# PseudoElement, SelectorDepth, SpaceAroundOperator, TrailingWhitespace
6+
# UnnecessaryParentReference, Compass::*
7+
#
8+
# The following settings/values are unsupported by sass-lint:
9+
# Linter HexLength, option "enaled"
10+
# Linter Indentation, option "allow_non_nested_indentation"
11+
# Linter Indentation, option "character"
12+
# Linter SpaceBeforeBrace, option "allow_single_line_padding"
13+
14+
files:
15+
include: '**/*.scss'
16+
options:
17+
formatter: stylish
18+
merge-default-rules: false
19+
rules:
20+
bem-depth:
21+
- 0
22+
- max-depth: 1
23+
border-zero: 0
24+
brace-style: 1
25+
class-name-format:
26+
- 1
27+
- convention: hyphenatedbem
28+
clean-import-paths:
29+
- 1
30+
- filename-extension: false
31+
leading-underscore: false
32+
empty-line-between-blocks:
33+
- 1
34+
- ignore-single-line-rulesets: true
35+
extends-before-declarations: 1
36+
extends-before-mixins: 1
37+
final-newline:
38+
- 1
39+
- include: true
40+
force-attribute-nesting: 1
41+
force-element-nesting: 1
42+
force-pseudo-nesting: 1
43+
function-name-format:
44+
- 0
45+
- convention: BEM
46+
hex-length:
47+
- 1
48+
- style: short
49+
hex-notation:
50+
- 1
51+
- style: lowercase
52+
id-name-format:
53+
- 1
54+
- convention: hyphenatedbem
55+
indentation:
56+
- 1
57+
- size: 2
58+
leading-zero:
59+
- 1
60+
- include: false
61+
mixin-name-format:
62+
- 0
63+
- convention: BEM
64+
mixins-before-declarations: 1
65+
nesting-depth:
66+
- 1
67+
- max-depth: 4
68+
no-color-keywords: 1
69+
no-color-literals: 0
70+
no-css-comments: 0
71+
no-debug: 1
72+
no-duplicate-properties: 1
73+
no-empty-rulesets: 1
74+
no-extends: 0
75+
no-ids: 1
76+
no-important: 1
77+
no-invalid-hex: 1
78+
no-mergeable-selectors: 1
79+
no-misspelled-properties: 1
80+
no-qualifying-elements:
81+
- 1
82+
- allow-element-with-attribute: false
83+
allow-element-with-class: false
84+
allow-element-with-id: false
85+
no-trailing-zero: 1
86+
no-transition-all: 0
87+
no-url-protocols: 1
88+
no-vendor-prefixes: 0
89+
placeholder-in-extend: 1
90+
placeholder-name-format:
91+
- 1
92+
- convention: hyphenatedbem
93+
property-sort-order: 0
94+
property-units:
95+
- 1
96+
- global:
97+
- ch
98+
- em
99+
- ex
100+
- rem
101+
- cm
102+
- in
103+
- mm
104+
- pc
105+
- pt
106+
- px
107+
- q
108+
- vh
109+
- vw
110+
- vmin
111+
- vmax
112+
- deg
113+
- grad
114+
- rad
115+
- turn
116+
- ms
117+
- s
118+
- Hz
119+
- kHz
120+
- dpi
121+
- dpcm
122+
- dppx
123+
- '%'
124+
quotes:
125+
- 1
126+
- style: double
127+
shorthand-values: 1
128+
single-line-per-selector: 1
129+
space-after-bang:
130+
- 1
131+
- include: false
132+
space-after-colon:
133+
- 1
134+
- include: true
135+
space-after-comma:
136+
- 1
137+
- include: true
138+
space-before-bang:
139+
- 1
140+
- include: true
141+
space-before-brace:
142+
- 1
143+
- include: true
144+
space-before-colon: 1
145+
space-between-parens:
146+
- 1
147+
- include: false
148+
trailing-semicolon: 1
149+
url-quotes: 1
150+
variable-for-property: 0
151+
variable-name-format:
152+
- 0
153+
- convention: BEM
154+
zero-unit: 1

.scss-lint.yml

Lines changed: 0 additions & 216 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ addons:
1111
packages:
1212
- g++-4.8
1313
before_install:
14-
- rvm install 2.3.1
1514
- npm install -g grunt-cli
16-
- gem update --system && gem install scss_lint -v 0.50.2
1715
- export DISPLAY=:99.0
1816
- sh -e /etc/init.d/xvfb start
1917
script:

0 commit comments

Comments
 (0)