forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.stylelintrc.yaml
More file actions
65 lines (61 loc) · 2.54 KB
/
Copy path.stylelintrc.yaml
File metadata and controls
65 lines (61 loc) · 2.54 KB
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
$schema: https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/stylelintrc.json
extends:
- stylelint-config-recommended
- stylelint-config-standard
- stylelint-prettier/recommended
plugins:
- stylelint-csstree-validator
- stylelint-declaration-strict-value
rules:
import-notation: null
# TODO: fix all of these rules violated in stylelint-config-recommended
no-descending-specificity: null
# this fixer is incompatible with the copyright headers
comment-whitespace-inside: null
# these fixers assume use of `autoprefixer`: we _don't_ use any CSS preprocessors
property-no-vendor-prefix: null
selector-no-vendor-prefix: null
value-no-vendor-prefix: null
# these fixers doesn't work well with variables
alpha-value-notation: null
color-function-notation: null
# TODO: evaluate these unfixable rules violated in stylelint-config-standard
custom-property-pattern: null
declaration-block-no-redundant-longhand-properties: null
function-linear-gradient-no-nonstandard-direction: null
function-url-quotes: null
keyframes-name-pattern: null
number-max-precision: null
selector-class-pattern: null
selector-id-pattern: null
selector-pseudo-class-no-unknown: null
selector-pseudo-element-no-unknown: null
selector-not-notation: null
# disallow use of more than one bare HTML tag like `div span` to avoid performance regression,
# while allowing compounded HTML tags like `button.jp-Button`
selector-max-type:
- 1
- ignore: "compounded"
# matching complex selectors is expensive
selector-max-class: 4
# TODO: decrease max-compound to 3
selector-max-compound-selectors: 4
# TODO: decrease to 0
selector-max-universal: 1
csstree/validator: true
# Enforce CSS variables for certain properties (issue #18540)
declaration-property-value-allowed-list:
# Allow MathJax internal font families (e.g. MJXZERO).
font-family: ['/^var\(/', '/^["'']?MJX/']
font-size: ['/var\(/', '/^0$/', '/^unset$/', '/^inherit$/', '/^(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)%$/']
color: ['/var\(/', '/^unset|inherit|white|black$/', '/^transparent$/']
background-color: ['/var\(/', '/^unset|inherit|initial|white|black$/', '/^transparent$/']
border: ['/var\(/', '/transparent/', '/^none$/', '/^unset|inherit$/', '/^0$/']
border-color: ['/var\(/', '/^transparent$/', '/^unset|inherit$/']
overrides:
- files:
- 'docs/source/snippets/galata/test/documentation/data/*.css'
rules:
declaration-property-value-allowed-list:
color: ['/.*/']
background-color: ['/.*/']