-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.mjs
41 lines (40 loc) · 1.07 KB
/
stylelint.config.mjs
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
import { fileURLToPath } from 'node:url'
/** @type {import('stylelint').Config} */
export default {
extends: ['stylelint-config-standard', 'stylelint-config-css-modules'],
plugins: ['stylelint-order', 'stylelint-value-no-unknown-custom-properties'],
rules: {
'csstools/value-no-unknown-custom-properties': [
true,
{
importFrom: [
fileURLToPath(new URL('node_modules/@amsterdam/design-system-tokens/dist/index.css', import.meta.url)),
],
},
],
'media-feature-range-notation': 'prefix',
'order/order': ['custom-properties', 'declarations'],
'order/properties-order': [
['composes'],
{
unspecified: 'bottomAlphabetical',
},
],
'property-disallowed-list': [
[
'margin',
'margin-bottom',
'margin-left',
'margin-right',
'margin-top',
'padding',
'padding-bottom',
'padding-left',
'padding-right',
'padding-top',
],
],
'selector-class-pattern': null,
'unit-disallowed-list': ['px'],
},
}