@angular-eslint/eslint-plugin 1.1.1-alpha.9 → 1.2.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.
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
declare type Options = [{
|
|
2
|
-
template?: number;
|
|
3
|
-
styles?: number;
|
|
4
|
-
animations?: number;
|
|
2
|
+
readonly template?: number;
|
|
3
|
+
readonly styles?: number;
|
|
4
|
+
readonly animations?: number;
|
|
5
5
|
}];
|
|
6
|
-
export declare
|
|
7
|
-
export declare type MessageIds = typeof messageId;
|
|
6
|
+
export declare type MessageIds = 'componentMaxInlineDeclarations';
|
|
8
7
|
export declare const RULE_NAME = "component-max-inline-declarations";
|
|
9
8
|
declare const _default: import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleModule<"componentMaxInlineDeclarations", Options, import("@typescript-eslint/experimental-utils/dist/ts-eslint/Rule").RuleListener>;
|
|
10
9
|
export default _default;
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -101,10 +101,13 @@ declare type LiteralWithStringValue = TSESTree.Literal & {
|
|
|
101
101
|
* avoid repeated typeof checks on the node's value.
|
|
102
102
|
*/
|
|
103
103
|
export declare function isLiteralWithStringValue(node: TSESTree.Node): node is LiteralWithStringValue;
|
|
104
|
+
export declare function isMethodDefinition(node: TSESTree.Node): node is TSESTree.MethodDefinition;
|
|
105
|
+
export declare function isSuper(node: TSESTree.Node): node is TSESTree.Super;
|
|
104
106
|
/**
|
|
105
107
|
* SECTION END:
|
|
106
108
|
* Equivalents of utils exported by TypeScript itself for its own AST
|
|
107
109
|
*/
|
|
110
|
+
export declare function getNearestNodeFrom<T extends TSESTree.Node>({ parent }: TSESTree.Node, predicate: (parent: TSESTree.Node) => parent is T): T | null;
|
|
108
111
|
export declare const getClassName: (node: TSESTree.Node) => string | undefined;
|
|
109
112
|
export declare const getDecorator: (node: TSESTree.ClassDeclaration, decoratorName: string) => TSESTree.Decorator | undefined;
|
|
110
113
|
export declare const getAngularClassDecorator: ({ decorators, }: TSESTree.ClassDeclaration) => AngularClassDecoratorKeys | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "ESLint plugin for Angular applications, following angular.io/styleguide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"build": "rimraf ./dist && microbundle --tsconfig tsconfig.build.json --no-sourcemap --target=node --compress --format=cjs && ncp ./src/configs ./dist/configs",
|
|
10
10
|
"test": "jest --coverage",
|
|
11
11
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
12
|
-
"check-configs": "jest tests/configs.test.ts --runTestsByPath --silent --runInBand"
|
|
12
|
+
"check-configs": "jest tests/configs.test.ts --runTestsByPath --silent --runInBand",
|
|
13
|
+
"clean": "rimraf ./dist"
|
|
13
14
|
},
|
|
14
15
|
"repository": {
|
|
15
16
|
"type": "git",
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
"@typescript-eslint/experimental-utils": "4.3.0"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@angular-eslint/utils": "1.
|
|
30
|
+
"@angular-eslint/utils": "1.2.0"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"eslint": "*",
|
|
@@ -35,5 +36,5 @@
|
|
|
35
36
|
"eslint-plugin-prefer-arrow": "*",
|
|
36
37
|
"typescript": "*"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c7deee67f98d9b699eb5f624b3bb929069858e7e"
|
|
39
40
|
}
|