Skip to content

Commit

Permalink
chore: config project (#6065)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca authored Jul 19, 2024
1 parent 5f0a11b commit d45429a
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = {
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
'jsdoc/require-param-type': 0,
'@typescript-eslint/no-this-alias': 'off',
'no-console': 'error',

// TODO: rules below will be set to 2 in the future
'jsdoc/require-jsdoc': 1,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} & pnpm release
run: pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} & pnpm run publish
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"postinstall": "husky install",
"prepare": "husky install",
"publish": "pnpm publish -r --publish-branch v5",
"release": "changeset release",
"site": "pnpm -r --stream --filter=./packages/site run dev",
"version": "changeset version && turbo version",
"watch": "pnpm -r --stream --filter=!./site run start"
Expand Down
5 changes: 5 additions & 0 deletions packages/g6-extension-3d/__tests__/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"no-console": "off"
}
}
5 changes: 5 additions & 0 deletions packages/g6-extension-react/__tests__/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"no-console": "off"
}
}
1 change: 1 addition & 0 deletions packages/g6-extension-react/src/graph/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const Graph = (props: GraphProps) => {
graph
.render()
.then(() => onRender?.(graph))
// eslint-disable-next-line no-console
.catch((error) => console.debug(error));
}, [options]);

Expand Down
5 changes: 5 additions & 0 deletions packages/g6/__tests__/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"no-console": "off"
}
}
1 change: 0 additions & 1 deletion packages/g6/src/elements/shapes/base-shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ export abstract class BaseShape<StyleProps extends BaseShapeStyleProps> extends
* @description see: https://github.com/antvis/G/issues/1731
*/
function releaseAnimation(target: DisplayObject, animation: IAnimation) {
animation.oncancel = () => console.log('cancel');
animation?.finished.then(() => {
// @ts-expect-error private property
const index = target.activeAnimations.findIndex((_) => _ === animation);
Expand Down
2 changes: 2 additions & 0 deletions packages/g6/src/utils/print.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global console */
/* eslint no-console: "off" */
import { version } from '../version';

const BRAND = 'G6';
Expand Down

0 comments on commit d45429a

Please sign in to comment.