Updated readme and fixed linting errors
Change-Id: I185a961fcfbec37acadd3fc35d9cb6e71883c5ce
diff --git a/src/services/helpers/ui/label_formatter.service.js b/src/services/helpers/ui/label_formatter.service.js
index f23fea4..e01e772 100644
--- a/src/services/helpers/ui/label_formatter.service.js
+++ b/src/services/helpers/ui/label_formatter.service.js
@@ -62,7 +62,7 @@
* - _formatByUppercase
* - _capitalize
* - replace multiple space with a single one
- * - append `:` at the end
+ * - append `:` at the end
* <br/>
* Eg: `this_string` will became `This string:`<br/>
* Eg: `thisString` will became `This string:`
diff --git a/src/services/rest/Me.js b/src/services/rest/Me.js
index 5dd1043..fe3dfb1 100644
--- a/src/services/rest/Me.js
+++ b/src/services/rest/Me.js
@@ -7,7 +7,7 @@
* @name xos.helpers.Me
* @description Http read-only api to fetch /api/utility/me/
**/
- .service('Me', function($q,$http){
+ .service('Me', function($q, $http){
this.get = () => {
let deferred = $q.defer();
@@ -23,4 +23,4 @@
};
})
-})();
\ No newline at end of file
+})();
diff --git a/src/ui_components/smartComponents/smartTable/smartTable.component.js b/src/ui_components/smartComponents/smartTable/smartTable.component.js
index c2cb49f..d65884a 100644
--- a/src/ui_components/smartComponents/smartTable/smartTable.component.js
+++ b/src/ui_components/smartComponents/smartTable/smartTable.component.js
@@ -78,7 +78,7 @@
</example>
*/
- .component('xosSmartTable', {
+ .component('xosSmartTable', {
restrict: 'E',
bindings: {
config: '='
@@ -246,7 +246,7 @@
// build form structure
// TODO move in a pure function for testing purposes
- props.forEach((p, i) => {
+ props.forEach((p) => {
this.formConfig.fields[p] = {
label: LabelFormatter.format(p).replace(':', ''),
type: XosFormHelpers._getFieldFormat(item[p])
@@ -258,5 +258,5 @@
getData();
}
- });
-})();
\ No newline at end of file
+ });
+})();