mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Updated TSLint rules #2
This commit is contained in:
+4
-1
@@ -2,7 +2,10 @@ import { inject, injectable, } from 'inversify';
|
||||
import { ServiceIdentifiers } from '../../../container/ServiceIdentifiers';
|
||||
|
||||
import * as ESTree from 'estree';
|
||||
|
||||
// tslint:disable
|
||||
import { Expression } from 'estree';
|
||||
// tslint:enable
|
||||
|
||||
import { TIdentifierNamesGeneratorFactory } from '../../../types/container/generators/TIdentifierNamesGeneratorFactory';
|
||||
import { TStatement } from '../../../types/node/TStatement';
|
||||
@@ -65,7 +68,7 @@ export class CallExpressionControlFlowStorageCallNode extends AbstractCustomNode
|
||||
public initialize (
|
||||
controlFlowStorageName: string,
|
||||
controlFlowStorageKey: string,
|
||||
callee: Expression,
|
||||
callee: ESTree.Expression,
|
||||
expressionArguments: (ESTree.Expression | ESTree.SpreadElement)[]
|
||||
): void {
|
||||
this.controlFlowStorageName = controlFlowStorageName;
|
||||
|
||||
@@ -153,8 +153,6 @@ export class StringArrayCallsWrapper extends AbstractCustomNode {
|
||||
stringArrayCallsWrapperName: this.stringArrayCallsWrapperName
|
||||
}
|
||||
);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return decodeStringArrayTemplate;
|
||||
|
||||
Vendored
-1
@@ -1,7 +1,6 @@
|
||||
/* tslint:disable:interface-name */
|
||||
|
||||
import * as escodegen from 'escodegen-wallaby';
|
||||
import * as ESTree from 'estree';
|
||||
|
||||
declare module 'estree' {
|
||||
export interface BaseNodeMetadata {
|
||||
|
||||
@@ -101,7 +101,7 @@ export class TemplateLiteralTransformer extends AbstractNodeTransformer {
|
||||
);
|
||||
|
||||
nodes.forEach((node: ESTree.Literal | ESTree.Expression) => {
|
||||
root = NodeFactory.binaryExpressionNode('+', root, <ESTree.Literal | ESTree.Expression>node);
|
||||
root = NodeFactory.binaryExpressionNode('+', root, node);
|
||||
});
|
||||
|
||||
return root;
|
||||
|
||||
Reference in New Issue
Block a user