在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):AlbertoElias/gulp-lintspaces开源软件地址(OpenSource Url):https://github.com/AlbertoElias/gulp-lintspaces开源编程语言(OpenSource Language):JavaScript 95.7%开源软件介绍(OpenSource Introduction):gulp-lintspacesThis project is not actively maintainedA thin wrapper of lintspaces If you're looking for a gruntjs task to validate your files, take a look at this one: InstallationThis package is available on npm
as: npm install gulp-lintspaces Usagevar gulp = require("gulp");
var lintspaces = require("gulp-lintspaces");
gulp.task("YOURTASK", function() {
return gulp.src("**/*.js")
.pipe(lintspaces(/* options */))
.pipe(lintspaces.reporter());
}); Optionsnewline at end of file optionTests for newlines at the end of all files. Default value is newline: true maximum newlines optionTest for the maximum amount of newlines between code blocks. Default value is
newlineMaximum: 2 trailingspaces optionTests for useless whitespaces (trailing whitespaces) at each lineending of all
files. Default value is trailingspaces: true indentation optionsTests for correct indentation using tabs or spaces. Default value is indentation: 'tabs' If the indentation option is set to indentation: 'spaces',
spaces: 2 ignores optionUse the ignores: [
/\/\*[\s\S]*?\*\//g,
/foo bar/g
] There are some build in ignores for comments which you can apply by using these strings:
(build in strings and userdefined regular expressions are mixable in the
ignores: [
'js-comments',
/foo bar/g
] Feel free to contribute some new regular expressions as build in! .editorconfig optionIt's possible to overwrite the default and given options by setting up a path
to an external editorconfig file by unsing the editorconfig: '.editorconfig' The following .editorconfig values are supported:
ContributionFeel free to contribute. Please run all the tests and validation tasks befor you offer a pull request. Tests & validationRun LicenseThis is a fork of the original |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论