Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Install ember-cli-template-lint (#505)
Browse files Browse the repository at this point in the history
* Install ember-cli-template-lint

* disable rules that have errors for now

* fix {{each}} decprecations

* enable barestring linting

* translate final string
  • Loading branch information
billybonks authored and jkleinsc committed Jul 26, 2016
1 parent 02ca156 commit 6912d19
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .template-lintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* jshint node:true */
'use strict';

module.exports = {
extends: 'recommended',
rules:{
'block-indentation': false,
'html-comments': false,
'self-closing-void-elements':false,
'nested-interactive': false,
'bare-strings':true
}
};
4 changes: 2 additions & 2 deletions app/admin/query/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<h3 class="panel-title">Query Results</h3>
</div>
<div class="panel-body">
{{#each resultRows}}
{{#each resultRows as |resultRow|}}
<table class="table">
<tr class="table-header">
<th>Field</th>
<th>Value</th>
</tr>
{{#each this}}
{{#each resultRow as |result|}}
<tr>
<th>{{name}}</th>
<td>{{value}}</td>
Expand Down
2 changes: 1 addition & 1 deletion app/imaging/delete/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
updateButtonText=updateButtonText }}
<div class="alert alert-danger">
<span class="glyphicon glyphicon-warning-sign"></span>
Are you sure you wish to delete this imaging request?
{{t 'imaging.messages.delete'}}
</div>
{{/modal-dialog}}
1 change: 1 addition & 0 deletions app/locales/en/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ export default {
addNewVisit: '--Add New Visit--'
},
messages: {
delete: 'Are you sure you wish to delete this imaging request?',
noCompleted: 'No completed items found.'
},
titles: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"ember-cli-sass": "^5.2.1",
"ember-cli-sri": "^2.1.0",
"ember-cli-stylelint": "^0.2.1",
"ember-cli-template-lint": "0.4.11",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.6.0",
"ember-export-application-global": "^1.0.5",
Expand Down

0 comments on commit 6912d19

Please sign in to comment.