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

Commit 21b7717

Browse files
author
Marlow Payne
committed
Merge pull request #95 from mobify/release-v2.4.1
Release v2.4.1
2 parents 1ee7a0f + fb2b6c3 commit 21b7717

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2.4.1
2+
- Fix some bugs with sass-lint config
13
2.4.0
24
- Add a sass-lint config file
35
2.3.7

css/.sass-lint.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
files:
44
include: '**/*.s+(a|c)ss'
5-
ignore:
6-
- 'node_modules/**/*.scss'
5+
ignore: # standard ignores for Adaptive.js projects
6+
- '**/node_modules/**/*.scss'
7+
- '**/bower_components/**/*.scss'
78
- 'app/global/styles/base/**/*.scss'
89
options:
910
formatter: stylish
@@ -14,7 +15,7 @@ rules:
1415
- max-depth: 1
1516
border-zero:
1617
- 2
17-
- convention: zero
18+
- convention: '0'
1819
brace-style:
1920
- 2
2021
- allow-single-line: false
@@ -48,12 +49,12 @@ rules:
4849
- style: lowercase
4950
id-name-format:
5051
- 2
51-
- convention: hyphenatedbem
52+
- convention: '[a-z]|-{3}|_{3}|[^_]_[^_]'
5253
indentation:
5354
- 2
5455
- size: 4
55-
leading-zero:
56-
- 2
56+
leading-zero: # this seems to conflict with spacing around operators
57+
- 0
5758
- include: true
5859
mixin-name-format:
5960
- 2
@@ -73,10 +74,12 @@ rules:
7374
no-ids: 0
7475
no-important: 0
7576
no-invalid-hex: 2
76-
no-mergeable-selectors: 2
77-
no-misspelled-properties:
77+
no-mergeable-selectors:
7878
- 2
79-
- extra-properties: []
79+
- whitelist: ['from', 'to']
80+
no-misspelled-properties: # only warn: sass-lint's list of properties needs updating
81+
- 1
82+
- extra-properties: ['tap-highlight', 'overflow-scrolling']
8083
no-qualifying-elements:
8184
- 2
8285
- allow-element-with-attribute: true
@@ -88,7 +91,7 @@ rules:
8891
placeholder-in-extend: 2
8992
placeholder-name-format:
9093
- 2
91-
- convention: hyphenatedbem
94+
- convention: '[a-z]|-{3}|_{3}|[^_]_[^_]'
9295
property-sort-order:
9396
- 2
9497
- ignore-custom-properties: false
@@ -318,7 +321,7 @@ rules:
318321
- 2
319322
- include: false
320323
trailing-semicolon: 2
321-
url-quotes: 2
324+
url-quotes: 1 # Only warn here, since sass-lint doesn't understand helpers in urls
322325
variable-for-property:
323326
- 2
324327
- properties:

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.4.0",
3+
"version": "2.4.1",
44
"description": "Code style guide and linting tools for Mobify",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)