A helper repository to demonstrate eslint setup with npm
and use wordpress
config.
For more information, visit eslint-config-wordpress
.
Clone this repository.
git clone [email protected]:swashata/eslint-wordpress-test.git
Install dependencies.
npm install
Simply run npm-script
command. These are predefined in package.json
file.
npm run-script eslint
npm run-script eslintfix
Or if you prefer running from .bin
node_modules/.bin/eslint *.js