Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular-eslint/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
775
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-eslint/eslint-plugin - npm Package Compare versions

Comparing version 0.0.1-alpha.17 to 0.0.1-alpha.18

dist/rules/component-selector.d.ts

40

dist/index.d.ts
import { RULE_NAME as componentClassSuffixRuleName } from './rules/component-class-suffix';
import { RULE_NAME as componentSelectorRuleName } from './rules/component-selector';
import { RULE_NAME as contextualLifecycleRuleName } from './rules/contextual-lifecycle';
import { RULE_NAME as directiveSelectorRuleName } from './rules/directive-selector';
import { RULE_NAME as noHostMetadataPropertyRuleName } from './rules/no-host-metadata-property';
import { RULE_NAME as noInputsMetadataPropertyRuleName } from './rules/no-inputs-metadata-property';
import { RULE_NAME as noLifecycleCallRuleName } from './rules/no-lifecycle-call';
import { RULE_NAME as noOutputNativeRuleName } from './rules/no-output-native';
import { RULE_NAME as noOutputOnPrefixRuleName } from './rules/no-output-on-prefix';
import { RULE_NAME as noOutputRenameRuleName } from './rules/no-output-rename';
import { RULE_NAME as noOutputsMetadataPropertyRuleName } from './rules/no-outputs-metadata-property';

@@ -16,2 +22,26 @@ import { RULE_NAME as noPipeImpureRuleName } from './rules/no-pipe-impure';

rules: {
[componentClassSuffixRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"componentClassSuffix", [{
suffixes: string[];
}], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[componentSelectorRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<import("./rules/component-selector").MessageIds, [{
type: string | string[];
prefix: string | string[];
style: string;
}], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[contextualLifecycleRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"contextuaLifecycle", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[directiveSelectorRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<import("./rules/component-selector").MessageIds, [{
type: string | string[];
prefix: string | string[];
style: string;
}], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noHostMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noHostMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noInputsMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noInputsMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noLifecycleCallRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noLifecycleCall", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noOutputNativeRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noOutputNative", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noOutputOnPrefixRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noOutputOnPrefix", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noOutputRenameRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noOutputRename", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noOutputsMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noOutputsMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noPipeImpureRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noPipeImpure", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noQueriesMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noQueriesMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[preferOnPushComponentChangeDetectionRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"preferOnPushComponentChangeDetection", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[useComponentSelectorRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"useComponentSelector", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;

@@ -22,14 +52,4 @@ [useComponentViewEncapsulationRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"useComponentViewEncapsulation", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;

[usePipeTransformInterfaceRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"usePipeTransformInterface", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noOutputOnPrefixRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noOutputOnPrefix", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noHostMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noHostMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noInputsMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noInputsMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noOutputsMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noOutputsMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noQueriesMetadataPropertyRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noQueriesMetadataProperty", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[componentClassSuffixRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"componentClassSuffix", [{
suffixes: string[];
}], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[noPipeImpureRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"noPipeImpure", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
[preferOnPushComponentChangeDetectionRuleName]: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"preferOnPushComponentChangeDetection", [], import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
};
};
export default _default;

@@ -6,1 +6,2 @@ export declare const COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR = "ClassDeclaration > Decorator:matches([expression.callee.name=\"Component\"], [expression.callee.name=\"Directive\"])";

export declare const INJECTABLE_CLASS_DECORATOR = "ClassDeclaration > Decorator[expression.callee.name=\"Injectable\"]";
export declare const MODULE_CLASS_DECORATOR = "ClassDeclaration > Decorator[expression.callee.name=\"NgModule\"]";

@@ -67,2 +67,5 @@ import { TSESTree } from '@typescript-eslint/experimental-utils';

}
export declare const OPTION_STYLE_CAMEL_CASE = "camelCase";
export declare const OPTION_STYLE_KEBAB_CASE = "kebab-case";
export declare type SelectorStyle = typeof OPTION_STYLE_CAMEL_CASE | typeof OPTION_STYLE_KEBAB_CASE;
export declare type AngularClassDecoratorKeys = keyof typeof AngularClassDecorators;

@@ -76,2 +79,3 @@ export declare type AngularInnerClassDecoratorKeys = Exclude<keyof typeof AngularInnerClassDecorators, number>;

export declare const angularLifecycleMethodKeys: readonly ("ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit" | "ngDoCheck")[];
export declare const ANGULAR_CLASS_DECORATOR_LIFECYCLE_METHOD_MAPPER: ReadonlyMap<AngularClassDecoratorKeys, ReadonlySet<AngularLifecycleMethodKeys>>;
export declare function isIdentifier(node: TSESTree.Node): node is TSESTree.Identifier;

@@ -81,2 +85,3 @@ export declare function isMemberExpression(node: TSESTree.Node): node is TSESTree.MemberExpression;

export declare function isLiteral(node: TSESTree.Node): node is TSESTree.Literal;
export declare function isTemplateLiteral(node: TSESTree.Node): node is TSESTree.TemplateLiteral;
interface LiteralWithStringValue extends TSESTree.Literal {

@@ -105,2 +110,3 @@ value: string;

export declare const getDeclaredAngularLifecycleInterfaces: (node: TSESTree.ClassDeclaration) => readonly ("AfterContentChecked" | "AfterContentInit" | "AfterViewChecked" | "AfterViewInit" | "OnChanges" | "OnDestroy" | "OnInit" | "DoCheck")[];
export declare const getDeclaredAngularLifecycleMethods: (node: TSESTree.ClassDeclaration) => readonly ("ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit" | "ngDoCheck")[];
export declare const ANGULAR_LIFECYCLE_INTERFACES: ReadonlySet<AngularLifecycleInterfaceKeys>;

@@ -127,2 +133,14 @@ export declare const ANGULAR_LIFECYCLE_METHODS: ReadonlySet<AngularLifecycleMethodKeys>;

export declare const getLifecycleInterfaceByMethodName: (methodName: "ngAfterContentChecked" | "ngAfterContentInit" | "ngAfterViewChecked" | "ngAfterViewInit" | "ngOnChanges" | "ngOnDestroy" | "ngOnInit" | "ngDoCheck") => "AfterContentChecked" | "AfterContentInit" | "AfterViewChecked" | "AfterViewInit" | "OnChanges" | "OnDestroy" | "OnInit" | "DoCheck";
/**
* Enforces the invariant that the input is an array.
*/
export declare function arrayify<T>(arg?: T | T[]): T[];
export declare const isNotNullOrUndefined: <T>(input: T | null | undefined) => input is T;
export declare const SelectorValidator: {
attribute(selector: string): boolean;
camelCase(selector: string): boolean;
element(selector: string): boolean;
kebabCase(selector: string): boolean;
prefix(prefix: string, selectorStyle: SelectorStyle): (selector: string) => boolean;
};
export {};
{
"name": "@angular-eslint/eslint-plugin",
"version": "0.0.1-alpha.17",
"version": "0.0.1-alpha.18",
"description": "ESLint plugin for Angular applications, following angular.io/styleguide",

@@ -26,3 +26,3 @@ "license": "MIT",

},
"gitHead": "55bbbdccd1898551fffe75dee14278defb823941"
"gitHead": "a1fa84453b178ad182f25c33d9a147e67881ef54"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc