-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
437 additions
and
312 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/node_modules | ||
/dist | ||
/demo | ||
.idea | ||
.idea | ||
npm-debug.log |
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,60 +1,92 @@ | ||
{ | ||
"requireSpaceBeforeBlockStatements": true, | ||
"requireParenthesesAroundIIFE": true, | ||
"requireMultipleVarDecl": true, | ||
"requireBlocksOnNewline": true, | ||
"disallowPaddingNewlinesInBlocks": true, | ||
"disallowEmptyBlocks": true, | ||
"disallowSpacesInsideParentheses": true, | ||
"disallowSpaceAfterObjectKeys": true, | ||
"requireSpaceBeforeObjectValues": true, | ||
"requireCommaBeforeLineBreak": true, | ||
"requireSpaceBeforeBinaryOperators": true, | ||
"requireSpaceAfterBinaryOperators": true, | ||
"requireCamelCaseOrUpperCaseIdentifiers": true, | ||
"disallowTrailingComma": true, | ||
"requireCapitalizedConstructors": true, | ||
"requireDotNotation": true, | ||
"disallowYodaConditions": true, | ||
"disallowNewlineBeforeBlockStatements": true, | ||
"validateParameterSeparator": ", ", | ||
"requireSpacesInConditionalExpression": { | ||
"afterTest": true, | ||
"beforeConsequent": true, | ||
"afterConsequent": true, | ||
"beforeAlternate": true | ||
}, | ||
"requireSpacesInFunctionExpression": { | ||
"beforeOpeningRoundBrace": true, | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningRoundBrace": true, | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"disallowSpacesInFunctionDeclaration": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"requireSpaceAfterKeywords": [ | ||
"do", | ||
"for", | ||
"if", | ||
"else", | ||
"switch", | ||
"case", | ||
"try", | ||
"catch", | ||
"void", | ||
"while", | ||
"with", | ||
"return", | ||
"typeof", | ||
"function" | ||
], | ||
"disallowKeywords": [ | ||
"with" | ||
], | ||
"disallowKeywordsOnNewLine": [ | ||
"else" | ||
] | ||
} | ||
"requireCurlyBraces": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"try", | ||
"catch" | ||
], | ||
"validateIndentation": 2, | ||
"maximumLineLength": { | ||
"value": 100, | ||
"allExcept": [ | ||
"comments", | ||
"urlComments", | ||
"regex", | ||
"functionSignature", | ||
"require" | ||
] | ||
}, | ||
"requireSpacesInForStatement": true, | ||
"requireParenthesesAroundIIFE": true, | ||
"requireLineFeedAtFileEnd": true, | ||
"requireBlocksOnNewline": 1, | ||
"disallowPaddingNewlinesInBlocks": true, | ||
"disallowEmptyBlocks": true, | ||
"requireCommaBeforeLineBreak": true, | ||
"disallowTrailingComma": true, | ||
"requireSpaceAfterLineComment": true, | ||
"disallowMultipleSpaces": { | ||
"allowEOLComments": true | ||
}, | ||
"disallowSpaceAfterObjectKeys": true, | ||
"requireSpaceBeforeObjectValues": true, | ||
"requireTrailingComma": false, | ||
"requireSpaceAfterComma": true, | ||
"requireSpaceBeforeComma": false, | ||
"disallowSpaceAfterComma": false, | ||
"disallowSpaceBeforeComma": true, | ||
"requireSpaceBeforeBinaryOperators": true, | ||
"requireSpaceAfterBinaryOperators": true, | ||
"disallowMixedSpacesAndTabs": true, | ||
"disallowSpacesInsideObjectBrackets": "all", | ||
"disallowSpacesInsideArrayBrackets": "all", | ||
"requireSpacesInConditionalExpression": true, | ||
"requireSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningRoundBrace": true, | ||
"beforeOpeningCurlyBrace": true, | ||
"allExcept": ["shorthand"] | ||
}, | ||
"requireSpacesInFunctionDeclaration": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"disallowSpacesInFunctionDeclaration": { | ||
"beforeOpeningRoundBrace": true, | ||
}, | ||
"requireSpaceAfterKeywords": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"switch", | ||
"case", | ||
"return", | ||
"try", | ||
"catch", | ||
"typeof", | ||
"void" | ||
], | ||
"disallowSpaceBeforePostfixUnaryOperators": true, | ||
"disallowTrailingWhitespace": true, | ||
"disallowKeywords": ["with"], | ||
"requireDotNotation": true, | ||
"disallowYodaConditions": true, | ||
"disallowNewlineBeforeBlockStatements": true, | ||
"requireParenthesesAroundIIFE": true, | ||
"disallowKeywordsOnNewLine": [ | ||
"else", | ||
"catch" | ||
], | ||
"disallowMultipleLineBreaks": true, | ||
"disallowMultipleVarDecl": false, | ||
"requirePaddingNewLinesAfterBlocks": false, | ||
"disallowQuotedKeysInObjects": false, | ||
"validateQuoteMarks": { | ||
"mark": "'", | ||
"escape": true, | ||
"ignoreJSX": 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 |
---|---|---|
@@ -1,25 +1,76 @@ | ||
{ | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"forin": true, | ||
"freeze": true, | ||
"immed": true, | ||
"latedef": "nofunc", | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": true, | ||
"nonbsp": true, | ||
"nonew": true, | ||
"quotmark": "single", | ||
"undef": true, | ||
"unused": "strict", | ||
"browser": true, | ||
"devel": true, | ||
"plusplus": true, | ||
"indent": 4, | ||
"predef": [ | ||
"angular", | ||
"module" | ||
] | ||
} | ||
"bitwise": false, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"esversion": 6, | ||
"forin": true, | ||
"freeze": true, | ||
"funcscope": false, | ||
"futurehostile": true, | ||
"globals": { | ||
"angular": false | ||
}, | ||
"iterator": false, | ||
"latedef": true, | ||
"maxcomplexity": false, | ||
"maxdepth": 0, | ||
"maxerr": 100, | ||
"maxparams": 6, | ||
"maxstatements": 0, | ||
"noarg": true, | ||
"nocomma": true, | ||
"nonbsp": true, | ||
"nonew": true, | ||
"notypeof": false, | ||
"predef": [ | ||
"define", | ||
"describe", | ||
"expect", | ||
"it", | ||
"spyOn" | ||
], | ||
"shadow": false, | ||
"singleGroups": true, | ||
"strict": true, | ||
"undef": true, | ||
"unused": true, | ||
"varstmt": false, | ||
"asi": false, | ||
"boss": false, | ||
"debug": false, | ||
"elision": false, | ||
"eqnull": true, | ||
"evil": false, | ||
"expr": true, | ||
"lastsemic": false, | ||
"loopfunc": false, | ||
"moz": false, | ||
"noyield": false, | ||
"plusplus": true, | ||
"proto": false, | ||
"scripturl": false, | ||
"supernew": false, | ||
"validthis": false, | ||
"withstmt": false, | ||
"browser": true, | ||
"browserify": false, | ||
"couch": false, | ||
"devel": true, | ||
"dojo": false, | ||
"jasmine": false, | ||
"jquery": false, | ||
"mocha": false, | ||
"module": false, | ||
"mootools": false, | ||
"node": false, | ||
"nonstandard": false, | ||
"phantom": false, | ||
"prototypejs": false, | ||
"qunit": false, | ||
"rhino": false, | ||
"shelljs": false, | ||
"typed": false, | ||
"worker": false, | ||
"wsh": false, | ||
"yui": false | ||
} |
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,17 @@ | ||
# CHANGELOG | ||
|
||
## v1.0.0 | ||
|
||
### Breaking changes | ||
|
||
- Reverse the arguments the `callback` function accepts, in order to allow the usage of `data` argument without the need to also specify the `topic` if not needed. | ||
- Throw exception if `callback` is not a `function` or is not provided at all. | ||
|
||
### Other updates | ||
- Fix JSDoc annotations. | ||
- Update dev dependancies. | ||
- Provide `npm` scripts to run the tasks. No more need for global dependancies installed (Grunt). | ||
|
||
## v0.0.1 | ||
|
||
Initial release |
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
Oops, something went wrong.