Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mishanga committed Oct 10, 2016
1 parent 60cc73f commit 4223821
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 41 deletions.
68 changes: 68 additions & 0 deletions .jscs.json
@@ -0,0 +1,68 @@
{
"excludeFiles": [
"node_modules/**",
"tools/**",
"coverage/**"
],

"maximumLineLength": {
"value": 170,
"tabSize": 4,
"allExcept": ["regex", "require", "urlComments"]
},

"validateLineBreaks": "LF",
"validateParameterSeparator": ", ",
"validateQuoteMarks": { "mark": "'", "escape": true },

"disallowEmptyBlocks": true,
"disallowKeywords": ["with"],
"disallowKeywordsOnNewLine": ["catch", "else", "while"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces": true,
"disallowNestedTernaries": { "maxLevel": 1 },
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": ["."],
"disallowParenthesesAroundArrowParam": true,
"disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": [","],
"disallowSpaceBeforeComma": { "allExcept": ["sparseArrays"] },
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpaceBeforeSemicolon": true,
"disallowSpacesInCallExpression": true,
"disallowSpacesInFunction": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowSpacesInsideTemplateStringPlaceholders": true,
"disallowTabs": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"disallowYodaConditions": true,

"requireBlocksOnNewline": 1,
"requireCamelCaseOrUpperCaseIdentifiers": { "ignoreProperties": true },
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": ["else", "for", "while", "do", "try", "catch"],
"requireLineFeedAtFileEnd": true,
"requireNumericLiterals": true,
"requireOperatorBeforeLineBreak": ["=", "+", "-", "/", "*", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "?", "&&", "||"],
"requirePaddingNewLinesAfterUseStrict": true,
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
"requireSpaceAfterKeywords": ["do", "for", "if", "else", "switch", "try", "catch", "void", "while", "return", "typeof"],
"requireSpaceAfterLineComment": { "allExcept": ["#", "="] },
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeKeywords": ["else", "while", "catch"],
"requireSpaceBeforeObjectValues": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInConditionalExpression": { "afterTest": true, "beforeConsequent": true, "afterConsequent": true, "beforeAlternate": true },
"requireSpacesInForStatement": true,
"requireSpacesInsideObjectBrackets": "all"
}
31 changes: 0 additions & 31 deletions .jscsrc

This file was deleted.

7 changes: 3 additions & 4 deletions .jshintignore
@@ -1,4 +1,3 @@
node_modules
docs
tools
coverage
node_modules/**
tools/**
coverage/**
10 changes: 9 additions & 1 deletion .jshintrc
@@ -1,9 +1,17 @@
{
"browser": true,
"jquery": true,
"node": true,
"mocha": true,

"boss": true,
"debug": false,
"devel": false,
"eqeqeq": true,
"eqnull": true,
"evil": true,
"lastsemic": true,
"noempty": true,
"quotmark": "single",
"undef": true,
"unused": true
}
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -20,11 +20,11 @@
}
],
"devDependencies": {
"mocha": "2.2.x",
"chai": "2.x",
"istanbul": "0.3.x",
"mocha": "3.1.x",
"chai": "3.5.x",
"istanbul": "0.4.x",
"jshint": "2.x",
"jscs": "1.11.x"
"jscs": "3.0.x"
},
"engines": {
"node": ">= 0.10"
Expand Down
2 changes: 1 addition & 1 deletion test/test.processBemJson.js
Expand Up @@ -54,7 +54,7 @@ describe('bh.processBemJson', function() {
block: 'button',
mods: { valid: true },
elem: 'inner',
elemMods: { disabled: 'yes' },
elemMods: { disabled: 'yes' }
}).should.deep.equal({
block: 'button',
mods: { valid: true },
Expand Down

0 comments on commit 4223821

Please sign in to comment.