Skip to content
Permalink
Browse files

Add support for using sass-lint

Can be enabled like this with ALE @vim users:

let g:ale_linters = {
\   'python': ['pylint', 'pyls', 'mypy'],
\   'javascript': ['eslint'],
\   'scss': ['sasslint'],
\}

CMK-1567

Change-Id: Ic4e8f4ba01fb7e277a966c3bf3c6272cb3749d30
  • Loading branch information...
LarsMichelsen committed Feb 7, 2019
1 parent 8da2686 commit 1143e053aae335d88ce05c92eb6e37fcf0ff0594
Showing with 846 additions and 33 deletions.
  1. +148 −0 .sass-lint.yml
  2. +689 −30 package-lock.json
  3. +1 −0 package.json
  4. +6 −2 web/.f12
  5. +2 −1 webpack.config.js
@@ -0,0 +1,148 @@
## Documentation
# https://github.com/sasstools/sass-lint/tree/master/docs/rules

## Linter Options
options:
merge-default-rules: false

## Rule Configuration
rules:
bem-depth:
- 1
-
max-depth: 6
border-zero:
- 2
-
convention: 'none'
brace-style:
- 0
-
allow-single-line: false
clean-import-paths: 0
empty-line-between-blocks:
- 2
-
allow-single-line-rulesets: true
extends-before-mixins: 2
extends-before-declarations: 2
final-newline: 2
force-attribute-nesting: 0
force-element-nesting: 0
force-pseudo-nesting: 0
hex-length: 2
hex-notation:
- 2
-
style: lowercase
indentation:
- 2
-
size: 2
leading-zero:
- 0
-
include: true
mixins-before-declarations:
- 2
-
exclude:
- media
nesting-depth:
- 1
-
max-depth: 6
no-color-keywords: 2
no-color-literals:
- 0
-
allow-rgba: true
no-css-comments: 0
no-debug: 1
no-duplicate-properties:
- 1
-
exclude:
- src
no-empty-rulesets: 2
no-extends: 0
no-ids: 0
no-important: 1
no-invalid-hex: 2
no-mergeable-selectors: 0
no-misspelled-properties: 2
no-qualifying-elements:
- 2
-
allow-element-with-attribute: true
no-trailing-whitespace: 2
no-trailing-zero: 2
no-transition-all: 0
no-url-protocols: 2
no-vendor-prefixes: 1
no-warn: 0
one-declaration-per-line: 2
placeholder-in-extend: 0
property-sort-order:
- 1
-
order: 'recess'
property-units:
- 2
-
global: ['rem', 'vh', 'vw', '%', 's', 'em', 'px']
quotes:
- 2
-
style: double
shorthand-values: 2
single-line-per-selector: 0
space-after-bang: 2
space-after-colon: 2
space-after-comma: 2
space-around-operator: 2
space-before-bang: 2
space-before-brace: 2
space-before-colon: 2
space-between-parens: 2
trailing-semicolon: 2
url-quotes: 2
variable-for-property: 0
zero-unit: 2
# name formats
class-name-format:
- 2
-
allow-leading-underscore: false
convention: 'hyphenatedbem'
ignore:
- mod_cssanimations
- mod_csstransforms
- mod_supports
- mod_csstransforms3d
- mod_csstransitions
function-name-format:
- 2
-
allow-leading-underscore: false
convention: 'hyphenatedlowercase'
id-name-format:
- 2
-
allow-leading-underscore: false
convention: 'hyphenatedlowercase'
mixin-name-format:
- 0
-
allow-leading-underscore: false
convention: 'hyphenatedlowercase'
placeholder-name-format:
- 2
-
allow-leading-underscore: false
convention: 'hyphenatedlowercase'
variable-name-format:
- 0
-
allow-leading-underscore: false
convention: 'hyphenatedlowercase'
Oops, something went wrong.

0 comments on commit 1143e05

Please sign in to comment.
You can’t perform that action at this time.