weareinreach / InReach

Local variable name shadows variable in outer scope JS-0123
Bug risk
Minor
10 days agoa year old
'nextConfig' is already declared in the upper scope on line 31 column 7
136 * @param {T} nextConfig
137 * @returns {T}
138 */
139const defineSentryConfig = (nextConfig) =>140	withSentryConfig(
141		nextConfig,
142		{
'path' is already declared in the upper scope on line 11 column 8
 25 * @param {string} path
 26 * @returns Full URL or relative path
 27 */
 28const getUrl = (path) => { 29	if (typeof path !== 'string') throw new Error('Path must be a string')
 30	const parsedPath = path.startsWith('/') ? path : `/${path}`
 31	if (typeof window !== 'undefined') return parsedPath // browser should use relative url