Use jsdoc/multiline-blocks instead of multiline-comment-style
Replace multiline-comment-style (starred-block), which also forces multiline // comments into block comments, with jsdoc/multiline-blocks. That rule only enforces starred JSDoc layout for /** blocks (no text on the opening line) and leaves multiline // comments unchanged for internal documentation. Fix multiline JSDoc in Types.ts. Fixes #5899 Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
co-authored by
Daniel Imms
parent
4ec85e67ba
commit
df3422fb0b
@@ -416,13 +416,11 @@ test.describe('SerializeAddon', () => {
|
||||
'中文中文',
|
||||
'12中文',
|
||||
'中文12',
|
||||
/*
|
||||
* This line is going to be wrapped at last character
|
||||
* because it has line length of 11 (1+2*5).
|
||||
* We concat it back without the null cell currently.
|
||||
* But this may be incorrect.
|
||||
* see also #3097
|
||||
*/
|
||||
// This line is going to be wrapped at last character
|
||||
// because it has line length of 11 (1+2*5).
|
||||
// We concat it back without the null cell currently.
|
||||
// But this may be incorrect.
|
||||
// see also #3097
|
||||
'1中文中文中'
|
||||
];
|
||||
await ctx.proxy.write(lines.join('\r\n'));
|
||||
@@ -505,11 +503,9 @@ test.describe('SerializeAddon', () => {
|
||||
const MOVE_DOWN = (l: number): string => `\u001b[${l}B`;
|
||||
const MOVE_LEFT = (l: number): string => `\u001b[${l}D`;
|
||||
|
||||
/*
|
||||
* A line wrap happened after current line.
|
||||
* But there is no content.
|
||||
* so wrap shouldn't even be able to happen.
|
||||
*/
|
||||
// A line wrap happened after current line.
|
||||
// But there is no content.
|
||||
// so wrap shouldn't even be able to happen.
|
||||
const segments = [
|
||||
`123456789012345`,
|
||||
MOVE_UP(1),
|
||||
@@ -535,11 +531,9 @@ test.describe('SerializeAddon', () => {
|
||||
10
|
||||
);
|
||||
|
||||
/*
|
||||
* A line wrap happened after current line.
|
||||
* But there is no content.
|
||||
* so wrap shouldn't even be able to happen.
|
||||
*/
|
||||
// A line wrap happened after current line.
|
||||
// But there is no content.
|
||||
// so wrap shouldn't even be able to happen.
|
||||
const lines = [
|
||||
padLines.join('\r\n'),
|
||||
'\r\n',
|
||||
|
||||
Reference in New Issue
Block a user