mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fix lint errors
This commit is contained in:
parent
cb65dd11f9
commit
947bf34650
3 changed files with 8 additions and 8 deletions
|
|
@ -17,15 +17,15 @@ const homeDirectory = homedir();
|
|||
let cfgDir = process.env.XDG_CONFIG_HOME
|
||||
? join(process.env.XDG_CONFIG_HOME, 'Hyper')
|
||||
: process.platform === 'win32'
|
||||
? app.getPath('userData')
|
||||
: join(homeDirectory, '.config', 'Hyper');
|
||||
? app.getPath('userData')
|
||||
: join(homeDirectory, '.config', 'Hyper');
|
||||
|
||||
const legacyCfgPath = join(
|
||||
process.env.XDG_CONFIG_HOME !== undefined
|
||||
? join(process.env.XDG_CONFIG_HOME, 'hyper')
|
||||
: process.platform == 'win32'
|
||||
? app.getPath('userData')
|
||||
: homedir(),
|
||||
? app.getPath('userData')
|
||||
: homedir(),
|
||||
'.hyper.js'
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ const registryUrl = registryUrlModule();
|
|||
const applicationDirectory = process.env.XDG_CONFIG_HOME
|
||||
? path.join(process.env.XDG_CONFIG_HOME, 'Hyper')
|
||||
: process.platform === 'win32'
|
||||
? path.join(process.env.APPDATA!, 'Hyper')
|
||||
: path.join(os.homedir(), '.config', 'Hyper');
|
||||
? path.join(process.env.APPDATA!, 'Hyper')
|
||||
: path.join(os.homedir(), '.config', 'Hyper');
|
||||
|
||||
const devConfigFileName = path.join(__dirname, `../hyper.json`);
|
||||
|
||||
|
|
|
|||
|
|
@ -150,8 +150,8 @@ const SearchBox = forwardRef<HTMLDivElement, SearchBoxProps>((props, ref) => {
|
|||
{results === undefined
|
||||
? ''
|
||||
: results.resultCount === 0
|
||||
? 'No results'
|
||||
: `${results.resultIndex + 1} of ${results.resultCount}`}
|
||||
? 'No results'
|
||||
: `${results.resultIndex + 1} of ${results.resultCount}`}
|
||||
</span>
|
||||
|
||||
<div className="flex-row">
|
||||
|
|
|
|||
Loading…
Reference in a new issue