-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added gulpfile.js, .jshintrc and .jscsrc.
- Loading branch information
Showing
5 changed files
with
212 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"requireCurlyBraces": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"try", | ||
"catch" | ||
], | ||
"requireSpaceAfterKeywords": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"switch", | ||
"case", | ||
"return", | ||
"try", | ||
"catch", | ||
"function", | ||
"typeof" | ||
], | ||
"requireSpaceBeforeBlockStatements": true, | ||
"requireParenthesesAroundIIFE": true, | ||
"requireSpacesInConditionalExpression": true, | ||
"disallowSpacesInNamedFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInFunctionDeclaration": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"requireSpaceBetweenArguments": true, | ||
"requireBlocksOnNewline": true, | ||
"disallowEmptyBlocks": true, | ||
"disallowSpacesInsideArrayBrackets": true, | ||
"disallowSpacesInsideParentheses": true, | ||
"requireCommaBeforeLineBreak": true, | ||
"disallowSpaceAfterPrefixUnaryOperators": true, | ||
"disallowSpaceBeforePostfixUnaryOperators": true, | ||
"disallowSpaceBeforeBinaryOperators": [ | ||
"," | ||
], | ||
"requireSpacesInForStatement": true, | ||
"requireSpaceBeforeBinaryOperators": true, | ||
"requireSpaceAfterBinaryOperators": true, | ||
"disallowKeywords": [ | ||
"with", | ||
"continue" | ||
], | ||
"validateIndentation": 4, | ||
"disallowMixedSpacesAndTabs": true, | ||
"disallowTrailingWhitespace": true, | ||
"disallowTrailingComma": true, | ||
"disallowKeywordsOnNewLine": [ | ||
"else" | ||
], | ||
"requireLineFeedAtFileEnd": true, | ||
"requireCapitalizedConstructors": true, | ||
"requireDotNotation": true, | ||
"disallowNewlineBeforeBlockStatements": true, | ||
"disallowMultipleLineStrings": true, | ||
"requireSpaceBeforeObjectValues": true, | ||
|
||
|
||
"maximumLineLength": 100, | ||
"requireDollarBeforejQueryAssignment": true, | ||
"requireCamelCaseOrUpperCaseIdentifiers": true, | ||
"requireAlignedObjectValues": "ignoreLineBreak", | ||
"disallowYodaConditions": true, | ||
"disallowTrailingWhitespace": true, | ||
"disallowOperatorBeforeLineBreak": ["?", "."], | ||
"validateQuoteMarks": { "mark": "\"", "escape": true } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"bitwise" : true, | ||
"curly" : true, | ||
"eqeqeq" : true, | ||
"forin" : true, | ||
"immed" : true, | ||
"latedef" : true, | ||
"newcap" : true, | ||
"noarg" : true, | ||
"noempty" : true, | ||
"nonew" : true, | ||
"plusplus" : false, | ||
"regexp" : true, | ||
"undef" : true, | ||
"strict" : true, | ||
"unused" : "vars", | ||
|
||
"asi" : false, | ||
"boss" : false, | ||
"debug" : false, | ||
"eqnull" : false, | ||
"es5" : false, | ||
"esnext" : false, | ||
"evil" : false, | ||
"expr" : false, | ||
"funcscope" : false, | ||
"globalstrict" : false, | ||
"iterator" : false, | ||
"lastsemic" : false, | ||
"laxbreak" : true, | ||
"laxcomma" : false, | ||
"loopfunc" : false, | ||
"multistr" : false, | ||
"onecase" : false, | ||
"proto" : false, | ||
"regexdash" : false, | ||
"scripturl" : false, | ||
"shadow" : false, | ||
"sub" : false, | ||
"supernew" : false, | ||
"validthis" : false, | ||
|
||
"browser" : false, | ||
"couch" : false, | ||
"devel" : true, | ||
"dojo" : false, | ||
"jquery" : false, | ||
"mootools" : false, | ||
"node" : false, | ||
"nonstandard" : false, | ||
"prototypejs" : false, | ||
"rhino" : false, | ||
"wsh" : false, | ||
|
||
"maxerr" : 100, | ||
"indent" : 4, | ||
"globals" : { | ||
"window": false, | ||
"document": false, | ||
"setTimeout": false, | ||
"require": true, | ||
"define": true, | ||
"brackets": true, | ||
"$": true, | ||
"PathUtils": false, | ||
"window": false, | ||
"navigator": false, | ||
"Mustache": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/*jslint vars: true */ | ||
/*global require */ | ||
|
||
var gulp = require('gulp'); | ||
var noop = function () { | ||
"use strict"; | ||
}; | ||
|
||
gulp.task('lint', function () { | ||
"use strict"; | ||
/* style and lint errors */ | ||
var jscs = require('gulp-jscs'); | ||
var jshint = require('gulp-jshint'); | ||
var stylish = require('gulp-jscs-stylish'); | ||
|
||
gulp.src(['./main.js', 'src/**/*.js', '!src/thirdparty/**/*.js']) | ||
.pipe(jshint()) // hint | ||
.pipe(jscs()) // enforce style guide | ||
.on('error', noop) // don't stop on error | ||
.pipe(stylish.combineWithHintResults()) // combine with jshint results | ||
.pipe(jshint.reporter('jshint-stylish')); // use any jshint reporter to log hint and style guide errors | ||
}); | ||
|
||
gulp.task('default', ['lint']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,38 @@ | ||
{ | ||
"name": "baig.brackets-zotero", | ||
"version": "0.1.6", | ||
"title": "Zotero Integration", | ||
"description": "Add In-Text Citations and Manage Bibliographies in Scholarly Markdown using Zotero", | ||
"homepage": "http://baig.github.io/brackets-zotero/", | ||
"engines": { | ||
"brackets": ">=1.1.0" | ||
}, | ||
"author": "Wasif Hasan Baig <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/baig/brackets-zotero.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/baig/brackets-zotero/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"zotero", | ||
"citation", | ||
"reference", | ||
"citation management", | ||
"reference management", | ||
"bibliography generation" | ||
], | ||
"i18n": [ | ||
"en" | ||
] | ||
"name": "baig.brackets-zotero", | ||
"version": "0.1.6", | ||
"title": "Zotero Integration", | ||
"description": "Add In-Text Citations and Manage Bibliographies in Scholarly Markdown using Zotero", | ||
"homepage": "http://baig.github.io/brackets-zotero/", | ||
"engines": { | ||
"brackets": ">=1.1.0" | ||
}, | ||
"author": "Wasif Hasan Baig <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/baig/brackets-zotero.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/baig/brackets-zotero/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"zotero", | ||
"citation", | ||
"reference", | ||
"citation management", | ||
"reference management", | ||
"bibliography generation" | ||
], | ||
"i18n": [ | ||
"en" | ||
], | ||
"devDependencies": { | ||
"gulp": "^3.8.11", | ||
"gulp-jscs": "^1.4.0", | ||
"gulp-jscs-stylish": "^1.0.2", | ||
"gulp-jshint": "^1.9.4", | ||
"jshint-stylish": "^1.0.1" | ||
} | ||
} |