Skip to content

Commit

Permalink
Add linting of type tests (.ts) + fix errors (#8505)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored Feb 23, 2021
1 parent 4c960fb commit e55a12c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"lint-js": "eslint \"samples/**/*.html\" \"samples/**/*.js\" \"src/**/*.js\" \"test/**/*.js\"",
"lint-md": "markdownlint-cli2 \"**/*.md\" \"**/*.mdx\" \"#**/node_modules\"",
"lint-tsc": "tsc",
"lint-types": "eslint \"types/**/*.d.ts\" && tsc -p types/tests/",
"lint-types": "eslint \"types/**/*.ts\" && tsc -p types/tests/",
"lint": "concurrently \"npm:lint-*\"",
"test": "npm run lint && cross-env NODE_ENV=test karma start --auto-watch --single-run --coverage --grep",
"typedoc": "npx typedoc"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Chart } from '../../../index.esm';

Chart.defaults.controllers.bubble.plugins.tooltip.callbacks.label = (item) => {
const {x, y, _custom: r} = item.parsed;
return `${item.label}: (${x}, ${y}, ${r})`;
}
const { x, y, _custom: r } = item.parsed;
return `${item.label}: (${x}, ${y}, ${r})`;
};

const chart = new Chart('id', {
type: 'bubble',
Expand Down

0 comments on commit e55a12c

Please sign in to comment.