diff --git a/.eslintrc.yml b/.eslintrc.yml index 93da6cf80156e64e5bcb07fb5edc4adf920529c0..890fd46d1ce09362b44f5e3cb2887741d7ac38fb 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -86,3 +86,8 @@ rules: - as-needed - keywords: true numbers: true + quotes: off + '@typescript-eslint/quotes': + - error + - single + - allowTemplateLiterals: true diff --git a/terminus-terminal/src/frontends/xtermFrontend.ts b/terminus-terminal/src/frontends/xtermFrontend.ts index c8425ac3ecee934c65730185e7ffff11798a7aca..0d3b8acd0c2bba828fc932b880093905ce00bd0b 100644 --- a/terminus-terminal/src/frontends/xtermFrontend.ts +++ b/terminus-terminal/src/frontends/xtermFrontend.ts @@ -87,11 +87,11 @@ export class XTermFrontend extends Frontend { try { if (this.xtermCore.element && getComputedStyle(this.xtermCore.element).getPropertyValue('height') !== 'auto') { let t = window.getComputedStyle(this.xtermCore.element.parentElement) - let r = parseInt(t.getPropertyValue("height")) - let n = Math.max(0, parseInt(t.getPropertyValue("width"))) + let r = parseInt(t.getPropertyValue('height')) + let n = Math.max(0, parseInt(t.getPropertyValue('width'))) let o = window.getComputedStyle(this.xtermCore.element) - let i = r - (parseInt(o.getPropertyValue("padding-top")) + parseInt(o.getPropertyValue("padding-bottom"))) - let l = n - (parseInt(o.getPropertyValue("padding-right")) + parseInt(o.getPropertyValue("padding-left"))) - this.xtermCore.viewport.scrollBarWidth + let i = r - (parseInt(o.getPropertyValue('padding-top')) + parseInt(o.getPropertyValue('padding-bottom'))) + let l = n - (parseInt(o.getPropertyValue('padding-right')) + parseInt(o.getPropertyValue('padding-left'))) - this.xtermCore.viewport.scrollBarWidth let actualCellWidth = this.xtermCore._renderService.dimensions.actualCellWidth || 9 let actualCellHeight = this.xtermCore._renderService.dimensions.actualCellHeight || 17 let cols = Math.floor(l / actualCellWidth) diff --git a/terminus-terminal/src/index.ts b/terminus-terminal/src/index.ts index ce377213ed4b87b782678f59d649de3bdeaa070a..c7c3d51e51fe8658f3cf16b54c27e544ca8070fd 100644 --- a/terminus-terminal/src/index.ts +++ b/terminus-terminal/src/index.ts @@ -162,7 +162,7 @@ export default class TerminalModule { // eslint-disable-line @typescript-eslint/ argv = argv.slice(1) } - if(require('yargs').parse(argv.slice(1))._[0] !== "open"){ + if(require('yargs').parse(argv.slice(1))._[0] !== 'open'){ app.ready$.subscribe(() => { terminal.openTab() })