[Fix #1747] Add a new editorconfig lint task
This commit is contained in:
parent
e8d51b93a9
commit
2edc882a29
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue