fix lint errors

This commit is contained in:
Labhansh Agrawal 2023-11-15 11:48:34 +05:30
parent cb65dd11f9
commit 947bf34650
3 changed files with 8 additions and 8 deletions

View file

@ -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'
); );

View file

@ -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`);

View file

@ -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">