Skip to content

Commit d722251

Browse files
wang1212gemini-code-assist[bot]yunchen.wygithub-actions[bot]
authored
Release (#2101)
* chore: update lint config * fix CustomEvent constructor compatibility (#2074) * fix(g-lite): fix CustomEvent constructor compatibility * chore: adjust ESLint ignore file to improve development workflow * Update packages/g-lite/src/dom/CustomEvent.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * fix: multiple canvas rendering errors (#2091) * fix: multiple canvas rendering errors * refactor: the naming is clearer * chore: update test snapshot --------- Co-authored-by: yunchen.wy <yunchen.wy@antgroup.com> * chore(release): bump version (#2075) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore: update test snapshot --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: yunchen.wy <yunchen.wy@antgroup.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 1646e88 commit d722251

121 files changed

Lines changed: 807 additions & 120 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# 构建产物
2+
dist/
3+
build/
4+
lib/
5+
esm/
6+
coverage/
7+
types/
8+
9+
# 依赖目录
10+
node_modules/
11+
12+
# 配置文件
13+
.commitlintrc.cjs
14+
.eslintrc.cjs
15+
.lintstagedrc.mjs
16+
babel.config.mjs
17+
rollup.config.mjs
18+
vite.config.mjs
19+
jest.unit.config.js
20+
jest.visual.config.js
21+
22+
# 大型包目录(可选择性排除)
23+
packages/g-devtool/
24+
packages/g-webgpu-compiler/
25+
packages/site/
26+
27+
# 测试文件
28+
__tests__/
29+
scripts/
30+
31+
# 其他
32+
*.min.js
33+
gui.min.js

.eslintrc.cjs

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,6 @@
11
// see docs: https://eslint.org/docs/user-guide/configuring
22

33
module.exports = {
4-
ignorePatterns: [
5-
'node_modules',
6-
//
7-
'.commitlintrc.cjs',
8-
'.eslintrc.cjs',
9-
'.lintstagedrc.mjs',
10-
'babel.config.mjs',
11-
'rollup.config.mjs',
12-
'vite.config.mjs',
13-
'jest.unit.config.js',
14-
'jest.visual.config.js',
15-
//
16-
'packages/g-devtool',
17-
'packages/g-webgpu-compiler',
18-
'packages/site',
19-
//
20-
'build',
21-
'coverage',
22-
'esm',
23-
'lib',
24-
'dist',
25-
'rust',
26-
'__tests__',
27-
'scripts',
28-
'types',
29-
//
30-
'gui.min.js',
31-
],
324
extends: [
335
'eslint:recommended',
346
'plugin:@typescript-eslint/recommended',
@@ -86,6 +58,7 @@ module.exports = {
8658
//
8759
'@typescript-eslint/naming-convention': 'warn',
8860
'@typescript-eslint/no-explicit-any': 'warn',
61+
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
8962
'@typescript-eslint/no-unsafe-member-access': 'warn',
9063
'@typescript-eslint/no-unsafe-assignment': 'warn',
9164
'@typescript-eslint/no-unsafe-return': 'warn',

.husky/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
# 增加 Node.js 内存限制到 8GB
5+
export NODE_OPTIONS="--max-old-space-size=8192"
6+
npx lint-staged

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
node_modules
12
esm
23
lib
34
dist
4-
build
5+
build

__tests__/demos/bugfix/1610.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Canvas, Circle, HTML } from '@antv/g';
22
import { Renderer as CanvasRenderer } from '@antv/g-canvas';
33

4-
export async function html(context) {
4+
export async function issue_1610_html(context) {
55
const { canvas, container } = context;
66
await canvas.ready;
77
canvas.resize(320, 320);

__tests__/demos/bugfix/1636.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Image, Group, Rect } from '@antv/g';
22

3-
export async function image(context) {
3+
export async function issue_1636_image(context) {
44
const { canvas } = context;
55
await canvas.ready;
66

__tests__/demos/bugfix/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export { html } from './1610';
1+
export { issue_1610_html } from './1610';
22
export { transform_path } from './1624';
33
export { scale0 } from './scale0';
44
export { dirty } from './dirty';
5-
export { image } from './1636';
5+
export { issue_1636_image } from './1636';
66
export { shadowroot_offset } from './1677';
77
export { gradient_text } from './1572';
88
export { zoom } from './1667';
@@ -15,4 +15,4 @@ export { issue_1910 } from './1910';
1515
export { issue_1911 } from './1911';
1616
export { textWordWrap } from './textWordWrap';
1717
export { group_with_stroke } from './group-with-stroke';
18-
export { switchRenderer } from './switch-renderer';
18+
export { bugfixSwitchRenderer } from './switch-renderer';

__tests__/demos/bugfix/switch-renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Renderer } from '@antv/g-canvas';
22

3-
export async function switchRenderer(context) {
3+
export async function bugfixSwitchRenderer(context) {
44
const { canvas } = context;
55

66
await canvas.ready;

__tests__/demos/event/circle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Circle, Group } from '@antv/g';
22

3-
export async function circle(context) {
3+
export async function event_circle(context) {
44
const { canvas } = context;
55
await canvas.ready;
66

__tests__/demos/event/ellipse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Ellipse } from '@antv/g';
22

3-
export async function ellipse(context) {
3+
export async function event_ellipse(context) {
44
const { canvas } = context;
55
await canvas.ready;
66

0 commit comments

Comments
 (0)