Skip to content

Commit

Permalink
refactor: bump package versions (#818)
Browse files Browse the repository at this point in the history
* refactor(release): update to typescript 3.4.x

Fixes #815

* refactor: bump package versions
  • Loading branch information
santoshyadavdev authored and mgechev committed Apr 29, 2019
1 parent 9fcdce3 commit 829c675
Show file tree
Hide file tree
Showing 9 changed files with 685 additions and 482 deletions.
1,103 changes: 653 additions & 450 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,42 +62,42 @@
},
"homepage": "https://github.com/mgechev/codelyzer#readme",
"devDependencies": {
"@angular/compiler": "^7.2.7",
"@angular/core": "^7.2.7",
"@angular/compiler": "^7.2.14",
"@angular/core": "^7.2.14",
"@commitlint/cli": "^7.5.2",
"@commitlint/config-angular": "^7.5.0",
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.6",
"@types/node": "^11.10.4",
"@types/node": "^11.13.8",
"@types/node-sass": "^4.11.0",
"@types/sprintf-js": "^1.1.2",
"cat": "^0.2.0",
"chai": "^4.2.0",
"chai-spies": "^0.7.1",
"cross-env": "^5.2.0",
"husky": "^1.3.1",
"js-yaml": "^3.12.2",
"husky": "^2.1.0",
"js-yaml": "^3.13.1",
"json-stringify-pretty-compact": "2.0.0",
"lint-staged": "^8.1.5",
"mocha": "^6.0.2",
"mocha": "^6.1.4",
"ncp": "^2.0.0",
"node-sass": "^4.11.0",
"prettier": "^1.16.4",
"node-sass": "^4.12.0",
"prettier": "^1.17.0",
"rimraf": "^2.6.3",
"rxjs": "^6.4.0",
"standard-version": "^5.0.1",
"ts-node": "^8.0.2",
"tslint": "~5.14.0",
"typescript": "~3.3.3333",
"zone.js": "^0.8.29"
"ts-node": "^8.1.0",
"tslint": "~5.16.0",
"typescript": "~3.4.5",
"zone.js": "^0.9.0"
},
"peerDependencies": {
"@angular/compiler": ">=2.3.1 <9.0.0 || >8.0.0-beta <9.0.0",
"@angular/core": ">=2.3.1 <9.0.0 || >8.0.0-beta <9.0.0",
"tslint": "^5.0.0"
},
"dependencies": {
"app-root-path": "^2.1.0",
"app-root-path": "^2.2.1",
"aria-query": "^3.0.0",
"axobject-query": "^2.0.2",
"css-selector-tokenizer": "^0.7.1",
Expand Down
4 changes: 2 additions & 2 deletions src/importDestructuringSpacingRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const getReplacements = (node: NamedImports, totalLeadingSpaces: number, totalTr
return replacements;
};

const validateNamedImports = (context: WalkContext<void>, node: NamedImports): void => {
const validateNamedImports = (context: WalkContext, node: NamedImports): void => {
const nodeText = node.getText();

if (isBlankOrMultilineImport(nodeText)) return;
Expand All @@ -65,7 +65,7 @@ const validateNamedImports = (context: WalkContext<void>, node: NamedImports): v
context.addFailureAtNode(node, Rule.FAILURE_STRING, replacements);
};

const walk = (context: WalkContext<void>): void => {
const walk = (context: WalkContext): void => {
const { sourceFile } = context;

const callback = (node: Node): void => {
Expand Down
10 changes: 5 additions & 5 deletions src/noAttributeDecoratorRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ export class Rule extends AbstractRule {
}
}

const callbackHandler = (walkContext: WalkContext<void>, node: Node): void => {
const callbackHandler = (walkContext: WalkContext, node: Node): void => {
if (isConstructorDeclaration(node)) validateConstructor(walkContext, node);
};

const isAttributeDecorator = (decorator: Decorator): boolean => getDecoratorName(decorator) === ATTRIBUTE;

const validateConstructor = (walkContext: WalkContext<void>, node: ConstructorDeclaration): void => {
const validateConstructor = (walkContext: WalkContext, node: ConstructorDeclaration): void => {
node.parameters.forEach(parameter => validateParameter(walkContext, parameter));
};

const validateDecorator = (walkContext: WalkContext<void>, decorator: Decorator): void => {
const validateDecorator = (walkContext: WalkContext, decorator: Decorator): void => {
if (!isAttributeDecorator(decorator)) return;

walkContext.addFailureAtNode(decorator, Rule.FAILURE_STRING);
};

const validateParameter = (walkContext: WalkContext<void>, node: ParameterDeclaration): void => {
const validateParameter = (walkContext: WalkContext, node: ParameterDeclaration): void => {
createNodeArray(node.decorators).forEach(decorator => validateDecorator(walkContext, decorator));
};

const walk = (walkContext: WalkContext<void>): void => {
const walk = (walkContext: WalkContext): void => {
const { sourceFile } = walkContext;

const callback = (node: Node): void => {
Expand Down
8 changes: 4 additions & 4 deletions src/noConflictingLifecycleRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ export class Rule extends AbstractRule {
}
}

const validateClassDeclaration = (context: WalkContext<void>, node: ClassDeclaration): void => {
const validateClassDeclaration = (context: WalkContext, node: ClassDeclaration): void => {
validateInterfaces(context, node);
validateMethods(context, node);
};

const validateInterfaces = (context: WalkContext<void>, node: ClassDeclaration): void => {
const validateInterfaces = (context: WalkContext, node: ClassDeclaration): void => {
const declaredAngularLifecycleInterfaces = getDeclaredAngularLifecycleInterfaces(node);
const hasConflictingLifecycle = LIFECYCLE_INTERFACES.every(lifecycleInterface =>
declaredAngularLifecycleInterfaces.includes(lifecycleInterface)
Expand All @@ -75,7 +75,7 @@ const validateInterfaces = (context: WalkContext<void>, node: ClassDeclaration):
context.addFailureAtNode(node, failure);
};

const validateMethods = (context: WalkContext<void>, node: ClassDeclaration): void => {
const validateMethods = (context: WalkContext, node: ClassDeclaration): void => {
const declaredAngularLifecycleMethods = getDeclaredAngularLifecycleMethods(node);
const hasConflictingLifecycle = LIFECYCLE_METHODS.every(lifecycleMethod => declaredAngularLifecycleMethods.includes(lifecycleMethod));

Expand All @@ -88,7 +88,7 @@ const validateMethods = (context: WalkContext<void>, node: ClassDeclaration): vo
context.addFailureAtNode(node, failure);
};

const walk = (context: WalkContext<void>): void => {
const walk = (context: WalkContext): void => {
const { sourceFile } = context;

const callback = (node: Node): void => {
Expand Down
4 changes: 2 additions & 2 deletions src/noForwardRefRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export class Rule extends AbstractRule {
}
}

const validateCallExpression = (context: WalkContext<void>, node: CallExpression): void => {
const validateCallExpression = (context: WalkContext, node: CallExpression): void => {
if (node.expression.getText() !== FORWARD_REF) return;

context.addFailureAtNode(node, Rule.FAILURE_STRING);
};

const walk = (context: WalkContext<void>): void => {
const walk = (context: WalkContext): void => {
const { sourceFile } = context;

const callback = (node: Node): void => {
Expand Down
4 changes: 2 additions & 2 deletions src/useLifecycleInterfaceRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Rule extends AbstractRule {
}
}

const validateClassDeclaration = (context: WalkContext<void>, node: ClassDeclaration): void => {
const validateClassDeclaration = (context: WalkContext, node: ClassDeclaration): void => {
const declaredLifecycleInterfaces = getDeclaredAngularLifecycleInterfaces(node);
const declaredMethods = getDeclaredMethods(node);

Expand All @@ -62,7 +62,7 @@ const validateClassDeclaration = (context: WalkContext<void>, node: ClassDeclara
}
};

const walk = (context: WalkContext<void>): void => {
const walk = (context: WalkContext): void => {
const { sourceFile } = context;

const callback = (node: Node): void => {
Expand Down
4 changes: 2 additions & 2 deletions src/usePipeDecoratorRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export class Rule extends AbstractRule {
}
}

const validateClassDeclaration = (context: WalkContext<void>, node: ClassDeclaration): void => {
const validateClassDeclaration = (context: WalkContext, node: ClassDeclaration): void => {
if (getPipeDecorator(node) || !getDeclaredInterfaceName(node, PIPE_TRANSFORM)) return;

context.addFailureAtNode(node, sprintf(Rule.FAILURE_STRING));
};

const walk = (context: WalkContext<void>): void => {
const walk = (context: WalkContext): void => {
const { sourceFile } = context;

const callback = (node: Node): void => {
Expand Down
4 changes: 2 additions & 2 deletions src/usePipeTransformInterfaceRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export class Rule extends AbstractRule {
}
}

const validateClassDeclaration = (context: WalkContext<void>, node: ClassDeclaration): void => {
const validateClassDeclaration = (context: WalkContext, node: ClassDeclaration): void => {
if (!getPipeDecorator(node) || getDeclaredInterfaceName(node, PIPE_TRANSFORM)) return;

context.addFailureAtNode(node, sprintf(Rule.FAILURE_STRING));
};

const walk = (context: WalkContext<void>): void => {
const walk = (context: WalkContext): void => {
const { sourceFile } = context;

const callback = (node: Node): void => {
Expand Down

0 comments on commit 829c675

Please sign in to comment.