Skip to content

Commit eebf10a

Browse files
committed
chore: update release
1 parent 96c9e6c commit eebf10a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.1.1
2+
3+
### Fix
4+
5+
- Breaking change in the TypeScript AST regarding `importDestructuringSpacingRule` [#282](https://github.com/mgechev/codelyzer/issues/282)
6+
17
# 2.1.0
28

39
### Features

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codelyzer",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Linting for Angular applications, following angular.io/styleguide.",
55
"main": "index.js",
66
"scripts": {

src/importDestructuringSpacingRule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ImportDestructuringSpacingWalker extends Lint.SkippableTokenAwareRuleWalke
3030

3131
public visitImportDeclaration(node: ts.ImportDeclaration) {
3232
const importClause = node.importClause;
33-
if (importClause !== null && importClause.namedBindings !== null) {
33+
if (importClause && importClause.namedBindings) {
3434
const text = importClause.namedBindings.getText();
3535

3636
if (!this.checkForWhiteSpace(text)) {

0 commit comments

Comments
 (0)