Skip to content

Instantly share code, notes, and snippets.

@mparker17
Last active August 24, 2018 16:04
Show Gist options
  • Save mparker17/4319ac3f3fa4c9e5d56c to your computer and use it in GitHub Desktop.
Save mparker17/4319ac3f3fa4c9e5d56c to your computer and use it in GitHub Desktop.
Ruby (with rbenv and Bundler), Sass, Compass (with config.rb), and scss-lint configuration for a Drupal 7 / 8 theme.
scss_files: 'scss/**/*.scss'
linters:
ImportantRule:
exclude:
- 'scss/_mixins.scss'
NestingDepth:
max_depth: 4
PropertySortOrder:
exclude:
- 'scss/_mixins.scss'
order: smacss
QualifyingElement:
allow_element_with_class: true
SelectorDepth:
max_depth: 5
#
# @file
# Compass Compass CSS Authoring Framework configuration.
#
require 'compass/import-once/activate'
http_path = "/themes/custom/EXAMPLE/"
css_dir = "css"
sass_dir = "scss"
images_dir = "images"
javascripts_dir = "js"
output_style = :expanded
relative_assets = true
line_comments = false
# frozen_string_literal: true
source "https://rubygems.org"
gem "sass"
gem "compass"
gem "scss_lint", require: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment