-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
29 lines (29 loc) · 948 Bytes
/
Copy pathstylelint.config.mjs
File metadata and controls
29 lines (29 loc) · 948 Bytes
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
export default {
extends: ["stylelint-config-standard", "stylelint-config-html/astro"],
ignoreFiles: [
"dist/**",
".astro/**",
"coverage/**",
"playwright-report/**",
"test-results/**",
"node_modules/**",
// Protected pre-existing transition experiment; it is outside this refactor.
"src/styles/page-transitions.css",
],
overrides: [
{
files: ["**/*.astro"],
customSyntax: "postcss-html",
rules: {
// postcss-html treats each inline custom-property knob as a declaration block.
"custom-property-empty-line-before": "never",
},
},
],
rules: {
// Allow the Utopia negative step (`--step--1`) while retaining kebab-case elsewhere.
"custom-property-pattern": "^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*|step--[0-9]+)$",
// Prefix notation keeps the existing Media Queries Level 3 compatibility baseline.
"media-feature-range-notation": "prefix",
},
};