mirror of
https://github.com/WilliamsNY/linter-configs.git
synced 2024-11-09 19:46:39 -05:00
457 lines
9.1 KiB
YAML
457 lines
9.1 KiB
YAML
# Default application configuration that all configurations inherit from.
|
|
|
|
scss_files: "**/*.scss"
|
|
plugin_directories: ['.scss-linters']
|
|
|
|
# List of gem names to load custom linters from (make sure they are already
|
|
# installed)
|
|
plugin_gems: []
|
|
|
|
# Default severity of all linters.
|
|
severity: warning
|
|
|
|
linters:
|
|
BangFormat:
|
|
enabled: true
|
|
space_before_bang: true
|
|
space_after_bang: false
|
|
|
|
BemDepth:
|
|
enabled: false
|
|
max_elements: 1
|
|
|
|
BorderZero:
|
|
enabled: true
|
|
convention: zero # or `none`
|
|
|
|
ChainedClasses:
|
|
enabled: false
|
|
|
|
ColorKeyword:
|
|
enabled: true
|
|
|
|
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 # or 'new_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 # or 'long'
|
|
|
|
HexNotation:
|
|
enabled: true
|
|
style: lowercase # or 'uppercase'
|
|
|
|
HexValidation:
|
|
enabled: true
|
|
|
|
IdSelector:
|
|
enabled: false
|
|
|
|
ImportantRule:
|
|
enabled: false
|
|
|
|
ImportPath:
|
|
enabled: false
|
|
leading_underscore: false
|
|
filename_extension: false
|
|
|
|
Indentation:
|
|
enabled: true
|
|
allow_non_nested_indentation: false
|
|
character: space # or 'tab'
|
|
width: 4
|
|
|
|
LeadingZero:
|
|
enabled: true
|
|
style: include_zero # or 'include_zero'
|
|
|
|
MergeableSelector:
|
|
enabled: true
|
|
force_nesting: true
|
|
|
|
NameFormat:
|
|
enabled: true
|
|
allow_leading_underscore: true
|
|
convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern
|
|
|
|
NestingDepth:
|
|
enabled: true
|
|
max_depth: 8
|
|
ignore_parent_selectors: false
|
|
|
|
PlaceholderInExtend:
|
|
enabled: false
|
|
|
|
PrivateNamingConvention:
|
|
enabled: false
|
|
prefix: _
|
|
|
|
PropertyCount:
|
|
enabled: false
|
|
include_nested: false
|
|
max_properties: 10
|
|
|
|
PropertySortOrder:
|
|
enabled: true
|
|
ignore_unspecified: false
|
|
min_properties: 2
|
|
separate_groups: false
|
|
order:
|
|
- all
|
|
- content
|
|
- resize
|
|
- empty-cells
|
|
- float
|
|
- clear
|
|
- shape-image-threshold
|
|
- shape-margin
|
|
- shape-outside
|
|
- overflow
|
|
- overflow-x
|
|
- overflow-y
|
|
- z-index
|
|
- position
|
|
- top
|
|
- right
|
|
- bottom
|
|
- left
|
|
- transform
|
|
- transform-origin
|
|
- transform-style
|
|
- perspective
|
|
- perspective-origin
|
|
- backface-visibility
|
|
- margin
|
|
- margin-top
|
|
- margin-right
|
|
- margin-bottom
|
|
- margin-left
|
|
- visibility
|
|
- display
|
|
- box-sizing
|
|
- width
|
|
- min-width
|
|
- max-width
|
|
- height
|
|
- min-height
|
|
- max-height
|
|
- padding
|
|
- padding-top
|
|
- padding-right
|
|
- padding-bottom
|
|
- padding-left
|
|
- grid-gap
|
|
- grid-area
|
|
- grid-row
|
|
- grid-row-start
|
|
- grid-row-end
|
|
- grid-row-gap
|
|
- grid-column
|
|
- grid-column-start
|
|
- grid-column-end
|
|
- grid-column-gap
|
|
- grid-auto-rows
|
|
- grid-auto-flow
|
|
- grid-template
|
|
- grid-template-areas
|
|
- grid-template-rows
|
|
- grid-template-columns
|
|
- flex
|
|
- flex-basis
|
|
- flex-direction
|
|
- flex-flow
|
|
- flex-grow
|
|
- flex-shrink
|
|
- flex-wrap
|
|
- order
|
|
- justify-content
|
|
- align-content
|
|
- align-items
|
|
- align-self
|
|
- columns
|
|
- column-width
|
|
- column-count
|
|
- column-gap
|
|
- column-rule
|
|
- column-rule-color
|
|
- column-rule-style
|
|
- column-rule-width
|
|
- column-fill
|
|
- column-span
|
|
- caption-side
|
|
- table-layout
|
|
- vertical-align
|
|
- outline
|
|
- outline-width
|
|
- outline-color
|
|
- outline-style
|
|
- outline-offset
|
|
- border
|
|
- border-width
|
|
- border-color
|
|
- border-style
|
|
- border-top
|
|
- border-top-width
|
|
- border-top-color
|
|
- border-top-style
|
|
- border-right
|
|
- border-right-width
|
|
- border-right-color
|
|
- border-right-style
|
|
- border-bottom
|
|
- border-bottom-width
|
|
- border-bottom-color
|
|
- border-bottom-style
|
|
- border-left
|
|
- border-left-width
|
|
- border-left-color
|
|
- border-left-style
|
|
- border-radius
|
|
- border-top-right-radius
|
|
- border-top-left-radius
|
|
- border-bottom-right-radius
|
|
- border-bottom-left-radius
|
|
- border-image
|
|
- border-image-source
|
|
- border-image-width
|
|
- border-image-outset
|
|
- border-image-repeat
|
|
- border-image-slice
|
|
- border-collapse
|
|
- border-spacing
|
|
- box-shadow
|
|
- clip
|
|
- clip-path
|
|
- mask
|
|
- mask-position
|
|
- mask-size
|
|
- object-position
|
|
- background
|
|
- background-color
|
|
- background-image
|
|
- background-position
|
|
- background-origin
|
|
- background-size
|
|
- background-clip
|
|
- background-repeat
|
|
- background-attachment
|
|
- background-blend-mode
|
|
- color
|
|
- font
|
|
- font-family
|
|
- font-size
|
|
- font-size-adjust
|
|
- font-stretch
|
|
- font-style
|
|
- font-variant
|
|
- font-weight
|
|
- quotes
|
|
- tab-size
|
|
- letter-spacing
|
|
- line-height
|
|
- word-break
|
|
- word-spacing
|
|
- word-wrap
|
|
- white-space
|
|
- direction
|
|
- unicode-bidi
|
|
- break-after
|
|
- page-break-after
|
|
- break-before
|
|
- page-break-before
|
|
- break-inside
|
|
- page-break-inside
|
|
- text-align
|
|
- text-align-last
|
|
- text-justify
|
|
- text-indent
|
|
- text-overflow
|
|
- text-transform
|
|
- text-decoration
|
|
- text-decoration-color
|
|
- text-decoration-style
|
|
- text-decoration-line
|
|
- text-shadow
|
|
- text-emphasis
|
|
- text-emphasis-color
|
|
- filter
|
|
- opacity
|
|
- transition
|
|
- transition-delay
|
|
- transition-duration
|
|
- transition-property
|
|
- transition-timing-function
|
|
- animation
|
|
- animation-delay
|
|
- animation-direction
|
|
- animation-duration
|
|
- animation-fill-mode
|
|
- animation-iteration-count
|
|
- animation-name
|
|
- animation-play-state
|
|
- animation-timing-function
|
|
- list-style
|
|
- list-style-type
|
|
- list-style-position
|
|
- list-style-image
|
|
- counter-increment
|
|
- counter-reset
|
|
- scroll-snap-type
|
|
- scroll-snap-coordinate
|
|
- scroll-snap-destination
|
|
- cursor
|
|
|
|
PropertySpelling:
|
|
enabled: true
|
|
extra_properties: []
|
|
disabled_properties: []
|
|
|
|
PropertyUnits:
|
|
enabled: true
|
|
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
|
|
|
|
QualifyingElement:
|
|
enabled: true
|
|
allow_element_with_attribute: false
|
|
allow_element_with_class: false
|
|
allow_element_with_id: false
|
|
|
|
SelectorDepth:
|
|
enabled: true
|
|
max_depth: 10
|
|
|
|
SelectorFormat:
|
|
enabled: true
|
|
convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern
|
|
|
|
Shorthand:
|
|
enabled: false
|
|
allowed_shorthands: [1, 2, 3]
|
|
|
|
SingleLinePerProperty:
|
|
enabled: true
|
|
allow_single_line_rule_sets: true
|
|
|
|
SingleLinePerSelector:
|
|
enabled: false
|
|
|
|
SpaceAfterComma:
|
|
enabled: true
|
|
style: one_space # or 'no_space', or 'at_least_one_space'
|
|
|
|
SpaceAfterPropertyColon:
|
|
enabled: true
|
|
style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned'
|
|
|
|
SpaceAfterPropertyName:
|
|
enabled: true
|
|
|
|
SpaceAfterVariableColon:
|
|
enabled: false
|
|
style: one_space # or 'no_space', 'at_least_one_space' or 'one_space_or_newline'
|
|
|
|
SpaceAfterVariableName:
|
|
enabled: true
|
|
|
|
SpaceAroundOperator:
|
|
enabled: true
|
|
style: one_space # or 'at_least_one_space', or 'no_space'
|
|
|
|
SpaceBeforeBrace:
|
|
enabled: true
|
|
style: space # or 'new_line'
|
|
allow_single_line_padding: false
|
|
|
|
SpaceBetweenParens:
|
|
enabled: true
|
|
spaces: 0
|
|
|
|
StringQuotes:
|
|
enabled: true
|
|
style: double_quotes # or double_quotes
|
|
|
|
TrailingSemicolon:
|
|
enabled: true
|
|
|
|
TrailingWhitespace:
|
|
enabled: true
|
|
|
|
TrailingZero:
|
|
enabled: false
|
|
|
|
TransitionAll:
|
|
enabled: false
|
|
|
|
UnnecessaryMantissa:
|
|
enabled: true
|
|
|
|
UnnecessaryParentReference:
|
|
enabled: true
|
|
|
|
UrlFormat:
|
|
enabled: true
|
|
|
|
UrlQuotes:
|
|
enabled: true
|
|
|
|
VariableForProperty:
|
|
enabled: false
|
|
properties: []
|
|
|
|
VendorPrefix:
|
|
enabled: false
|
|
identifier_list: base
|
|
additional_identifiers: []
|
|
excluded_identifiers: []
|
|
|
|
ZeroUnit:
|
|
enabled: false
|
|
|
|
Compass::*:
|
|
enabled: false
|