-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
.stylelintrc.yaml
69 lines (69 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Keep this file in sync with internal sass/stylelint/stylelintrc.yaml file.
plugins:
- stylelint-scss
- stylelint-prettier
rules:
prettier/prettier: true
# This list is to be verified with tests in `e2e_test.js`, in order to verify that each rule is
# functioning, and that this file does not contain typos.
block-closing-brace-newline-after:
- always
- ignoreAtRules:
- if
- else
block-no-empty: true
color-hex-case: lower
color-hex-length: short
color-no-invalid-hex: true
declaration-block-no-duplicate-properties: true
declaration-block-no-redundant-longhand-properties: true
declaration-block-no-shorthand-property-overrides: true
declaration-block-trailing-semicolon: always
function-calc-no-unspaced-operator: true
function-url-no-scheme-relative: true
function-url-quotes: never
# Need to check if units are required for some flex properties in some browsers.
# length-zero-no-unit
no-duplicate-at-import-rules: true
no-eol-whitespace: true
no-extra-semicolons: true
# In MDC, @keyframe's are defined in a separate file.
# no-unknown-animations: true
# Requires known-css-parser, not yet imported into third_party.
# property-no-unknown: true
rule-empty-line-before:
- always
- ignore:
- after-comment
- first-nested
- inside-block
selector-pseudo-class-no-unknown: true
selector-pseudo-element-no-unknown:
- true
- ignorePseudoElements:
ng-deep
scss/at-rule-no-unknown:
- true
- ignoreAtRules:
- provide
- require
# No config allows this:
#
# ```scss
# $long-varaible-name:
# (long, list, of, strings, that, is, too, wide, for, good, formatting);
# ```
#
# Possibly solved with request at https://github.com/kristerkari/stylelint-scss/issues/172.
# scss/dollar-variable-colon-space-after: always
scss/dollar-variable-colon-space-before: never
scss/operator-no-unspaced: true
shorthand-property-no-redundant-values: true
# TODO: Enable this when not conflicting with other sass file changes.
# string-quotes: single
unit-case: lower
unit-no-unknown:
- true
- ignoreUnits:
- /^[-+][\d$(]/
value-keyword-case: lower