Skip to content

Commit

Permalink
Scaffold: Use jscs & eslint with presets
Browse files Browse the repository at this point in the history
  • Loading branch information
pdehaan authored and phated committed Dec 21, 2017
1 parent eca3a23 commit 5ea7700
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 97 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "gulp"
}
47 changes: 1 addition & 46 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -1,48 +1,3 @@
{
"disallowKeywords": ["with"],
"disallowKeywordsOnNewLine": ["else"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleVarDecl": "exceptUndefined",
"disallowNewlineBeforeBlockStatements": true,
"disallowQuotedKeysInObjects": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpacesInFunction": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInsideParentheses": true,
"disallowTrailingWhitespace": true,
"maximumLineLength": null,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedComments": true,
"requireCapitalizedConstructors": true,
"requireCurlyBraces": true,
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"case",
"return",
"try",
"catch",
"typeof"
],
"requireSpaceAfterLineComment": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeObjectValues": true,
"requireSpacesInFunction": {
"beforeOpeningCurlyBrace": true
},
"requireTrailingComma": {
"ignoreSingleLine": true
},
"requireBlocksOnNewline": true,
"validateIndentation": 2,
"validateLineBreaks": "LF",
"validateQuoteMarks": "'"
"preset": "gulp"
}
19 changes: 0 additions & 19 deletions .jshintrc

This file was deleted.

1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ node_js:
- "0.10"
after_script:
- npm run coveralls
- npm run lint
git:
depth: 10
61 changes: 29 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,10 @@
"name": "gulp-cli",
"description": "The streaming build system",
"version": "0.3.0",
"homepage": "http://gulpjs.com",
"repository": "gulpjs/gulp-cli",
"author": "Fractal <contact@wearefractal.com> (http://wearefractal.com/)",
"tags": [
"build",
"stream",
"system",
"make",
"tool",
"asset",
"pipeline"
],
"files": [
"index.js",
"lib",
"bin",
"completion"
],
"bin": {
"gulp": "bin/gulp.js"
},
"man": "gulp.1",
"dependencies": {
"archy": "^1.0.0",
"chalk": "^1.1.0",
Expand All @@ -39,26 +21,41 @@
"devDependencies": {
"code": "^1.2.1",
"coveralls": "^2.7.0",
"eslint": "^1.7.3",
"eslint-config-gulp": "^2.0.0",
"gulp": ">=3.8.10",
"jscs": "^1.11.3",
"jshint": "^2.5.0",
"jshint-stylish": "^2.0.1",
"jscs": "^2.3.5",
"jscs-preset-gulp": "^1.0.0",
"lab": "^5.1.0",
"marked-man": "^0.1.3"
},
"scripts": {
"prepublish": "marked-man --name gulp docs/CLI.md > gulp.1",
"lint": "jshint lib index.js --reporter node_modules/jshint-stylish --exclude node_modules && jscs index.js lib bin test",
"test": "npm run lint && lab -cv",
"coveralls": "lab -r lcov | coveralls"
},
"engines": {
"node": ">= 0.9"
},
"licenses": [
{
"type": "MIT",
"url": "https://raw.githubusercontent.com/gulpjs/gulp/master/LICENSE"
}
"files": [
"index.js",
"lib",
"bin",
"completion"
],
"homepage": "http://gulpjs.com",
"license": "MIT",
"man": "gulp.1",
"repository": "gulpjs/gulp-cli",
"scripts": {
"coveralls": "lab -r lcov | coveralls",
"lint": "eslint . && jscs index.js bin/ lib/ test/",
"prepublish": "marked-man --name gulp docs/CLI.md > gulp.1",
"pretest": "npm run lint",
"test": "lab -cv"
},
"tags": [
"build",
"stream",
"system",
"make",
"tool",
"asset",
"pipeline"
]
}
3 changes: 3 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "gulp/test"
}

0 comments on commit 5ea7700

Please sign in to comment.