Commit 2b255463 authored by Aniket-Engg's avatar Aniket-Engg Committed by Aniket

linting fix

parent 4b83cb4f
...@@ -202,10 +202,10 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { ...@@ -202,10 +202,10 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
let column = 0 let column = 0
let row = 0 let row = 0
let fileName = currentFile let fileName = currentFile
if (item.sourceMap && item.sourceMap.length) { if (item.sourceMap && item.sourceMap.length) {
const fileIndex = Object.keys(lastCompilationResult.sources).indexOf(item.sourceMap[0].source_mapping.filename_relative) const fileIndex = Object.keys(lastCompilationResult.sources).indexOf(item.sourceMap[0].source_mapping.filename_relative)
if(fileIndex >=0 ) { if (fileIndex >= 0) {
location = { location = {
start: item.sourceMap[0].source_mapping.start, start: item.sourceMap[0].source_mapping.start,
length: item.sourceMap[0].source_mapping.length length: item.sourceMap[0].source_mapping.length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment