[Fix #1747] Add a new editorconfig lint task

This commit is contained in:
gregoirenovel 2018-09-20 14:35:20 +02:00
parent e8d51b93a9
commit 2edc882a29
2 changed files with 2 additions and 0 deletions

View file

@ -3,5 +3,6 @@ task :lint do
sh "bundle exec haml-lint app/views/"
sh "bundle exec scss-lint app/assets/stylesheets/"
sh "bundle exec brakeman --no-pager"
sh "yarn lint:ec"
sh "yarn lint:js"
end

View file

@ -23,6 +23,7 @@
"webpack-dev-server": "^3.1.4"
},
"scripts": {
"lint:ec": "eclint check $({ git ls-files ; find vendor -type f ; echo 'db/schema.rb' ; } | sort | uniq -u)",
"lint:js": "eslint ./app/javascript ./config/webpack"
},
"engines": {