Skip to content

Commit

Permalink
chore: update release
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Mar 31, 2017
1 parent 96c9e6c commit eebf10a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
# 2.1.1

### Fix

- Breaking change in the TypeScript AST regarding `importDestructuringSpacingRule` [#282](https://github.com/mgechev/codelyzer/issues/282)

# 2.1.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "codelyzer",
"version": "2.1.0",
"version": "2.1.1",
"description": "Linting for Angular applications, following angular.io/styleguide.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/importDestructuringSpacingRule.ts
Expand Up @@ -30,7 +30,7 @@ class ImportDestructuringSpacingWalker extends Lint.SkippableTokenAwareRuleWalke

public visitImportDeclaration(node: ts.ImportDeclaration) {
const importClause = node.importClause;
if (importClause !== null && importClause.namedBindings !== null) {
if (importClause && importClause.namedBindings) {
const text = importClause.namedBindings.getText();

if (!this.checkForWhiteSpace(text)) {
Expand Down

0 comments on commit eebf10a

Please sign in to comment.