mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Add linting of type tests (.ts) + fix errors (#8505)
This commit is contained in:
parent
4c960fb138
commit
e55a12ce87
@ -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"
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user