Code cleaner

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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.22.179