Skip to content

Commit

Permalink
Added the SassLint files
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Wells committed Apr 10, 2019
1 parent 86a699c commit 9728a5b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
34 changes: 32 additions & 2 deletions config/sass-lint.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,31 @@
options:
merge-default-rules: false

# File Ignores
files:
ignore:
- '/private/var/www/*/vendor/**/*.scss'

# Rule Configuration
rules:
border-zero:
- 2
-
convention: 'none'
brace-style:
- 2
-
style: 'stroustrup'
clean-import-paths: 2
clean-import-paths: 2
declarations-before-nesting: 2
empty-line-between-blocks:
- 2
-
include: false
allow-single-line-rulesets: false
extends-before-declarations: 2
extends-before-mixins: 2
final-newline: 2
final-newline: 1
indentation:
- 2
-
Expand All @@ -20,8 +35,15 @@ rules:
- 2
-
include: true
mixins-before-declarations: 2
nesting-depth:
- 2
-
max-depth: 3
no-color-keywords: 2
no-css-comments: 2
no-debug: 1
no-duplicate-properties: 2
no-empty-rulesets: 2
no-ids: 1
no-important: 1
Expand All @@ -32,14 +54,22 @@ rules:
extra-properties:
- 'touch-callout'
- 'overflow-scrolling'
no-url-domains: 1
no-vendor-prefixes: 1
no-warn: 1
one-declaration-per-line: 2
placeholder-in-extend: 2
pseudo-element: 2
quotes:
- 2
-
style: 'double'
single-line-per-selector: 2
space-after-colon: 2
space-after-comma: 2
space-around-operator: 2
space-before-bang: 2
space-before-brace: 2
space-between-parens: 2
trailing-semicolon: 2
zero-unit: 2
2 changes: 1 addition & 1 deletion helper/sass-lint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
module.exports = function(gulp, plugins, config, name, file) { // eslint-disable-line func-names
const theme = config.themes[name],
srcBase = config.projectPath + 'var/view_preprocessed/frontools' + theme.dest.replace('pub/static', ''),
srcBase = config.projectPath + 'app/design/frontend',
sassLintConfig = require('../helper/config-loader')('sass-lint.yml', plugins, config);

return gulp.src(file || plugins.globby.sync(srcBase + '/**/*.scss'))
Expand Down

0 comments on commit 9728a5b

Please sign in to comment.