steal.clean
beautifies the JavaScript code and checks it using the JSLint code quality tool:
We can use the cleanjs
command to beautify the code in one file:
$ ./js steal/cleanjs todo/todo.js
Or all files in our project:
$ ./js steal/cleanjs todo/todo.html
To run our code against JSLint, add the -jslint true
parameter:
$ ./js steal/cleanjs todo/todo.js -jslint true
We can ignore the files from being cleaned by adding a comment similar to the following:
//!steal-clean
18.119.142.85