Skip to content

Commit 0029905

Browse files
author
Ryan A. Johnson
committed
fix(linting): correct linting
1 parent aecc493 commit 0029905

File tree

9 files changed

+13
-14
lines changed

9 files changed

+13
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"generate": "bin/generate.js",
6161
"preghpages": "yarn generate",
6262
"ghpages": "bin/ghpages.js",
63-
"lint": "eslint -c .eslintrc.json source #FIXME",
63+
"lint": "eslint -c .eslintrc.json src",
6464
"postinstall": "cd test; yarn install; yarn run webdriver:update; cd -;",
6565
"postpublish": "yarn ghpages",
6666
"postversion": "yarn compile",

src/helix-ui/elements/HXElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class HXElement extends HTMLElement {
6161
$emit (evtName, details) {
6262
let evt = new CustomEvent(evtName, {
6363
bubbles: true,
64-
details: details
64+
details: details,
6565
});
6666
this.dispatchEvent(evt);
6767
}//$emit

src/helix-ui/elements/HXIconElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class HXIconElement extends HXElement {
2828
this._render();
2929
}
3030

31-
attributeChangedCallback (attr) {
31+
attributeChangedCallback () {
3232
this._render();
3333
}
3434

src/helix-ui/elements/HXTabElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class HXTabElement extends HXElement {
1212
}
1313

1414
static get observedAttributes () {
15-
return ['current'];
15+
return [ 'current' ];
1616
}
1717

1818
attributeChangedCallback (attr, oldVal, newVal) {

src/helix-ui/elements/HXTabpanelElement.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { HXElement } from './HXElement';
21
import { HXRevealElement } from './HXRevealElement';
32

43
export class HXTabpanelElement extends HXRevealElement {

src/helix-ui/elements/HXTabsetElement.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ export class HXTabsetElement extends HXElement {
2323
this.currentTab = Number(this.getAttribute('current-tab')) || 0;
2424
this.$tablist.addEventListener('keyup', this._onKeyUp);
2525
this.$tablist.addEventListener('keydown', this.$preventScroll);
26-
this.tabs.forEach( (tab) => {
26+
this.tabs.forEach(tab => {
2727
tab.addEventListener('click', this._onTabClick);
2828
});
2929
}
3030

3131
disconnectedCallback () {
3232
this.$tablist.removeEventListener('keyup', this._onKeyUp);
3333
this.$tablist.removeEventListener('keydown', this.$preventScroll);
34-
this.tabs.forEach( (tab) => {
34+
this.tabs.forEach(tab => {
3535
tab.removeEventListener('click', this._onTabClick);
3636
});
3737
}
@@ -52,12 +52,12 @@ export class HXTabsetElement extends HXElement {
5252
}
5353

5454
if (idx < 0 || idx >= this.tabs.length) {
55-
throw new RangeError(`'currentTab' index is out of bounds`);
55+
throw new RangeError('currentTab index is out of bounds');
5656
}
5757

5858
this._currentTab = idx;
5959

60-
this.tabs.forEach( (tab, tabIdx) => {
60+
this.tabs.forEach((tab, tabIdx) => {
6161
if (idx === tabIdx) {
6262
tab.current = true;
6363
tab.setAttribute('tabindex', 0);
@@ -68,7 +68,7 @@ export class HXTabsetElement extends HXElement {
6868
}
6969
});
7070

71-
this.tabpanels.forEach( (tabpanel, panelIdx) => {
71+
this.tabpanels.forEach((tabpanel, panelIdx) => {
7272
tabpanel.open = (idx === panelIdx);
7373
});
7474
}//SET:currentTab
@@ -121,7 +121,7 @@ export class HXTabsetElement extends HXElement {
121121
}
122122

123123
_setupIds () {
124-
this.tabs.forEach( (tab, idx) => {
124+
this.tabs.forEach((tab, idx) => {
125125
let tabpanel = this.tabpanels[idx];
126126
// Default tab and panel ID
127127
let tabId = `hxTab-${this.$generateId()}`;

src/helix-ui/icons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ export default {
120120
'times-circle': _timesCircle,
121121
'trash': _trash,
122122
'user': _user,
123-
}
123+
};

src/helix-ui/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ const DOM = Object.assign({}, elements, { HXElement });
3030
export default {
3131
DOM,
3232
initialize,
33-
}
33+
};

src/node-entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import { version as VERSION } from '../package.json';
33

44
HelixUI.VERSION = VERSION;
55

6-
export default HelixUI;
6+
export default HelixUI;

0 commit comments

Comments
 (0)