@pdfme/common 5.3.8-dev.41 → 5.3.8-dev.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { PDFPage, PDFDocument } from '@pdfme/pdf-lib';
3
- /** @ts-ignore -- optional interface, will gracefully degrade to `any` if `antd` isn't installed **/
4
3
  import type { ThemeConfig, GlobalToken } from 'antd';
5
- /** @ts-ignore -- optional interface, will gracefully degrade to `any` if `form-render` isn't installed*/
6
4
  import type { WidgetProps as _PropPanelWidgetProps, Schema as _PropPanelSchema } from 'form-render';
7
5
  import { Lang, Dict, Mode, Size, Schema, Font, SchemaForUI, BasePdf, BlankPdf, CommonOptions, Template, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, DesignerProps, ColorType, LegacySchemaPageArray, SchemaPageArray } from './schema.js';
8
6
  export type PropPanelSchema = _PropPanelSchema;
@@ -0,0 +1,22 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { dirname, resolve } from 'path';
3
+
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = dirname(__filename);
6
+
7
+ // Import the root config
8
+ const rootConfigPath = resolve(__dirname, '../../eslint.config.mjs');
9
+ const rootConfig = await import(rootConfigPath);
10
+
11
+ export default [
12
+ ...rootConfig.default,
13
+ {
14
+ files: ['src/**/*.ts'],
15
+ languageOptions: {
16
+ parserOptions: {
17
+ project: ['./tsconfig.esm.json'],
18
+ tsconfigRootDir: __dirname,
19
+ },
20
+ },
21
+ },
22
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/common",
3
- "version": "5.3.8-dev.41",
3
+ "version": "5.3.8-dev.42",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "build:esm": "tsc -p tsconfig.esm.json",
43
43
  "build:node": "tsc -p tsconfig.node.json",
44
44
  "clean": "rimraf dist",
45
- "lint": "eslint --ext .ts src",
45
+ "lint": "eslint --ext .ts src --config eslint.config.mjs --no-error-on-unmatched-pattern",
46
46
  "test": "jest",
47
47
  "prune": "ts-prune src",
48
48
  "prettier": "prettier --write 'src/**/*.ts'"
package/src/types.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { PDFPage, PDFDocument } from '@pdfme/pdf-lib';
3
- /** @ts-ignore -- optional interface, will gracefully degrade to `any` if `antd` isn't installed **/
4
3
  import type { ThemeConfig, GlobalToken } from 'antd';
5
- /** @ts-ignore -- optional interface, will gracefully degrade to `any` if `form-render` isn't installed*/
6
4
  import type { WidgetProps as _PropPanelWidgetProps, Schema as _PropPanelSchema } from 'form-render';
7
5
  import {
8
6
  Lang,
package/.eslintrc.cjs DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['../../eslint.base.js'],
3
- };