Our wp-dev-lib provides a common set of configs and scripts for facilitating theme and plugin development, including a
I’ve opened a Trac ticket to add a JSCS config to Core and I opened a pull request to this added to VIP Quickstart. But you can also just add the
.jscsrc to any of your plugins to start using it now. Here’s a quick way to update an existing plugin which uses
cd dev-lib git pull origin master cd .. git add dev-lib ln -s dev-lib/.jscsrc . git add .jscsrc git commit -m "Add JSCS integration"
You’ll also have to install JSCS itself:
npm install jscs -g
When JSCS is installed and a
.jscsrc found up the directory tree, the
pre-commit hook in
dev-lib will automatically use it.
You can also integrate JSCS into your IDE. PhpStorm has support for JSCS. You’ll have to have the path to your
node interpreter and the path to where Node installed JSCS; on my Mac, these are