Last active
October 9, 2016 09:18
-
-
Save yoanmalie/98d424953fb71420abd7 to your computer and use it in GitHub Desktop.
Configuration file for scss-lint
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
# Documentation: | |
# https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md | |
scss_files: 'assets/src/css/**/*.scss' | |
exclude: | |
- node_modules | |
- assets/src/css/vendors/** | |
linters: | |
BangFormat: | |
enabled: true | |
space_before_bang: true | |
space_after_bang: false | |
BemDepth: | |
enabled: true | |
max_elements: 1 | |
BorderZero: | |
enabled: true | |
convention: zero | |
ColorKeyword: | |
enabled: true | |
ColorVariable: | |
enabled: false | |
Comment: | |
enabled: true | |
DebugStatement: | |
enabled: true | |
DeclarationOrder: | |
enabled: true | |
DisableLinterReason: | |
enabled: true | |
DuplicateProperty: | |
enabled: true | |
ignore_consecutive: | |
- background | |
- transition | |
ElsePlacement: | |
enabled: true | |
style: same_line | |
EmptyLineBetweenBlocks: | |
enabled: true | |
ignore_single_line_blocks: true | |
EmptyRule: | |
enabled: true | |
ExtendDirective: | |
enabled: false | |
FinalNewline: | |
enabled: true | |
present: true | |
HexLength: | |
enabled: true | |
style: short | |
HexNotation: | |
enabled: true | |
style: lowercase | |
HexValidation: | |
enabled: true | |
IdSelector: | |
enabled: true | |
ImportantRule: | |
enabled: false | |
ImportPath: | |
enabled: true | |
leading_underscore: false | |
filename_extension: false | |
Indentation: | |
enabled: true | |
allow_non_nested_indentation: true | |
character: space | |
width: 4 | |
LeadingZero: | |
enabled: true | |
style: include_zero | |
LengthVariable: | |
enabled: false | |
MergeableSelector: | |
enabled: true | |
force_nesting: false | |
NameFormat: | |
enabled: true | |
allow_leading_underscore: true # For private variables, mixins and functions | |
convention: '^[a-z]|[a-z0-9\-]{2,}$' | |
convention_explanation: 'Valid names for variables, mixins and functions: i, foo, foo-bar, foo-1, _private-thing' | |
NestingDepth: | |
enabled: true | |
max_depth: 3 | |
ignore_parent_selectors: false | |
PlaceholderInExtend: | |
enabled: false | |
PrivateNamingConvention: | |
enable: true | |
prefix: '_' | |
PropertyCount: | |
enabled: false | |
PropertySortOrder: | |
enabled: false | |
PropertySpelling: | |
enabled: true | |
PropertyUnits: | |
enabled: true | |
global: ['px', 'em', 'rem', '%', 'vh', 'vw', 'vmin', 'vmax', 'vm'] | |
properties: | |
line-height: [] # No units allowed | |
PseudoElement: | |
enabled: true | |
QualifyingElement: | |
enabled: false | |
SelectorDepth: | |
enabled: true | |
max_depth: 3 | |
SelectorFormat: # Note: this does not warn about malformed selector that start with #{$css-prefix} | |
enabled: true | |
convention: '^[a-z0-9_\-]+$' # a sort of strict_BEM | |
convention_explanation: 'Valid class names: block_container, block, block--modifier, block__element, block__element--modifier' | |
Shorthand: | |
enabled: true | |
SingleLinePerProperty: | |
enabled: true | |
allow_single_line_rule_sets: false | |
SingleLinePerSelector: | |
enabled: true | |
SpaceAfterComma: | |
enabled: true | |
style: one_space | |
SpaceAfterComment: | |
enabled: true | |
style: one_space | |
allow_empty_comments: true | |
SpaceAfterPropertyColon: | |
enabled: true | |
style: one_space | |
SpaceAfterPropertyName: | |
enabled: false | |
SpaceAfterVariableColon: | |
enabled: true | |
style: at_least_one_space | |
SpaceAfterVariableName: | |
enabled: false | |
SpaceAroundOperator: | |
enabled: true | |
style: one_space | |
SpaceBeforeBrace: | |
enabled: true | |
allow_single_line_padding: true | |
style: space | |
SpaceBetweenParens: | |
enabled: true | |
spaces: 0 | |
StringQuotes: | |
enabled: true | |
style: single_quotes | |
TrailingSemicolon: | |
enabled: true | |
TrailingWhitespace: | |
enabled: true | |
TrailingZero: | |
enabled: true | |
TransitionAll: | |
enable: true | |
UnnecessaryMantissa: | |
enabled: true | |
UnnecessaryParentReference: | |
enabled: true | |
UrlFormat: | |
enabled: true | |
UrlQuotes: | |
enabled: true | |
VariableForProperty: | |
enabled: false | |
VendorPrefix: | |
enabled: true | |
ZeroUnit: | |
enabled: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment