build(deps-dev): bump eslint from 8.57.1 to 9.13.0 (#2792)
* build(deps-dev): bump eslint from 8.57.1 to 9.13.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.13.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.13.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade EsLint * Fix all new lint errors --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
This commit is contained in:
@ -17,14 +17,14 @@ import { decimalNumber } from "@util/values";
|
||||
// </xsd:sequence>
|
||||
// </xsd:complexType>
|
||||
|
||||
export interface ITableCellBorders {
|
||||
export type ITableCellBorders = {
|
||||
readonly top?: IBorderOptions;
|
||||
readonly start?: IBorderOptions;
|
||||
readonly left?: IBorderOptions;
|
||||
readonly bottom?: IBorderOptions;
|
||||
readonly end?: IBorderOptions;
|
||||
readonly right?: IBorderOptions;
|
||||
}
|
||||
};
|
||||
|
||||
export class TableCellBorders extends IgnoreIfEmptyXmlComponent {
|
||||
public constructor(options: ITableCellBorders) {
|
||||
@ -113,11 +113,8 @@ export class VerticalMerge extends XmlComponent {
|
||||
}
|
||||
|
||||
export const TextDirection = {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr",
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb",
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl",
|
||||
} as const;
|
||||
|
||||
|
@ -5,7 +5,6 @@ import { BorderStyle } from "@file/border";
|
||||
import { VerticalAlign } from "@file/vertical-align";
|
||||
|
||||
import { WidthType } from "../table-width";
|
||||
|
||||
import { VerticalMergeType } from "./table-cell-components";
|
||||
import { TableCellProperties } from "./table-cell-properties";
|
||||
|
||||
|
@ -7,14 +7,14 @@ import { ITableWidthProperties, TableWidthElement } from "../table-width";
|
||||
import {
|
||||
GridSpan,
|
||||
ITableCellBorders,
|
||||
TableCellBorders,
|
||||
TDirection,
|
||||
TableCellBorders,
|
||||
TextDirection,
|
||||
VerticalMerge,
|
||||
VerticalMergeType,
|
||||
} from "./table-cell-components";
|
||||
|
||||
export interface ITableCellPropertiesOptions {
|
||||
export type ITableCellPropertiesOptions = {
|
||||
readonly shading?: IShadingAttributesProperties;
|
||||
readonly margins?: ITableCellMarginOptions;
|
||||
readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
|
||||
@ -24,7 +24,7 @@ export interface ITableCellPropertiesOptions {
|
||||
readonly columnSpan?: number;
|
||||
readonly rowSpan?: number;
|
||||
readonly borders?: ITableCellBorders;
|
||||
}
|
||||
};
|
||||
|
||||
export class TableCellProperties extends IgnoreIfEmptyXmlComponent {
|
||||
public constructor(options: ITableCellPropertiesOptions) {
|
||||
|
@ -5,9 +5,9 @@ import { IContext, IXmlableObject, XmlComponent } from "@file/xml-components";
|
||||
import { Table } from "../table";
|
||||
import { ITableCellPropertiesOptions, TableCellProperties } from "./table-cell-properties";
|
||||
|
||||
export interface ITableCellOptions extends ITableCellPropertiesOptions {
|
||||
export type ITableCellOptions = {
|
||||
readonly children: readonly (Paragraph | Table)[];
|
||||
}
|
||||
} & ITableCellPropertiesOptions;
|
||||
|
||||
export class TableCell extends XmlComponent {
|
||||
public constructor(public readonly options: ITableCellOptions) {
|
||||
|
Reference in New Issue
Block a user