2019-01-03 17:01:43 +01:00
|
|
|
files:
|
|
|
|
include:
|
2019-02-14 17:46:56 +01:00
|
|
|
- 'src/legacy/core_plugins/metrics/**/*.s+(a|c)ss'
|
|
|
|
- 'src/legacy/core_plugins/timelion/**/*.s+(a|c)ss'
|
2020-04-28 14:44:17 +02:00
|
|
|
- 'src/plugins/vis_type_vislib/**/*.s+(a|c)ss'
|
|
|
|
- 'src/plugins/vis_type_xy/**/*.s+(a|c)ss'
|
2020-05-06 02:52:56 +02:00
|
|
|
- 'x-pack/plugins/canvas/**/*.s+(a|c)ss'
|
2020-03-20 15:49:37 +01:00
|
|
|
- 'x-pack/plugins/triggers_actions_ui/**/*.s+(a|c)ss'
|
2020-04-15 12:22:37 +02:00
|
|
|
- 'x-pack/plugins/lens/**/*.s+(a|c)ss'
|
2020-04-22 16:15:25 +02:00
|
|
|
- 'x-pack/plugins/cross_cluster_replication/**/*.s+(a|c)ss'
|
2020-04-15 17:52:21 +02:00
|
|
|
- 'x-pack/legacy/plugins/maps/**/*.s+(a|c)ss'
|
|
|
|
- 'x-pack/plugins/maps/**/*.s+(a|c)ss'
|
2020-05-12 23:13:20 +02:00
|
|
|
- 'x-pack/plugins/spaces/**/*.s+(a|c)ss'
|
2020-06-05 08:11:58 +02:00
|
|
|
- 'x-pack/plugins/security/**/*.s+(a|c)ss'
|
2020-06-11 22:36:47 +02:00
|
|
|
- 'x-pack/plugins/monitoring/**/*.s+(a|c)ss'
|
2019-10-11 19:15:41 +02:00
|
|
|
ignore:
|
2020-05-06 02:52:56 +02:00
|
|
|
- 'x-pack/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss'
|
2019-01-03 17:01:43 +01:00
|
|
|
rules:
|
|
|
|
quotes:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- style: 'single'
|
2019-01-03 17:01:43 +01:00
|
|
|
# } else { style on one line, like our JS
|
|
|
|
brace-style:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- style: '1tbs'
|
2019-01-03 17:01:43 +01:00
|
|
|
variable-name-format:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- convention: 'camelcase'
|
2019-01-03 17:01:43 +01:00
|
|
|
# Needs regex, right now we ignore
|
|
|
|
class-name-format: 0
|
|
|
|
# Order how you please
|
|
|
|
property-sort-order: 0
|
|
|
|
hex-notation:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- style: 'uppercase'
|
2019-01-03 17:01:43 +01:00
|
|
|
mixin-name-format:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- allow-leading-underscore: false
|
2019-01-03 17:01:43 +01:00
|
|
|
convention: 'camelcase'
|
|
|
|
# Use none instead of 0 for no border
|
|
|
|
border-zero:
|
|
|
|
- 2
|
|
|
|
- convention: 'none'
|
|
|
|
force-element-nesting: 0
|
|
|
|
# something { not something{
|
|
|
|
space-before-brace:
|
|
|
|
- 2
|
|
|
|
force-pseudo-nesting: 0
|
|
|
|
# 2 spaces for indentation
|
|
|
|
indentation: 2
|
|
|
|
function-name-format:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- allow-leading-underscore: false
|
2019-01-03 17:01:43 +01:00
|
|
|
convention: 'camelcase'
|
|
|
|
# This removes the need for ::hover
|
|
|
|
pseudo-element: 0
|
|
|
|
# ($var / 2) rather than ($var/2)
|
|
|
|
space-around-operator: 2
|
|
|
|
# We minify css, so this doesn't apply
|
|
|
|
no-css-comments: 0
|
|
|
|
# We use _ (underscores) for import path that don't directly compile
|
|
|
|
clean-import-paths: 0
|
|
|
|
# Allows input[type=search]
|
|
|
|
force-attribute-nesting: 0
|
|
|
|
no-qualifying-elements:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- # Allows input[type=search]
|
2019-01-03 17:01:43 +01:00
|
|
|
allow-element-with-attribute: 1
|
|
|
|
# Files can end without a newline
|
|
|
|
final-newline: 0
|
|
|
|
# We use some rare duplicate property values for browser variance
|
|
|
|
no-duplicate-properties:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- exclude:
|
2019-01-03 17:01:43 +01:00
|
|
|
- 'font-size'
|
|
|
|
- 'word-break'
|
|
|
|
# Put a line-break between sections of CSS, but allow quicky one-liners for legibility
|
|
|
|
empty-line-between-blocks:
|
|
|
|
- 2
|
2019-08-30 00:56:53 +02:00
|
|
|
- allow-single-line-rulesets: 1
|
2019-01-03 17:01:43 +01:00
|
|
|
# Warns are nice for deprecations and development
|
|
|
|
no-warn: 0
|
|
|
|
# Transition all is useful in certain situations and there's no recent info to suggest slowdown
|
|
|
|
no-transition-all: 0
|