Skip to content

Instantly share code, notes, and snippets.

@frankyonnetti
Last active June 2, 2022 15:44
Show Gist options
  • Save frankyonnetti/b58889c98e5586d2702f765c45d32bcf to your computer and use it in GitHub Desktop.
Save frankyonnetti/b58889c98e5586d2702f765c45d32bcf to your computer and use it in GitHub Desktop.
{
"extends": "standard",
"env": {
"browser": true,
"es2020": true
},
"root": true
}
---
{
"extends": "standard",
"globals": {
"Sortable": "readonly"
},
"rules": {
"indent": ["error", 2],
"quotes": ["error", "single"],
},
"env": {
"browser": true,
"es2020": true
},
"root": true
}
// use tabs instead of spaces
{
"rules": {
"indent": [2, "tab"],
"no-tabs": 0
}
}
{
"extends": "stylelint-config-sass-guidelines",
"rules": {
"color-hex-length": null,
"declaration-block-no-duplicate-properties": true,
"declaration-colon-space-after": "always-single-line",
"function-max-empty-lines": 1,
"indentation": 2,
// "indentation": "tab",
"max-nesting-depth": 8,
"number-leading-zero": "always",
"number-no-trailing-zeros": null,
"property-no-vendor-prefix": null,
"rule-empty-line-before": [
"always-multi-line",
{
"ignore": ["after-comment"]
}
],
"selector-class-pattern": null,
"selector-max-compound-selectors": null,
"selector-max-id": null,
"selector-no-qualifying-type": null,
"shorthand-property-no-redundant-values": true,
"string-quotes": "double",
"value-list-comma-space-after": "always-single-line",
"scss/dollar-variable-pattern": null,
"order/properties-alphabetical-order": null,
"order/order": [
"custom-properties",
{
"type": "at-rule",
"name": "include"
},
{
"type": "at-rule",
"name": "extend"
},
"declarations",
{
"type": "at-rule",
"name": "media"
},
"rules",
{
"type": "at-rule",
"name": "include",
"parameter": "keyframes"
}
],
"order/properties-order": [
"flex",
"flex-grow",
"flex-shrink",
"flex-basis",
"content",
"color",
"font",
"font-size",
"line-height",
"font-weight",
"font-style",
"font-family",
"letter-spacing",
"text-align",
"text-indent",
"text-justify",
"text-transform",
"text-decoration",
"text-shadow",
"white-space",
"word-wrap",
"word-break",
"hyphens",
"border",
"border-width",
"border-style",
"border-color",
"border-top",
"border-top-width",
"border-top-style",
"border-top-color",
"border-right",
"border-right-width",
"border-right-style",
"border-right-color",
"border-bottom",
"border-bottom-width",
"border-bottom-style",
"border-bottom-color",
"border-left",
"border-left-width",
"border-left-style",
"border-left-color",
"border-radius",
"background",
"background-color",
"background-image",
"background-repeat",
"background-attachment",
"background-position",
"background-size",
"box-shadow",
"order",
"align-self",
"display",
"flex-direction",
"flex-wrap",
"flex-flow",
"justify-content",
"align-items",
"align-content",
"float",
"clear",
"visibility",
"opacity",
"overflow",
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"clip",
"vertical-align",
"list-style",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height"
]
}
}

SCSS/CSS

npx stylelint "scss/**/*.scss" --fix

// mixins.scss

/* stylelint-disable at-rule-no-vendor-prefix */
/* stylelint-disable property-no-vendor-prefix */
/* stylelint-disable selector-no-vendor-prefix */
/* stylelint-disable value-no-vendor-prefix */
/* stylelint-disable declaration-block-no-duplicate-properties */

JS Standard

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