Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-standard-scss",
"stylelint-config-tailwindcss"
],
"defaultSeverity": "warning",
Copy link
Contributor

@coderabbitai coderabbitai bot Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider using "error" severity for pre-commit hooks.

Setting defaultSeverity to "warning" might be too lenient for a pre-commit hook, as it will allow commits even when style issues are detected. Consider changing it to "error" to ensure style consistency is enforced.

-  "defaultSeverity": "warning",
+  "defaultSeverity": "error",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"defaultSeverity": "warning",
"defaultSeverity": "error",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line assume errors as warnings
"defaultSeverity": "warning",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@js199069 I understand your approach. Setting the severity to "warning" is indeed a good strategy during the initial adoption phase, allowing the team to gradually address the style issues while maintaining development velocity.

⟪ ◕ᴗ◕ ⟫
∫∫∫


✏️ Learnings added
Learnt from: js199069
PR: rad-ui/ui#765
File: .stylelintrc.json:7-7
Timestamp: 2025-01-13T18:10:34.853Z
Learning: In Stylelint configuration, setting `defaultSeverity` to "warning" is preferred during the initial setup phase to allow gradual adoption of style rules, especially when there are existing style issues to be addressed over time.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

"rules": {
"no-descending-specificity": null,
"scss/at-rule-no-unknown": null
}
}
Loading
Loading