* Add new handleOnlyComments function. * Update tests. * Update test as the printer forces a trailing newline if there were any contents. * Implement a different heuristic. * Update tests. * Add directives checking in handleOnlyComments function. * Add directives checking in handleOnlyComments function (amend to retrigger CI). * Remove duplicate.
22 lines
364 B
JavaScript
22 lines
364 B
JavaScript
// This file only
|
|
// has comments. This comment
|
|
// should still exist
|
|
//
|
|
// when printed.
|
|
|
|
/**
|
|
* @typedef {DataDrivenMapping|ConstantMapping} Mapping
|
|
*/
|
|
/**
|
|
* @typedef {Object.<String, Mapping>} ConfigurationMapping
|
|
*/
|
|
|
|
/**
|
|
* @typedef {Function} D3Scale - a D3 scale
|
|
* @property {Function} ticks
|
|
* @property {Function} tickFormat
|
|
*/
|
|
// comment
|
|
|
|
// comment
|