diff --git a/CHANGELOG.md b/CHANGELOG.md index 754b2cc46..1457c3aa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +Versuin 1.2.2: + * Fixed case with number for `requireDotNotation` rule (@andrewblond). + Version 1.2.1: * Fix in error message for rule `maximumLineLength` (@pdehaan). @@ -100,8 +103,8 @@ Version 0.0.8: * Option `disallowQuotedKeysInObjects`. Version 0.0.7: - * Option 'requireSpacesInsideObjectBrackets'. - * Option 'disallowSpacesInsideObjectBrackets'. + * Option `requireSpacesInsideObjectBrackets`. + * Option `disallowSpacesInsideObjectBrackets`. Version 0.0.6: * Fixes incorrent checkPath behavior. @@ -111,11 +114,11 @@ Version 0.0.5: * Error message format fixes. Version 0.0.4: - * Option 'disallowYodaConditions'. - * Option 'requireMultipleVarDecl'. + * Option `disallowYodaConditions`. + * Option `requireMultipleVarDecl`. Version 0.0.3: - * Option 'excludeFiles', which accepts patterns. + * Option `excludeFiles`, which accepts patterns. Version 0.0.2: * Link to parent nodes. diff --git a/jscs-browser.js b/jscs-browser.js index 016681558..b1bb53f84 100644 --- a/jscs-browser.js +++ b/jscs-browser.js @@ -1744,6 +1744,7 @@ module.exports.prototype = { check: function(file, errors) { file.iterateNodesByType('MemberExpression', function (node) { if (node.computed && node.property.type === 'Literal' && + typeof node.property.value !== 'number' && !tokenHelper.tokenIsReservedWord(node.property) ) { errors.add(