Align spaces on empty lines of a source code.
npm i align-spaces -g
align-spaces unaligned.js
align-spaces
can be used as a library:
const alignSpaces = require('align-spaces');
alignSpaces(`
const t = 'hello';
module.exports = () => {
cosnt m = 'world';
return t + m;
};
`);
// returns
`
const t = 'hello';
module.exports = () => {
cosnt m = 'world';
....
return t + m;
};
`;
- eslint-remove-line -
eslint --fix
for unused variables. - putout - the pluggable code transformer.
MIT