Adapter for the HTML_CodeSniffer script
The easiest way is to keep karma-html_codesniffer
as a devDependency in your package.json
.
{
"devDependencies": {
"karma-html_codesniffer": "~1.0.0"
}
}
You can simple do it by:
npm install karma-html_codesniffer --save-dev
Instructions on how to install karma
can be found here.
Following code shows the default configuration...
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['html_codesniffer'],
files: [
'*.js'
]
});
};
For more information on Karma see the homepage.