Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 5a57b7d

Browse files
author
Marlow Payne
committed
Merge pull request #63 from mobify/scss-lint-0.40.1
Update to scss-lint 0.40.1
2 parents 71d9f6f + 6faefa4 commit 5a57b7d

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.2.1
2+
- Cumulative patch release
3+
- Update SCSS-lint to 0.40.1
14
2.2.0
25
- Fixes eslint config to play nicely with Atom's linter-eslint package
36
- Adds an eslint config reset file so that our ruleset is an override

css/.scss-lint.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ linters:
4343
DeclarationOrder:
4444
enabled: true
4545

46+
# Checks for "reason" comments above linter-disabling comments.
47+
DisableLinterReason:
48+
enabled: false
49+
4650
# Report the same property twice in a single rule set?
4751
DuplicateProperty:
4852
enabled: true
@@ -143,6 +147,11 @@ linters:
143147
include_nested: false
144148
max_properties: 10
145149

150+
# Report unknown CSS properties? (Ignores vendor prefixes.)
151+
PropertySpelling:
152+
enabled: true
153+
extra_properties: []
154+
146155
# Check for allowed units
147156
PropertyUnits:
148157
enabled: false
@@ -157,11 +166,6 @@ linters:
157166
'%'] # Other
158167
properties: {}
159168

160-
# Report unknown CSS properties? (Ignores vendor prefixes.)
161-
PropertySpelling:
162-
enabled: true
163-
extra_properties: []
164-
165169
# Checks for element selectors qualifying id, classe, or attribute selectors.
166170
QualifyingElement:
167171
enabled: true
@@ -177,7 +181,7 @@ linters:
177181
max_depth: 3
178182

179183
# Checks that selector names use a specified convention
180-
# Configure: 'hyphenated_lowercase', or 'BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern
184+
# Configure: 'hyphenated_lowercase', or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern
181185
SelectorFormat:
182186
enabled: true
183187
convention: hyphenated_BEM
@@ -201,7 +205,7 @@ linters:
201205
enabled: true
202206

203207
# Lint whitespace between property colon and value?
204-
# Configure: `no_space`, `at_least_one_space`, or `aligned`
208+
# Configure: `no_space`, `one_space`, `at_least_one_space`, `one_space_or_newline`, or `aligned`
205209
SpaceAfterPropertyColon:
206210
enabled: true
207211
style: one_space
@@ -210,6 +214,11 @@ linters:
210214
SpaceAfterPropertyName:
211215
enabled: true
212216

217+
# Warns if any space present between the name of a variable and the colon in
218+
# variable assignments.
219+
SpaceAfterVariableName:
220+
enabled: true
221+
213222
# Report lack of space between selector and opening brace?
214223
SpaceBeforeBrace:
215224
enabled: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobify-code-style",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Code style guide and linting tools for Mobify",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)