The charts and table show the results of replacing JSHint and JSCS with ESLint and running it over the current (3.0.7) dc.js source code, using an ESLint config generated using polyjuice from the current .jscsrc
and .jshintrc
files.
ESLint can automatically fix a number of the errors, including indentation, quotes, and missing jsdoc declarations.
The ESLint config used is included for reference.
https://cdn.datatables.net/v/dt/jq-3.2.1/dt-1.10.16/datatables.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/5.7.0/d3.js
https://cdnjs.cloudflare.com/ajax/libs/crossfilter2/1.4.6/crossfilter.js
https://cdnjs.cloudflare.com/ajax/libs/dc/3.0.7/dc.js
https://cdn.jsdelivr.net/npm/colorbrewer@1.0.0/colorbrewer.js