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

Replace jshint with eslint. Closes #596 and closes #601. #724

Merged
merged 4 commits into from
Oct 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},

extends: 'eslint:recommended',

env: {
'browser': true
},

globals: {
'$': true,
'Bloodhound': true,
'dymo': true,
'Filer': true,
'logDebug': true,
'moment': true,
'Pikaday': true,
'PouchDB': true,
'Promise': true,
'toolbox': true,
'Uint8Array': true,
'uuid': true
},

rules: {
'no-console': 0
}
};
15 changes: 0 additions & 15 deletions .jscsrc

This file was deleted.

48 changes: 0 additions & 48 deletions .jshintrc

This file was deleted.

1 change: 0 additions & 1 deletion app/mixins/patient-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default Ember.Mixin.create({
} else {
return 'Post-op';
}
break;
case 'Clinic':
case 'Followup':
return 'General';
Expand Down
2 changes: 0 additions & 2 deletions app/patients/reports/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,13 @@ export default AbstractReportController.extend(PatientDiagnosis, PatientVisits,

_contactListToString: function(patient) {
let additionalContacts = patient.get('additionalContacts'),
contactArray = [],
contactDesc,
contactList = [],
email = patient.get('email'),
phone = patient.get('phone');
this._addContactToList(phone, email, 'Primary: ', contactList);
if (!Ember.isEmpty(additionalContacts)) {
additionalContacts.forEach(function(contact) {
contactArray = [];
contactDesc = '';
if (!Ember.isEmpty(contact.name) && !Ember.isEmpty(contact.relationship)) {
if (!Ember.isEmpty(contact.name)) {
Expand Down
1 change: 0 additions & 1 deletion app/utils/pouch-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ let designDocs = [{
} else {
return startDiff;
}
break;
}
case 'status': {
let aStatus = defaultStatus(a.doc.data[sortBy]),
Expand Down
4 changes: 0 additions & 4 deletions lib/.jshintrc

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"ember-cli-content-security-policy": "0.5.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-deprecation-workflow": "0.2.3",
"ember-cli-eslint": "3.0.0",
"ember-cli-fake-server": "0.3.1",
"ember-cli-htmlbars": "^1.0.8",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-jshint": "^2.0.1",
"ember-cli-qunit": "^3.0.0",
"ember-cli-release": "^0.2.9",
"ember-cli-sass": "^5.2.1",
Expand All @@ -70,9 +70,9 @@
"ember-resolver": "^2.0.3",
"ember-select-list": "0.9.5",
"ember-simple-auth": "^1.1.0",
"ember-suave": "4.0.1",
"ember-truth-helpers": "1.2.0",
"ember-validations": "2.0.0-alpha.5",
"eslint-plugin-ember-suave": "^1.0.0",
"express": "^4.8.5",
"glob": "^7.1.0",
"hospitalrun-dblisteners": "0.9.5",
Expand Down
3 changes: 0 additions & 3 deletions server/.jshintrc

This file was deleted.

24 changes: 24 additions & 0 deletions tests/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
env: {
'embertest': true
},

globals: {
'$': true,
'authenticateUser': true,
'invalidateSession': true,
'moment': true,
'require': true,
'runWithPouchDump': true,
'select': true,
'selectDate': true,
'typeAheadFillIn': true,
'wait': true,
'waitToAppear': true,
'waitToDisappear': true
},

rules: {
'no-console': 0
}
};
63 changes: 0 additions & 63 deletions tests/.jshintrc

This file was deleted.