Skip to content

Commit

Permalink
Lint fixes :(
Browse files Browse the repository at this point in the history
  • Loading branch information
EMH333 committed Sep 5, 2023
1 parent 2180995 commit 48777f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
27 changes: 14 additions & 13 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,23 @@ const convertMessage = ({ message, start, end, filename, frame }: Warning) => ({
text: message,
location: start &&
end && {
file: filename,
line: start.line,
column: start.column,
length: start.line === end.line ? end.column - start.column : 0,
lineText: frame,
},
file: filename,
line: start.line,
column: start.column,
length: start.line === end.line ? end.column - start.column : 0,
lineText: frame,
},
});

//still support old incremental option if possible, but can still be overriden by cache option
const shouldCache = (build: (PluginBuild & {
initialOptions: {
incremental?: boolean;
watch?: boolean;
}
})) =>
build.initialOptions?.incremental || build.initialOptions?.watch;
const shouldCache = (
build: PluginBuild & {
initialOptions: {
incremental?: boolean;
watch?: boolean;
};
},
) => build.initialOptions?.incremental || build.initialOptions?.watch;

// TODO: Hot fix to replace broken e64enc function in svelte on node 16
const b64enc = Buffer
Expand Down
2 changes: 1 addition & 1 deletion test/watchPreprocessingTest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test("Watch and build while preprocess of external dependency succeed and fails"
}
});
},
}
},
],
});

Expand Down

0 comments on commit 48777f1

Please sign in to comment.