mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28: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
|
let cfgDir = process.env.XDG_CONFIG_HOME
|
||||||
? join(process.env.XDG_CONFIG_HOME, 'Hyper')
|
? join(process.env.XDG_CONFIG_HOME, 'Hyper')
|
||||||
: process.platform === 'win32'
|
: process.platform === 'win32'
|
||||||
? app.getPath('userData')
|
? app.getPath('userData')
|
||||||
: join(homeDirectory, '.config', 'Hyper');
|
: join(homeDirectory, '.config', 'Hyper');
|
||||||
|
|
||||||
const legacyCfgPath = join(
|
const legacyCfgPath = join(
|
||||||
process.env.XDG_CONFIG_HOME !== undefined
|
process.env.XDG_CONFIG_HOME !== undefined
|
||||||
? join(process.env.XDG_CONFIG_HOME, 'hyper')
|
? join(process.env.XDG_CONFIG_HOME, 'hyper')
|
||||||
: process.platform == 'win32'
|
: process.platform == 'win32'
|
||||||
? app.getPath('userData')
|
? app.getPath('userData')
|
||||||
: homedir(),
|
: homedir(),
|
||||||
'.hyper.js'
|
'.hyper.js'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ const registryUrl = registryUrlModule();
|
||||||
const applicationDirectory = process.env.XDG_CONFIG_HOME
|
const applicationDirectory = process.env.XDG_CONFIG_HOME
|
||||||
? path.join(process.env.XDG_CONFIG_HOME, 'Hyper')
|
? path.join(process.env.XDG_CONFIG_HOME, 'Hyper')
|
||||||
: process.platform === 'win32'
|
: process.platform === 'win32'
|
||||||
? path.join(process.env.APPDATA!, 'Hyper')
|
? path.join(process.env.APPDATA!, 'Hyper')
|
||||||
: path.join(os.homedir(), '.config', 'Hyper');
|
: path.join(os.homedir(), '.config', 'Hyper');
|
||||||
|
|
||||||
const devConfigFileName = path.join(__dirname, `../hyper.json`);
|
const devConfigFileName = path.join(__dirname, `../hyper.json`);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -150,8 +150,8 @@ const SearchBox = forwardRef<HTMLDivElement, SearchBoxProps>((props, ref) => {
|
||||||
{results === undefined
|
{results === undefined
|
||||||
? ''
|
? ''
|
||||||
: results.resultCount === 0
|
: results.resultCount === 0
|
||||||
? 'No results'
|
? 'No results'
|
||||||
: `${results.resultIndex + 1} of ${results.resultCount}`}
|
: `${results.resultIndex + 1} of ${results.resultCount}`}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div className="flex-row">
|
<div className="flex-row">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue