Skip to content

Instantly share code, notes, and snippets.

@windgazer
Created April 14, 2016 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save windgazer/56e9f4cecf7fbc18540d2ea848e8d8b3 to your computer and use it in GitHub Desktop.
Save windgazer/56e9f4cecf7fbc18540d2ea848e8d8b3 to your computer and use it in GitHub Desktop.
Windgazer coding styles
--errors=known-properties,overqualified-elements,compatible-vendor-prefixes,errors,empty-rules,gradients,import,selector-max,vendor-prefix
--warnings=duplicate-properties,important,box-sizing,display-property-grouping,duplicate-background-images,duplicate-properties,selector-max-approaching,font-sizes,font-faces,floats,star-property-hack,outline-none,ids,underscore-property-hack,rules-count,qualified-headings,unique-headings,unqualified-attributes,zero-units
--ignore=adjoining-classes,box-model,bulletproof-font-face,regex-selectors,fallback-colors,shorthand,text-indent,universal-selector
{
"camelcase":true,
"curly":true,
"indent":4,
"quotmark":"double",
"strict":true,
"maxcomplexity":7,
"maxlen":96,
"undef":true,
"browser": true
}
{
"disallowSpacesInsideBrackets": false,
"disallowKeywordsOnNewLine": [ "else" ],
// '} else {' is valid, '} else {' is not
"disallowMultipleSpaces": true,
"disallowMultipleVarDecl": null,
"disallowNewlineBeforeBlockStatements": true,
"disallowQuotedKeysInObjects": false,
"requireDollarBeforejQueryAssignment": true,
"requireSpaceAfterComma": false,
// '} else {' is valid, '}else {' is not
"requireSpaceBeforeKeywords": [ "else" ],
"requireSpacesInsideArrayBrackets": "all",
"requireTrailingComma": null,
"validateIndentation": 4,
"validateLineBreaks": null,
"validateQuoteMarks": true
}
scss_files: '**/*.css.scss'
linters:
Comment:
allowed: ^/**
Indentation:
severity: warning
width: 4
NameFormat:
variable_convention: ^[b]((__|--)[a-zA-Z]+)+$
SelectorFormat:
convention: hyphenated_BEM
SingleLinePerSelector:
enabled: false
SpaceBetweenParens:
spaces: 1
StringQuotes:
enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment