Join the DZone community and get the full member experience.Join For Free
xMatters delivers integration-driven collaboration that relays data between systems, while engaging the right people to proactively resolve issues. Read the Monitoring in a Connected Enterprise whitepaper and learn about 3 tools for resolving incidents quickly.
The trick is to use JSCS and its latest features. If you want to follow a long, here is a step-by-step recipe.
First, you need to have JSCS installed. This is as easy as:
npm install -g jscs
Let’s pick an example project, for this illustration I use my kinetic scrolling demo:
git clone https://github.com/ariya/kinetic.git cd kinetic
jscs --auto-configure .
Once you choose a preset, JSCS will ask you a couple of self-explained questions. At the end of this step, the configuration file
.jscsrc will be created for you. With the configuration, the real magic happens. You just to invoke JSCS this way:
jscs -x .
With JSCS, you can comfortably ensure code style consistency throughout your project!
Published at DZone with permission of Ariya Hidayat , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.