forked from mui/base-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
39 lines (37 loc) · 1.19 KB
/
stylelint.config.mjs
File metadata and controls
39 lines (37 loc) · 1.19 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
// Note: To debug stylelint config resolution for a specific file, use
// pnpm exec stylelint --print-config <path-to-file>
/** @type {import('stylelint').Config} */
export default {
extends: '@mui/internal-code-infra/stylelint',
rules: {
// empty lines help with readability
'declaration-empty-line-before': null,
'custom-property-empty-line-before': null,
'comment-empty-line-before': null,
'at-rule-empty-line-before': null,
'function-no-unknown': true,
'number-max-precision': 5,
'no-descending-specificity': null, // Some styles depend on order
},
overrides: [
{
files: ['docs/**/*'],
extends: ['stylelint-config-tailwindcss'],
rules: {
// https://github.com/zhilidali/stylelint-config-tailwindcss/issues/12
'declaration-property-value-no-unknown': null,
// Remove when ready
'keyframes-name-pattern': null,
},
},
{
// Not fixing experiments for now
files: ['docs/src/app/[(]private[)]/experiments/**/*'],
rules: {
'block-no-redundant-nested-style-rules': null,
'no-descending-specificity': null,
'no-duplicate-selectors': null,
},
},
],
};