Skip to content

Commit 8fd593c

Browse files
committed
Fix linting
1 parent 47ec114 commit 8fd593c

File tree

6 files changed

+92
-80
lines changed

6 files changed

+92
-80
lines changed

scripts/build-service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function build () {
4444
target: 'windows-x86-14.15.3', // from https://github.com/nexe/nexe/releases/tag/v3.3.3
4545
resources: [
4646
path.join(BUILD_DIR, 'web'), // Include web UI
47-
'src/service/data', // Include dynamically loaded JSON files
47+
'src/service/data' // Include dynamically loaded JSON files
4848
],
4949
debug: DEBUG_CONSOLE,
5050
build: false,

src/service/lib/event-handlers.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ const os = require('os')
22
const fs = require('fs')
33
const path = require('path')
44
const pjXML = require('pjxml')
5-
//const sendKeys = require('sendkeys-js')
6-
//onst keycode = require('keycodes')
5+
// const sendKeys = require('sendkeys-js')
6+
// onst keycode = require('keycodes')
77
const { UNKNOWN_VALUE } = require('../../shared/consts')
88

9-
//const TARGET_WINDOW_TITLE = 'Elite - Dangerous (CLIENT)'
9+
// const TARGET_WINDOW_TITLE = 'Elite - Dangerous (CLIENT)'
1010
const KEYBINDS_DIR = path.join(os.homedir(), 'AppData', 'Local', 'Frontier Developments', 'Elite Dangerous', 'Options', 'Bindings')
1111

1212
// Prefer Keybinds v4 file
@@ -72,7 +72,7 @@ class EventHandlers {
7272
getCmdrStatus: (args) => this.cmdrStatus.getCmdrStatus(args),
7373
getBlueprints: (args) => this.blueprints.getBlueprints(args),
7474
getNavRoute: (args) => this.navRoute.getNavRoute(args),
75-
toggleSwitch: async ({switchName}) => {
75+
toggleSwitch: async ({ switchName }) => {
7676
return false
7777
/*
7878
// TODO Refactor this out into a dedicated library
@@ -112,7 +112,7 @@ class EventHandlers {
112112
}
113113
}
114114
115-
// If the secondary key is a single keystroke (with modifer) and the
115+
// If the secondary key is a single keystroke (with modifer) and the
116116
// primary key is not then prefer the secondary key as it's more
117117
// likely to work as it won't have to rely on special key mapping.
118118
if (primaryKey && secondaryKey && primaryKey.length > 1 && !secondaryElementModifier) {
@@ -123,7 +123,7 @@ class EventHandlers {
123123
// TODO Support Control and Alt modifiers
124124
if (modifierKey?.toLowerCase()?.includes('shift')) modifierKey = 'shift'
125125
126-
const keyAsKeycode = convertKeyToKeycode(keyToSend)
126+
const keyAsKeycode = convertKeyToKeycode(keyToSend)
127127
//const modifierKeyAsKeycode = keycode.codes[modifierKey?.toLowerCase()]
128128
129129
console.log('KEYBINDS_MAP[switchName]', switchName, KEYBINDS_MAP[switchName])

src/web/components/panels/nav/navigation-system-map-panel.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export default function NavigationSystemMapPanel ({ system, systemObject, setSys
2626
</div>
2727
<div id='navigation-panel__map-background' className='navigation-panel__map-background'>
2828
<div className='navigation-panel__map-frame'>
29-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-left'/>
30-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-right'/>
31-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-left'/>
32-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-right'/>
29+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-left' />
30+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-right' />
31+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-left' />
32+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-right' />
3333
</div>
3434
<div id='navigation-panel__map-foreground' className='navigation-panel__map-foreground scrollable'>
3535
<SystemMap system={system} setSystemObject={setSystemObject} />
@@ -49,10 +49,10 @@ export default function NavigationSystemMapPanel ({ system, systemObject, setSys
4949
<div className={`navigation-panel__map ${systemObject ? 'navigation-panel__map--inspector' : ''}`}>
5050
<div id='navigation-panel__map-background' className='navigation-panel__map-background'>
5151
<div className='navigation-panel__map-frame'>
52-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-left'/>
53-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-right'/>
54-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-left'/>
55-
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-right'/>
52+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-left' />
53+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-top-right' />
54+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-left' />
55+
<div className='navigation-panel__map-frame-border navigation-panel__map-frame-border-bottom-right' />
5656
</div>
5757
<div id='navigation-panel__map-foreground' className='navigation-panel__map-foreground scrollable'>
5858
<SystemMap system={system} setSystemObject={setSystemObject} />
@@ -98,7 +98,7 @@ export default function NavigationSystemMapPanel ({ system, systemObject, setSys
9898
{system.megaships.length > 0 && <span className='system-map__info-icon'><i className='icon icarus-terminal-megaship' /><span className='count'>{system.megaships.length}</span></span>}
9999
{system.planetaryPorts.length > 0 && <span className='system-map__info-icon'><i className='icon icarus-terminal-planetary-port' /><span className='count'>{system.planetaryPorts.length}</span></span>}
100100
{system.settlements.length > 0 && <span className='system-map__info-icon'><i className='icon icarus-terminal-settlement' /><span className='count'>{system.settlements.length}</span></span>}
101-
</h3>
101+
</h3>
102102
: <h3 className='text-secondary text-muted'>No known stations or settlements</h3>}
103103
</div>
104104
</div>

src/web/components/panels/nav/system-map.js

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default function SystemMap ({ system, setSystemObject }) {
5757
factionStateDescription = factionStates[factionState].description
5858
return true
5959
}
60+
return false
6061
})
6162
}
6263

0 commit comments

Comments
 (0)