-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.stylelintrc.cjs
More file actions
39 lines (38 loc) · 1.14 KB
/
.stylelintrc.cjs
File metadata and controls
39 lines (38 loc) · 1.14 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
/**
* Stylelint Configuration
* Purpose: CSS linting with Tailwind CSS v3 support for all projects in the monorepo
* Usage (Check): nx run <project>:stylelint
* Usage (Fix): nx run <project>:stylelint --configuration=write
* CI Workflow: .github/workflows/code-analysis.yml
* @see https://stylelint.io/
*/
module.exports = {
extends: [
"stylelint-config-standard", // Standard CSS rules
"stylelint-config-tailwindcss", // Tailwind CSS support
],
rules: {
// Allow Tailwind CSS v3 directives (@tailwind, @apply, @layer, etc.)
"at-rule-no-unknown": [
true,
{
ignoreAtRules: [
"tailwind",
"apply",
"layer",
"config",
"screen",
"variants",
"responsive",
"utility",
],
},
],
// Allow component-specific class naming (e.g., .Button, .card-hover)
"selector-class-pattern": null,
// Allow Tailwind custom properties (e.g., --tw-ring-offset-shadow)
"custom-property-pattern": null,
// Allow shorthand properties for Tailwind utilities
"declaration-block-no-redundant-longhand-properties": null,
},
};