Skip to content

Commit

Permalink
Disable no-unused-vars for inline events
Browse files Browse the repository at this point in the history
  • Loading branch information
loicbourgois committed Feb 1, 2018
1 parent 9bb89f4 commit 3746bad
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/charts/area/line-boundaries.html
Expand Up @@ -94,7 +94,7 @@
});
});


// eslint-disable-next-line no-unused-vars
function toggleSmooth(btn) {
var value = btn.classList.toggle('btn-on');
Chart.helpers.each(Chart.instances, function(chart) {
Expand All @@ -103,6 +103,7 @@
});
}

// eslint-disable-next-line no-unused-vars
function randomize() {
var seed = utils.rand();
Chart.helpers.each(Chart.instances, function(chart) {
Expand Down
6 changes: 6 additions & 0 deletions samples/charts/area/line-datasets.html
Expand Up @@ -134,18 +134,24 @@
options: options
});


// eslint-disable-next-line no-unused-vars
function togglePropagate(btn) {
var value = btn.classList.toggle('btn-on');
chart.options.plugins.filler.propagate = value;
chart.update();
}


// eslint-disable-next-line no-unused-vars
function toggleSmooth(btn) {
var value = btn.classList.toggle('btn-on');
chart.options.elements.line.tension = value ? 0.4 : 0.000001;
chart.update();
}


// eslint-disable-next-line no-unused-vars
function randomize() {
chart.data.datasets.forEach(function(dataset) {
dataset.data = generateData();
Expand Down
6 changes: 6 additions & 0 deletions samples/charts/area/radar.html
Expand Up @@ -112,18 +112,24 @@
options: options
});


// eslint-disable-next-line no-unused-vars
function togglePropagate(btn) {
var value = btn.classList.toggle('btn-on');
chart.options.plugins.filler.propagate = value;
chart.update();
}


// eslint-disable-next-line no-unused-vars
function toggleSmooth(btn) {
var value = btn.classList.toggle('btn-on');
chart.options.elements.line.tension = value ? 0.4 : 0.000001;
chart.update();
}


// eslint-disable-next-line no-unused-vars
function randomize() {
inputs.from = [];
chart.data.datasets.forEach(function(dataset) {
Expand Down
3 changes: 3 additions & 0 deletions samples/scriptable/bubble.html
Expand Up @@ -105,20 +105,23 @@
options: options
});

// eslint-disable-next-line no-unused-vars
function randomize() {
chart.data.datasets.forEach(function(dataset) {
dataset.data = generateData();
});
chart.update();
}

// eslint-disable-next-line no-unused-vars
function addDataset() {
chart.data.datasets.push({
data: generateData()
});
chart.update();
}

// eslint-disable-next-line no-unused-vars
function removeDataset() {
chart.data.datasets.shift();
chart.update();
Expand Down

0 comments on commit 3746bad

Please sign in to comment.