forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
45 lines (37 loc) · 1.22 KB
/
stylelint.config.js
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
/* eslint-env node */
module.exports = {
customSyntax: 'postcss-styled-syntax',
extends: ['stylelint-config-recommended'],
rules: {
'declaration-colon-newline-after': null,
// This is formatting related
'declaration-bang-space-before': null,
// Doesn't work when we use values from theme
'unit-no-unknown': null,
'font-family-no-missing-generic-family-keyword': null,
'media-feature-name-no-unknown': null,
// Does not seem useful
'no-descending-specificity': null,
// Breaks with interpolated template values
'function-no-unknown': null,
'property-no-unknown': [
true,
{
// originX, orginY are used with framer motion
ignoreProperties: ['origin-x', 'origin-y'],
},
],
// Allow empty template eg - styled(thing)``
'no-empty-source': null,
'property-disallowed-list': [
// Prefer `gap` over `grid-gap`, it does the same thing
'grid-gap',
// Can't set per-property custom messages.. so try and bring them here
{
message: 'Disallowed property. (See `stylelint.config.js` as to why)',
},
],
// Disable no invalid media query, doesn't like our theme values
'media-query-no-invalid': null,
},
};