Skip to content

Instantly share code, notes, and snippets.

@brunob
Last active April 26, 2019 08:42
Show Gist options
  • Save brunob/d16beef0f181a55e24b5 to your computer and use it in GitHub Desktop.
Save brunob/d16beef0f181a55e24b5 to your computer and use it in GitHub Desktop.
Personal config file for PrettyCSS https://github.com/fidian/PrettyCSS/
{
"cssLevel": 3,
"autocorrect": "",
"propertiesLowerCase": "",
"valuesLowerCase": "",
"at_pre": "",
"at_whitespace": " ",
"at_post": "\n",
"atblock_pre": " {\n\t",
"atblock_post": "\r}",
"block_pre": " { ",
"block_post": "}",
"cdo": "",
"cdc": "",
"combinator_pre": " ",
"combinator_post": " ",
"topcomment_pre": "\n",
"topcomment_post": "\n",
"comment_pre": "",
"comment_post": "",
"declaration_pre": "",
"declaration_post": " ",
"functionComma": ",",
"functionSpace": " ",
"important": "!important",
"indent": "\t",
"keyframe_pre": "",
"keyframe_post": "",
"keyframeselector_pre": "",
"keyframeselector_post": "",
"property_pre": "",
"property_post": "",
"ruleset_pre": "",
"ruleset_post": "\n",
"selector_pre": "",
"selector_whitespace": " ",
"selector_comma": ",\n",
"selector_post": "",
"stylesheet_pre": "",
"stylesheet_whitespace": "",
"stylesheet_post": "",
"value_pre": " ",
"value_post": ""
}
@brunob
Copy link
Author

brunob commented Apr 26, 2019

Trying to convert it to stylelint, first shot not working on things like that .littlefoot-footnote__button:hover, <= no new line here...

{
	"rules":{
		"indentation":"tab",
		"string-quotes":"single",
		"color-hex-case":"lower",
		"value-list-comma-space-after":"always",
		"declaration-colon-space-after":"always",
		"declaration-colon-space-before":"never",
		"declaration-block-semicolon-newline-after":"never-multi-line",
		"declaration-block-semicolon-space-after":"always-single-line",
		"declaration-block-trailing-semicolon":"always",
		"block-closing-brace-newline-after":"always",
		"block-closing-brace-space-before":"always-single-line",
		"block-opening-brace-newline-after":"never-multi-line",
		"block-opening-brace-newline-before":"never-multi-line",
		"block-opening-brace-space-after":"always",
		"block-opening-brace-space-before":"always",
		"selector-list-comma-newline-after":"always",
		"selector-list-comma-space-after":"never",
		"media-feature-colon-space-after":"always",
		"media-feature-colon-space-before":"never",
		"media-feature-name-case":"lower",
		"media-feature-parentheses-space-inside":"never",
		"media-feature-range-operator-space-after":"always",
		"media-feature-range-operator-space-before":"always",
		"at-rule-name-space-after":"always",
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment