在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):xojs/gulp-xo开源软件地址(OpenSource Url):https://github.com/xojs/gulp-xo开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-xo
Issues regarding rules should be reported on the ESLint issue tracker as it's the actual linter. Install
Usageconst gulp = require('gulp');
const xo = require('gulp-xo');
exports.default = () => (
gulp.src('src/app.js')
.pipe(xo())
.pipe(xo.format())
.pipe(xo.failAfterError())
); APIxo(options?)optionsType: Any additional options to the below are passed directly to XO. However, you should prefer setting your XO config in fixType: This option instructs ESLint to try to fix as many issues as possible. The fixes are applied to the gulp stream. The fixed content can be saved to file using When fixes are applied, a "fixed" property is set to quietType: Report errors only. xo.format(formatter, output)xo.failAfterError()xo.failOnError()xo.formatEach(formatter, output)xo.result(action)xo.results(action)Related
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论