263 lines
4.5 KiB
YAML
263 lines
4.5 KiB
YAML
exclude:
|
|
- 'app/assets/stylesheets/reset.scss'
|
|
- 'app/assets/stylesheets/direct_uploads.scss'
|
|
|
|
linters:
|
|
BangFormat:
|
|
enabled: true
|
|
space_before_bang: true
|
|
space_after_bang: false
|
|
|
|
BemDepth:
|
|
enabled: false
|
|
max_elements: 1
|
|
|
|
BorderZero:
|
|
enabled: true
|
|
convention: none
|
|
|
|
# To enable later
|
|
ChainedClasses:
|
|
enabled: false
|
|
|
|
ColorKeyword:
|
|
enabled: true
|
|
|
|
# To enable later
|
|
ColorVariable:
|
|
enabled: false
|
|
|
|
Comment:
|
|
enabled: true
|
|
style: silent
|
|
|
|
DebugStatement:
|
|
enabled: true
|
|
|
|
DeclarationOrder:
|
|
enabled: true
|
|
|
|
DisableLinterReason:
|
|
enabled: false
|
|
|
|
DuplicateProperty:
|
|
enabled: true
|
|
|
|
ElsePlacement:
|
|
enabled: true
|
|
style: same_line
|
|
|
|
EmptyLineBetweenBlocks:
|
|
enabled: true
|
|
ignore_single_line_blocks: false
|
|
|
|
EmptyRule:
|
|
enabled: true
|
|
|
|
ExtendDirective:
|
|
enabled: false
|
|
|
|
FinalNewline:
|
|
enabled: true
|
|
present: true
|
|
|
|
HexLength:
|
|
enabled: true
|
|
style: long
|
|
|
|
HexNotation:
|
|
enabled: true
|
|
style: uppercase
|
|
|
|
HexValidation:
|
|
enabled: true
|
|
|
|
# To enable later
|
|
IdSelector:
|
|
enabled: false
|
|
|
|
# To enable later
|
|
ImportantRule:
|
|
enabled: false
|
|
|
|
ImportPath:
|
|
enabled: false
|
|
leading_underscore: false
|
|
filename_extension: false
|
|
|
|
Indentation:
|
|
enabled: true
|
|
allow_non_nested_indentation: false
|
|
character: space
|
|
width: 2
|
|
|
|
LeadingZero:
|
|
enabled: true
|
|
style: include_zero
|
|
|
|
MergeableSelector:
|
|
enabled: false
|
|
force_nesting: true
|
|
|
|
NameFormat:
|
|
enabled: true
|
|
allow_leading_underscore: false
|
|
convention: hyphenated_lowercase
|
|
|
|
# To enable later
|
|
NestingDepth:
|
|
enabled: false
|
|
max_depth: 3
|
|
ignore_parent_selectors: false
|
|
|
|
# To enable later
|
|
PlaceholderInExtend:
|
|
enabled: false
|
|
|
|
PrivateNamingConvention:
|
|
enabled: false
|
|
prefix: _
|
|
|
|
PropertyCount:
|
|
enabled: false
|
|
include_nested: false
|
|
max_properties: 10
|
|
|
|
PropertySortOrder:
|
|
enabled: false
|
|
ignore_unspecified: false
|
|
min_properties: 2
|
|
separate_groups: false
|
|
|
|
PropertySpelling:
|
|
enabled: true
|
|
extra_properties:
|
|
- scroll-padding
|
|
disabled_properties: []
|
|
|
|
# To enable later
|
|
PropertyUnits:
|
|
enabled: false
|
|
global: [
|
|
'ch', 'em', 'ex', 'rem', # Font-relative lengths
|
|
'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q', # Absolute lengths
|
|
'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
|
|
'deg', 'grad', 'rad', 'turn', # Angle
|
|
'ms', 's', # Duration
|
|
'Hz', 'kHz', # Frequency
|
|
'dpi', 'dpcm', 'dppx', # Resolution
|
|
'%'] # Other
|
|
properties: {}
|
|
|
|
PseudoElement:
|
|
enabled: false # otherwise rules on ::marker fails
|
|
|
|
# To enable later
|
|
QualifyingElement:
|
|
enabled: false
|
|
allow_element_with_attribute: false
|
|
allow_element_with_class: false
|
|
allow_element_with_id: false
|
|
|
|
# To enable later
|
|
SelectorDepth:
|
|
enabled: false
|
|
max_depth: 3
|
|
|
|
SelectorFormat:
|
|
enabled: true
|
|
# hyphenated_lowercase + any dsfr selector which are not hyphenated
|
|
convention: ^(?:fr-[^A-Z]+|[^_A-Z]+)$
|
|
|
|
Shorthand:
|
|
enabled: false
|
|
allowed_shorthands: [1, 2, 3, 4]
|
|
|
|
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: true
|
|
|
|
SpaceAfterVariableColon:
|
|
enabled: true
|
|
style: one_space
|
|
|
|
SpaceAfterVariableName:
|
|
enabled: true
|
|
|
|
SpaceAroundOperator:
|
|
enabled: true
|
|
style: one_space
|
|
|
|
SpaceBeforeBrace:
|
|
enabled: true
|
|
style: space
|
|
allow_single_line_padding: false
|
|
|
|
SpaceBetweenParens:
|
|
enabled: true
|
|
spaces: 0
|
|
|
|
StringQuotes:
|
|
enabled: true
|
|
style: double_quotes
|
|
|
|
TrailingSemicolon:
|
|
enabled: true
|
|
|
|
TrailingWhitespace:
|
|
enabled: true
|
|
|
|
TrailingZero:
|
|
enabled: true
|
|
|
|
# To enable later
|
|
TransitionAll:
|
|
enabled: false
|
|
|
|
UnnecessaryMantissa:
|
|
enabled: true
|
|
|
|
UnnecessaryParentReference:
|
|
enabled: true
|
|
|
|
UrlFormat:
|
|
enabled: true
|
|
|
|
UrlQuotes:
|
|
enabled: true
|
|
|
|
VariableForProperty:
|
|
enabled: false
|
|
properties: []
|
|
|
|
VendorPrefix:
|
|
enabled: true
|
|
identifier_list: base
|
|
additional_identifiers: []
|
|
excluded_identifiers: []
|
|
|
|
ZeroUnit:
|
|
enabled: false
|
|
|
|
Compass::*:
|
|
enabled: false
|