Skip to content

Commit be43c0b

Browse files
authored
Merge pull request #1169 from srsheldon/bug/add_missing_sasslintrc_json_example_file
🐛 Add missing .sasslintrc JSON example file and update README
2 parents d74743c + 4b8c8a5 commit be43c0b

2 files changed

Lines changed: 64 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For example:
3232
}
3333
```
3434

35-
Use the [Sample Config (YAML)](https://github.com/sasstools/sass-lint/tree/master/docs/sass-lint.yml) or [Sample Config (JSON)](https://github.com/sasstools/sass-lint/tree/master/docs/sasslintrc) as a guide to create your own config file. The default configuration can be found [here](https://github.com/sasstools/sass-lint/blob/master/lib/config/sass-lint.yml).
35+
Use the [Sample Config (YAML)](https://github.com/sasstools/sass-lint/tree/master/docs/sass-lint.yml) or [Sample Config (JSON)](https://github.com/sasstools/sass-lint/tree/master/docs/.sasslintrc) as a guide to create your own config file. The default configuration can be found [here](https://github.com/sasstools/sass-lint/blob/master/lib/config/sass-lint.yml).
3636

3737
### [Configuration Documentation](https://github.com/sasstools/sass-lint/tree/master/docs/options)
3838

docs/.sasslintrc

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"options": {
3+
"merge-default-rules": false,
4+
"formatter": "html",
5+
"output-file": "linters/sass-lint.html",
6+
"max-warnings": 50
7+
},
8+
"files": {
9+
"include": "sass/**/*.s+(a|c)ss",
10+
"ignore": [
11+
"sass/vendor/**/*.*"
12+
]
13+
},
14+
"rules": {
15+
"extends-before-mixins": 2,
16+
"extends-before-declarations": 2,
17+
"placeholder-in-extend": 2,
18+
"mixins-before-declarations": [
19+
2,
20+
{
21+
"exclude": [
22+
"breakpoint",
23+
"mq"
24+
]
25+
}
26+
],
27+
"no-warn": 1,
28+
"no-debug": 1,
29+
"no-ids": 2,
30+
"no-important": 2,
31+
"hex-notation": [
32+
2,
33+
{
34+
"style": "uppercase"
35+
}
36+
],
37+
"indentation": [
38+
2,
39+
{
40+
"size": 2
41+
}
42+
],
43+
"property-sort-order": [
44+
1,
45+
{
46+
"order": [
47+
"display",
48+
"margin"
49+
],
50+
"ignore-custom-properties": true
51+
}
52+
],
53+
"variable-for-property": [
54+
2,
55+
{
56+
"properties": [
57+
"margin",
58+
"content"
59+
]
60+
}
61+
]
62+
}
63+
}

0 commit comments

Comments
 (0)