Add sass lint
This commit is contained in:
parent
c081a7a162
commit
00e49015d3
3 changed files with 66 additions and 1 deletions
63
.sass-lint.yml
Normal file
63
.sass-lint.yml
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
files:
|
||||||
|
include: 'static/src/scss/**/*.scss'
|
||||||
|
|
||||||
|
rules:
|
||||||
|
clean-import-paths: 0
|
||||||
|
extends-before-mixins: 2
|
||||||
|
extends-before-declarations: 2
|
||||||
|
force-attribute-nesting: 0
|
||||||
|
no-css-comments: 0
|
||||||
|
no-debug: 1
|
||||||
|
no-duplicate-properties:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
exclude:
|
||||||
|
- src
|
||||||
|
- transform
|
||||||
|
no-ids: 0
|
||||||
|
no-important: 0
|
||||||
|
no-transition-all: 0
|
||||||
|
no-vendor-prefixes: 2
|
||||||
|
no-qualifying-elements: 0
|
||||||
|
no-url-protocols: 0
|
||||||
|
no-warn: 1
|
||||||
|
hex-notation:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
style: uppercase
|
||||||
|
indentation:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
size: 2
|
||||||
|
variable-name-format:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
allow-leading-underscore: false
|
||||||
|
convention: hyphenatedlowercase
|
||||||
|
quotes:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
style: double
|
||||||
|
property-sort-order:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
order: 'concentric'
|
||||||
|
empty-line-between-blocks: 2
|
||||||
|
space-after-bang: 2
|
||||||
|
space-after-colon: 2
|
||||||
|
space-after-comma: 2
|
||||||
|
space-before-bang: 2
|
||||||
|
space-before-brace: 2
|
||||||
|
space-before-colon: 2
|
||||||
|
space-between-parens: 2
|
||||||
|
trailing-semicolon: 2
|
||||||
|
leading-zero: 0
|
||||||
|
single-line-per-selector: 0
|
||||||
|
force-pseudo-nesting: 0
|
||||||
|
force-element-nesting: 0
|
||||||
|
placeholder-in-extend: 0
|
||||||
|
no-url-domains: 0
|
||||||
|
nesting-depth:
|
||||||
|
- 2
|
||||||
|
-
|
||||||
|
max-depth: 5
|
1
Makefile
1
Makefile
|
@ -29,6 +29,7 @@ node_modules:
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
$(NODE_BIN)/sass-lint -vqc .sass-lint.yml
|
||||||
$(NODE_BIN)/eslint $(STATIC_SRC)/js --ignore-pattern *.min.js
|
$(NODE_BIN)/eslint $(STATIC_SRC)/js --ignore-pattern *.min.js
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "14.3.0",
|
"browserify": "14.3.0",
|
||||||
"eslint-config-dabapps": "github:dabapps/eslint-config-dabapps#v3.0.0",
|
"eslint-config-dabapps": "github:dabapps/eslint-config-dabapps#v3.0.0",
|
||||||
"node-sass": "4.5.2"
|
"node-sass": "4.5.2",
|
||||||
|
"sass-lint": "1.10.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "4.0.0-alpha.6",
|
"bootstrap": "4.0.0-alpha.6",
|
||||||
|
|
Loading…
Reference in a new issue