]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Enforce variable declaration coding style (#4610)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Thu, 3 Aug 2017 16:33:18 +0000 (18:33 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2017 16:33:18 +0000 (18:33 +0200)
commit9ef5cc72f6660ee6325700c9d2dfbd50f83be40b
tree31f1aad618c1ec8c45187781415a68069d21cf52
parent51603cce2e88ce8267dc0dab67b85f871e8e9ccc
Enforce variable declaration coding style (#4610)

For consistency, enable ESLint `one-var` rule to require multiple variable declarations for initialized variables per scope. Uninitialized variables can still be declared together (preferred) or separately.

http://eslint.org/docs/rules/one-var
13 files changed:
.eslintrc
src/controllers/controller.doughnut.js
src/core/core.datasetController.js
src/core/core.helpers.js
src/core/core.interaction.js
src/core/core.scale.js
src/core/core.ticks.js
src/core/core.tooltip.js
src/elements/element.arc.js
src/plugins/plugin.legend.js
src/plugins/plugin.title.js
src/scales/scale.logarithmic.js
src/scales/scale.radialLinear.js