-
-
Notifications
You must be signed in to change notification settings - Fork 53
Fix: add lin commit hook for css #765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
434059b
Fix: add lin commit hook for css
jalilseif10 3fb88a9
Fix: remove pre-commit list and add husky lint
jalilseif10 2467b46
Fix: remove the duplicate check stylelint
jalilseif10 0fa4fa8
Fix: add tailwindcss for stylelint
jalilseif10 2c91c28
Fix: remove redundant for stylelint
jalilseif10 9bcb3eb
Fix: remove redundant scss for stylelint
jalilseif10 39126b7
Merge branch 'main' into js199069/fix-issue-471
js199069 9929313
Fix: add updated package-lock
jalilseif10 58f740e
Merge branch 'main' into js199069/fix-issue-471
kodiakhq[bot] a6e9ec9
Merge branch 'main' into js199069/fix-issue-471
kodiakhq[bot] bd87eb9
Merge branch 'main' into js199069/fix-issue-471
kodiakhq[bot] 5c91378
Merge branch 'main' into js199069/fix-issue-471
kodiakhq[bot] 8877b79
Merge branch 'main' into js199069/fix-issue-471
kodiakhq[bot] d33c17b
ignore lint errors
jalilseif10 ebeb3ab
Merge branch 'js199069/fix-issue-471' of github.com:js199069/ui into …
jalilseif10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", | ||
| "rules": { | ||
| "no-descending-specificity": null, | ||
| "scss/at-rule-no-unknown": null | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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
defaultSeverityto "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.📝 Committable suggestion
There was a problem hiding this comment.
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",
There was a problem hiding this comment.
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