-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: stylelint 관련 의존성 추가 * chore: stylelint 규칙 stylelintrc.json에 추가 * chore: vscode 관련 설정 추가
- Loading branch information
1 parent
88b5338
commit eae8ec9
Showing
4 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,3 @@ | ||
{ | ||
"recommendations": ["stylelint.vscode-stylelint"] | ||
} |
This file contains 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,8 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.stylelint": "explicit" | ||
}, | ||
"stylelint.validate": ["typescriptreact", "typescript"], | ||
"stylelint.configFile": "./frontend/.stylelintrc.json", | ||
"stylelint.packageManager": "yarn" | ||
} |
This file contains 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,82 @@ | ||
{ | ||
"extends": ["stylelint-config-standard"], | ||
"plugins": ["stylelint-order"], | ||
"customSyntax": "postcss-styled-syntax", | ||
"rules": { | ||
"declaration-empty-line-before": [ | ||
"always", | ||
{ | ||
"ignore": ["first-nested", "after-comment", "after-declaration", "inside-single-line-block"] | ||
} | ||
], | ||
"order/properties-order": [ | ||
{ | ||
"groupName": "Layout", | ||
"noEmptyLineBetween": true, | ||
"properties": [ | ||
"display", | ||
"visibility", | ||
"overflow", | ||
"float", | ||
"clear", | ||
"position", | ||
"top", | ||
"right", | ||
"bottom", | ||
"left", | ||
"z-index" | ||
] | ||
}, | ||
{ | ||
"groupName": "Box", | ||
"emptyLineBefore": "always", | ||
"noEmptyLineBetween": true, | ||
"properties": [ | ||
"width", | ||
"height", | ||
"margin", | ||
"margin-top", | ||
"margin-right", | ||
"margin-bottom", | ||
"margin-left", | ||
"padding", | ||
"padding-top", | ||
"padding-right", | ||
"padding-bottom", | ||
"padding-left", | ||
"border" | ||
] | ||
}, | ||
{ | ||
"groupName": "Background", | ||
"emptyLineBefore": "always", | ||
"noEmptyLineBetween": true, | ||
"properties": ["background-color"] | ||
}, | ||
{ | ||
"groupName": "Font", | ||
"emptyLineBefore": "always", | ||
"noEmptyLineBetween": true, | ||
"properties": [ | ||
"color", | ||
"font-style", | ||
"font-weight", | ||
"font-size", | ||
"line-height", | ||
"letter-spacing", | ||
"text-align", | ||
"text-indent", | ||
"vertical-align", | ||
"white-space" | ||
] | ||
}, | ||
{ | ||
"groupName": "Animation", | ||
"emptyLineBefore": "always", | ||
"noEmptyLineBetween": true, | ||
"properties": ["animation"] | ||
} | ||
] | ||
}, | ||
"order/order": ["custom-properties", "declarations"] | ||
} |
This file contains 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