mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Fix remaining tslint errors (YAY).
- Also updated ci.yml to ensure that linting failures will break the build. Fully fixes https://b.corp.google.com/issues/411384603
This commit is contained in:
parent
2a850ed051
commit
40e11e053c
21 changed files with 53 additions and 96 deletions
|
|
@ -85,7 +85,7 @@ interface DiffRendererProps {
|
|||
|
||||
const DEFAULT_TAB_WIDTH = 4; // Spaces per tab for normalization
|
||||
|
||||
const DiffRenderer: React.FC<DiffRendererProps> = ({
|
||||
export const DiffRenderer: React.FC<DiffRendererProps> = ({
|
||||
diffContent,
|
||||
tabWidth = DEFAULT_TAB_WIDTH,
|
||||
}) => {
|
||||
|
|
@ -157,6 +157,9 @@ const DiffRenderer: React.FC<DiffRendererProps> = ({
|
|||
dim = true;
|
||||
prefixSymbol = ' ';
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unknown line type: ${line.type}`);
|
||||
break;
|
||||
}
|
||||
|
||||
// Render the line content *after* stripping the calculated *minimum* baseIndentation.
|
||||
|
|
@ -179,5 +182,3 @@ const DiffRenderer: React.FC<DiffRendererProps> = ({
|
|||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default DiffRenderer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue