diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-21 00:31:47 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-20 17:31:47 +0200 |
commit | 2e112e240666b62b8c3d4fa201fb24b841f6c92b (patch) | |
tree | f95f2eb5ae8156c10bf16894919d0ba5e3f34096 /app/javascript/packs | |
parent | 812fe90ecaef58f1dbe16c3fdfea79e14e7bbc9d (diff) |
Improve eslint rules (#3147)
* Add semi to ESLint rules * Add padded-blocks to ESLint rules * Add comma-dangle to ESLint rules * add config/webpack and storyboard * add streaming/ * yarn test:lint -- --fix
Diffstat (limited to 'app/javascript/packs')
-rw-r--r-- | app/javascript/packs/application.js | 2 | ||||
-rw-r--r-- | app/javascript/packs/public.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index ea5b9f8f7..ca6b476e1 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -4,7 +4,7 @@ if (!window.Intl || !Object.assign || !Number.isNaN || !window.Symbol || !Array.prototype.includes) { // load polyfills dynamically import('../mastodon/polyfills').then(main).catch(e => { - console.error(e) // eslint-disable-line no-console + console.error(e); // eslint-disable-line no-console }); } else { main(); diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index 3bd7d7cf0..19dd7fdee 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -96,12 +96,12 @@ document.addEventListener('DOMContentLoaded', () => { }); delegate(document, '.account_display_name', 'input', ({ target }) => { - const [nameCounter, ] = document.getElementsByClassName('name-counter'); + const [nameCounter ] = document.getElementsByClassName('name-counter'); nameCounter.textContent = 30 - length(target.value); }); delegate(document, '.account_note', 'input', ({ target }) => { - const [noteCounter, ] = document.getElementsByClassName('note-counter'); + const [noteCounter ] = document.getElementsByClassName('note-counter'); noteCounter.textContent = 160 - length(target.value); }); }); |