Skip to content

Instantly share code, notes, and snippets.

@webbertakken
Created March 8, 2018 16:13
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 webbertakken/0f18a41e2c7241365fd70a7164ca39a4 to your computer and use it in GitHub Desktop.
Save webbertakken/0f18a41e2c7241365fd70a7164ca39a4 to your computer and use it in GitHub Desktop.
Sass-lint configuration for Symfony 4
##
# Sass-lint configuration using rather strict rules
#
# Rules: https://github.com/sasstools/sass-lint/tree/master/docs/rules
#
# Author: WebberTakken <webber@takken.io>
##
options:
formatter: stylish
merge-default-rules: false
files:
include: 'assets/**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 2
extends-before-declarations: 2
placeholder-in-extend: 2
# Mixins
mixins-before-declarations: 2
# Line Spacing
one-declaration-per-line: 2
empty-line-between-blocks: 2
single-line-per-selector: 2
# Disallows
no-attribute-selectors: 0
no-color-hex: 0
no-color-keywords: 0
no-color-literals: 0
no-combinators: 0
no-css-comments: 0
no-debug: 2
no-disallowed-properties: 0
no-duplicate-properties: 2
no-empty-rulesets: 2
no-extends: 0
no-ids: 0
no-important: 1
no-invalid-hex: 2
no-mergeable-selectors: 2
no-misspelled-properties: 2
no-qualifying-elements:
- 2
- allow-element-with-id: 2
no-trailing-whitespace: 2
no-trailing-zero: 2
no-transition-all: 2
no-universal-selectors: 0
no-url-domains: 2
no-url-protocols: 2
no-vendor-prefixes: 2
no-warn: 0
property-units:
- 2
- global: ['em', 'rem', 'px', '%', 'vh', 'vw', 's']
# Nesting
declarations-before-nesting: 2
force-attribute-nesting: 2
force-element-nesting: 0
force-pseudo-nesting: 0
# Name Formats
class-name-format: 2
function-name-format: 2
id-name-format: 0
mixin-name-format: 2
placeholder-name-format: 2
variable-name-format: 2
# Style Guide
attribute-quotes: 2
bem-depth: 0
border-zero: 2
brace-style: 2
clean-import-paths: 2
empty-args: 2
hex-length:
- 2
- style: 'long'
hex-notation: 2
indentation: 2
leading-zero: 2
max-line-length: 0
max-file-line-count: 0
nesting-depth: 2
property-sort-order:
- 2
- order: 'concentric-css'
pseudo-element: 2
quotes: 0
shorthand-values: 2
url-quotes: 2
variable-for-property: 2
zero-unit: 2
# Inner Spacing
space-after-comma: 2
space-before-colon: 2
space-after-colon: 2
space-before-brace: 2
space-before-bang: 2
space-after-bang: 2
space-between-parens: 2
space-around-operator: 2
# Final Items
trailing-semicolon: 0
final-newline: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment