-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.stylelintrc.yaml
52 lines (45 loc) · 1.64 KB
/
.stylelintrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#############
# stylelint #
#############
# [OVERVIEW] CSS linter:
# https://stylelint.io/
#
# [INFO] Stylelint configuration:
# https://stylelint.io/user-guide/configuration
extends:
#########################
# stylelint-config-html #
#########################
# [OVERVIEW] Recommended configuration, checks for avoid errors:
# https://www.npmjs.com/package/stylelint-config-recommended
#
# [INFO] Avoid errors list:
# https://stylelint.io/user-guide/rules/list/#avoid-errors
- stylelint-config-recommended
#########################
# stylelint-config-html #
#########################
# [OVERVIEW] Configuration for using Stylelint in HTML files:
# https://www.npmjs.com/package/stylelint-config-html
- stylelint-config-html
###################################
# no-unsupported-browser-features #
###################################
# [OVERVIEW] Check features for browsers that supported in “browserslist” file:
# https://www.npmjs.com/package/stylelint-no-unsupported-browser-features
plugins:
- stylelint-no-unsupported-browser-features
rules:
# [INFO] Rule description:
# https://stylelint.io/user-guide/rules/no-descending-specificity
#
# [WARNING] Autoprefixer create duplicates → stylelint show errors:
# https://stackoverflow.com/q/58057777/5951529
# https://github.com/postcss/autoprefixer/issues/1196
#
# [INFO] Use “null”, not “false” for disabling rule:
# https://stylelint.io/user-guide/configuration#rules
no-descending-specificity: null
# [REQUIRED] “plugin/plugin_name: true”
# https://www.npmjs.com/package/stylelint-no-unsupported-browser-features#recommendations
plugin/no-unsupported-browser-features: true