reenabled @typescript-eslint/no-shadow

This commit is contained in:
Eugene Pankov
2021-01-02 20:53:34 +01:00
parent e36bad2553
commit e6bf76c616
8 changed files with 16 additions and 16 deletions

View File

@@ -58,8 +58,8 @@ findPlugins().then(async plugins => {
window['safeModeReason'] = error
try {
await bootstrap(plugins, true)
} catch (error) {
console.error('Bootstrap failed:', error)
} catch (error2) {
console.error('Bootstrap failed:', error2)
}
}
})

View File

@@ -3,13 +3,13 @@ import * as path from 'path'
const nodeModule = require('module') // eslint-disable-line @typescript-eslint/no-var-requires
const nodeRequire = (global as any).require
function normalizePath (path: string): string {
function normalizePath (p: string): string {
const cygwinPrefix = '/cygdrive/'
if (path.startsWith(cygwinPrefix)) {
path = path.substring(cygwinPrefix.length).replace('/', '\\')
path = path[0] + ':' + path.substring(1)
if (p.startsWith(cygwinPrefix)) {
p = p.substring(cygwinPrefix.length).replace('/', '\\')
p = p[0] + ':' + p.substring(1)
}
return path
return p
}
global['module'].paths.map((x: string) => nodeModule.globalPaths.push(normalizePath(x)))