broccoli-es7-decorator-jshint-guards
v0.0.1
Published
Surround ES7 decorator syntax with jshint comment guards so it won't complain about syntax it doesn't understand
Downloads
1
Maintainers
Readme
broccoli-es7-decorator-jshint-guards
Wraps your ES7 decorators in jshint guards so that jshint doesn't complain about new syntax it doesn't (yet) understand.
Install
From NPM:
npm install broccoli-es7-decorator-jshint-guards --save-dev
Broccoli Filter
Assuming installation via NPM, you can use broccoli-es7-decorator-jshint-guards
in your Brocfile.js like this:
var decoratorGuards = require('broccoli-es7-decorator-jshint-guards');
module.exports = decoratorGuards('src', {
files: [
'**/*.js'
]
});
The files
option is passed directly to
broccoli-replace, so
check those docs for other patterns.