Permalink
Browse files

Add SASSLint makefile target, and run it in CI

Also move ESLint and SASSLint config files to a dedicated .dev folder
  • Loading branch information...
ArthurHoaro committed May 10, 2018
1 parent 9d0fc86 commit 03b483aa45ca994c0d75010e2008a8f0bfcf7ed3
Showing with 312 additions and 14 deletions.
  1. 0 { → .dev}/.eslintrc.js
  2. +15 −0 .dev/.sasslintrc
  3. +1 −1 .editorconfig
  4. +1 −0 .gitattributes
  5. +1 −0 .travis.yml
  6. +6 −2 Makefile
  7. +1 −0 package.json
  8. +287 −11 yarn.lock
File renamed without changes.
@@ -0,0 +1,15 @@
options:
max-warnings: 0
rules:
property-sort-order:
- 1
-
order: 'concentric'
no-important:
- 0
no-vendor-prefixes:
- 0 # this will be fixed with v2: see https://github.com/sasstools/sass-lint/pull/1137
nesting-depth:
- 1
-
max-depth: 4
@@ -10,7 +10,7 @@ trim_trailing_whitespace = true
indent_style = space
indent_size = 4
[*.{htaccess,html,js,json,xml,yml}]
[*.{htaccess,html,scss,js,json,xml,yml}]
indent_size = 2
[*.php]
@@ -26,6 +26,7 @@ Dockerfile text
# Exclude from Git archives
.editorconfig export-ignore
.dev export-ignore
.gitattributes export-ignore
.github export-ignore
.gitignore export-ignore
@@ -27,6 +27,7 @@ matrix:
script:
- yarn run build # Just to be sure that the build isn't broken
- make eslint
- make sasslint
cache:
directories:
@@ -218,5 +218,9 @@ translate:
### Run ESLint check against Shaarli's JS files
eslint:
@yarn run eslint assets/vintage/js/
@yarn run eslint assets/default/js/
@yarn run eslint -c .dev/.eslintrc.js assets/vintage/js/
@yarn run eslint -c .dev/.eslintrc.js assets/default/js/
### Run CSSLint check against Shaarli's SCSS files
sasslint:
@yarn run sass-lint -c .dev/.sasslintrc 'assets/default/scss/*.scss' -v -q
@@ -22,6 +22,7 @@
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.6",
"node-sass": "^4.7.2",
"sass-lint": "^1.12.1",
"sass-loader": "^6.0.6",
"style-loader": "^0.19.1",
"url-loader": "^0.6.2",
Oops, something went wrong.

0 comments on commit 03b483a

Please sign in to comment.