Skip to content

Commit

Permalink
fix: lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfu1 committed Dec 25, 2023
1 parent e63a9bd commit aa94971
Show file tree
Hide file tree
Showing 136 changed files with 10,856 additions and 120 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"import/order": "warn",
"import/namespace": "warn",
// Allow `const self = this`.
"@typescript-eslint/no-this-alias": "off"
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/ban-types": "warn"
},
"env": {
"node": true,
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ site/.dumi/tmp-production
/test-results/
/playwright-report/
/playwright/.cache/
pnpm-lock.yaml
4 changes: 2 additions & 2 deletions __tests__/integration/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function onchange() {

async function plot() {
container.innerHTML = '';
const generate = cases[caseSelect.value];
generate(container, new renderers[rendererSelect.value]());
const generate = cases[caseSelect.value](container, new renderers[rendererSelect.value]());
generate.render();
}

app.append(caseSelect, rendererSelect, container);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g2plot",
"version": "3.0.0-alpha.1",
"version": "3.0.0-beta.0",
"description": "An interactive and responsive charting library",
"license": "MIT",
"main": "lib/index.js",
Expand Down Expand Up @@ -42,6 +42,7 @@
"dependencies": {
"@antv/event-emitter": "^0.1.3",
"@antv/g2": "^5.0.6",
"@antv/g2-extension-plot": "^0.1.1",
"size-sensor": "^1.0.1"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit aa94971

Please sign in to comment.