Wrap case statement to fix eslint issue

This commit is contained in:
Rob Garrison 2017-07-14 04:42:55 -05:00
parent 81484bbc37
commit 11d8687af7

View File

@ -299,8 +299,7 @@ function acmeEventListener(event) {
case 'tabSize': case 'tabSize':
CodeMirror.setOption('indentUnit', Number(value)); CodeMirror.setOption('indentUnit', Number(value));
break; break;
/* eslint-disable no-case-declarations */ case 'theme': {
case 'theme':
const themeLink = document.getElementById('cm-theme'); const themeLink = document.getElementById('cm-theme');
// use non-localized 'default' internally // use non-localized 'default' internally
if (!value || value == 'default' || value == t('defaultTheme')) { if (!value || value == 'default' || value == t('defaultTheme')) {
@ -327,7 +326,7 @@ function acmeEventListener(event) {
}, 100); }, 100);
})(); })();
return; return;
/* eslint-enable no-case-declarations */ }
case 'autocompleteOnTyping': case 'autocompleteOnTyping':
editors.forEach(cm => { editors.forEach(cm => {
const onOff = el.checked ? 'on' : 'off'; const onOff = el.checked ? 'on' : 'off';