@angular-eslint/eslint-plugin 1.0.1-alpha.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,20 +48,22 @@ export declare enum AngularLifecycleInterfaces {
48
48
  AfterContentInit = "AfterContentInit",
49
49
  AfterViewChecked = "AfterViewChecked",
50
50
  AfterViewInit = "AfterViewInit",
51
+ DoBootstrap = "DoBootstrap",
52
+ DoCheck = "DoCheck",
51
53
  OnChanges = "OnChanges",
52
54
  OnDestroy = "OnDestroy",
53
- OnInit = "OnInit",
54
- DoCheck = "DoCheck"
55
+ OnInit = "OnInit"
55
56
  }
56
57
  export declare enum AngularLifecycleMethods {
57
58
  ngAfterContentChecked = "ngAfterContentChecked",
58
59
  ngAfterContentInit = "ngAfterContentInit",
59
60
  ngAfterViewChecked = "ngAfterViewChecked",
60
61
  ngAfterViewInit = "ngAfterViewInit",
62
+ ngDoBootstrap = "ngDoBootstrap",
63
+ ngDoCheck = "ngDoCheck",
61
64
  ngOnChanges = "ngOnChanges",
62
65
  ngOnDestroy = "ngOnDestroy",
63
- ngOnInit = "ngOnInit",
64
- ngDoCheck = "ngDoCheck"
66
+ ngOnInit = "ngOnInit"
65
67
  }
66
68
  export declare const OPTION_STYLE_CAMEL_CASE = "camelCase";
67
69
  export declare const OPTION_STYLE_KEBAB_CASE = "kebab-case";
@@ -72,8 +74,8 @@ export declare type AngularLifecycleInterfaceKeys = keyof typeof AngularLifecycl
72
74
  export declare type AngularLifecycleMethodKeys = keyof typeof AngularLifecycleMethods;
73
75
  export declare const angularClassDecoratorKeys: readonly ("Component" | "Directive" | "Injectable" | "NgModule" | "Pipe")[];
74
76
  export declare const angularInnerClassDecoratorKeys: readonly ("ContentChild" | "ContentChildren" | "HostBinding" | "Input" | "Output" | "ViewChild" | "ViewChildren" | "HostListener" | "Attribute" | "Host" | "Inject" | "Optional" | "Self" | "SkipSelf")[];
75
- export declare const angularLifecycleInterfaceKeys: readonly ("AfterContentChecked" | "AfterContentInit" | "AfterViewChecked" | "AfterViewInit" | "OnChanges" | "OnDestroy" | "OnInit" | "DoCheck")[];
76
- export declare const angularLifecycleMethodKeys: readonly ("ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit" | "ngDoCheck")[];
77
+ export declare const angularLifecycleInterfaceKeys: readonly ("AfterContentChecked" | "AfterContentInit" | "AfterViewChecked" | "AfterViewInit" | "DoBootstrap" | "DoCheck" | "OnChanges" | "OnDestroy" | "OnInit")[];
78
+ export declare const angularLifecycleMethodKeys: readonly ("ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngDoBootstrap" | "ngDoCheck" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit")[];
77
79
  export declare const ANGULAR_CLASS_DECORATOR_LIFECYCLE_METHOD_MAPPER: ReadonlyMap<AngularClassDecoratorKeys, ReadonlySet<AngularLifecycleMethodKeys>>;
78
80
  export declare const ANGULAR_INNER_CLASS_DECORATORS: ReadonlySet<AngularInnerClassDecoratorKeys>;
79
81
  export declare const ANGULAR_CLASS_DECORATORS: ReadonlySet<AngularClassDecoratorKeys>;
@@ -103,6 +105,7 @@ export declare function isLiteralWithStringValue(node: TSESTree.Node): node is L
103
105
  */
104
106
  export declare const getClassName: (node: TSESTree.Node) => string | undefined;
105
107
  export declare const getDecorator: (node: TSESTree.ClassDeclaration, decoratorName: string) => TSESTree.Decorator | undefined;
108
+ export declare const getAngularClassDecorator: ({ decorators, }: TSESTree.ClassDeclaration) => AngularClassDecoratorKeys | undefined;
106
109
  export declare const getDecoratorArgument: (decorator: TSESTree.Decorator) => TSESTree.ObjectExpression | undefined;
107
110
  export declare const getDecoratorName: (decorator: TSESTree.Decorator) => string | undefined;
108
111
  export declare const getPipeDecorator: (node: TSESTree.ClassDeclaration) => TSESTree.Decorator | undefined;
@@ -114,8 +117,8 @@ export declare const getDeclaredAngularLifecycleInterfaces: (node: TSESTree.Clas
114
117
  export declare const getDeclaredAngularLifecycleMethods: (node: TSESTree.ClassDeclaration) => ReadonlyArray<AngularLifecycleMethodKeys>;
115
118
  export declare const ANGULAR_LIFECYCLE_INTERFACES: ReadonlySet<AngularLifecycleInterfaceKeys>;
116
119
  export declare const ANGULAR_LIFECYCLE_METHODS: ReadonlySet<AngularLifecycleMethodKeys>;
117
- export declare const isAngularLifecycleInterface: (value: string) => value is "AfterContentChecked" | "AfterContentInit" | "AfterViewChecked" | "AfterViewInit" | "OnChanges" | "OnDestroy" | "OnInit" | "DoCheck";
118
- export declare const isAngularLifecycleMethod: (value: string) => value is "ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit" | "ngDoCheck";
120
+ export declare const isAngularLifecycleInterface: (value: string) => value is "AfterContentChecked" | "AfterContentInit" | "AfterViewChecked" | "AfterViewInit" | "DoBootstrap" | "DoCheck" | "OnChanges" | "OnDestroy" | "OnInit";
121
+ export declare const isAngularLifecycleMethod: (value: string) => value is "ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngDoBootstrap" | "ngDoCheck" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit";
119
122
  export declare const isAngularClassDecorator: (value: string) => value is "Component" | "Directive" | "Injectable" | "NgModule" | "Pipe";
120
123
  export declare const isAngularInnerClassDecorator: (value: string) => value is "ContentChild" | "ContentChildren" | "HostBinding" | "Input" | "Output" | "ViewChild" | "ViewChildren" | "HostListener" | "Attribute" | "Host" | "Inject" | "Optional" | "Self" | "SkipSelf";
121
124
  /**
@@ -153,4 +156,5 @@ export declare function isImportedFrom(identifier: TSESTree.Identifier, module:
153
156
  * Convert an array of prefix to human-readable text.
154
157
  */
155
158
  export declare const getReadablePrefixes: (prefixes: string[]) => string;
159
+ export declare const toPattern: (value: readonly unknown[]) => RegExp;
156
160
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin",
3
- "version": "1.0.1-alpha.1+74a6cfb",
3
+ "version": "1.1.0",
4
4
  "description": "ESLint plugin for Angular applications, following angular.io/styleguide",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "@typescript-eslint/experimental-utils": "4.3.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@angular-eslint/utils": "1.0.0"
29
+ "@angular-eslint/utils": "1.1.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "eslint": "*",
@@ -35,5 +35,5 @@
35
35
  "eslint-plugin-prefer-arrow": "*",
36
36
  "typescript": "*"
37
37
  },
38
- "gitHead": "74a6cfbdc53d1d5e0625638ff7f4063d9511e6e5"
38
+ "gitHead": "e1057dd2c39b2b7af16280233b478743b0df02ff"
39
39
  }