@typescript-eslint/experimental-utils 5.0.1-alpha.6 → 5.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.
- package/CHANGELOG.md +11 -0
- package/dist/ast-utils/helpers.d.ts +13 -0
- package/dist/ast-utils/helpers.d.ts.map +1 -0
- package/dist/ast-utils/helpers.js +14 -0
- package/dist/ast-utils/helpers.js.map +1 -0
- package/dist/ast-utils/predicates.d.ts.map +1 -1
- package/dist/ast-utils/predicates.js +15 -21
- package/dist/ast-utils/predicates.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.0.0...v5.1.0) (2021-10-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **experimental-utils:** extract `ast-utils`' `predicates`' helpers ([#3976](https://github.com/typescript-eslint/typescript-eslint/issues/3976)) ([154ec9a](https://github.com/typescript-eslint/typescript-eslint/commit/154ec9aea8e81732cafe36af97c4822f1591b077))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [5.0.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.33.0...v5.0.0) (2021-10-11)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AST_NODE_TYPES, TSESTree } from '../ts-estree';
|
|
2
|
+
export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is TSESTree.Node & {
|
|
3
|
+
type: NodeType;
|
|
4
|
+
};
|
|
5
|
+
export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]>(nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is TSESTree.Node & {
|
|
6
|
+
type: NodeTypes[number];
|
|
7
|
+
};
|
|
8
|
+
export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPES, Conditions extends Partial<TSESTree.Node & {
|
|
9
|
+
type: NodeType;
|
|
10
|
+
}>>(nodeType: NodeType, conditions: Conditions) => (node: TSESTree.Node | null | undefined) => node is TSESTree.Node & {
|
|
11
|
+
type: NodeType;
|
|
12
|
+
} & Conditions;
|
|
13
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExD,eAAO,MAAM,YAAY,kEAGf,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS;;CAEf,CAAC;AAE5B,eAAO,MAAM,aAAa,gFAGhB,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS;;CAEC,CAAC;AAI5C,eAAO,MAAM,0BAA0B;;0DAO/B,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS;;cAWvC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isNodeOfTypeWithConditions = exports.isNodeOfTypes = exports.isNodeOfType = void 0;
|
|
4
|
+
const isNodeOfType = (nodeType) => (node) => (node === null || node === void 0 ? void 0 : node.type) === nodeType;
|
|
5
|
+
exports.isNodeOfType = isNodeOfType;
|
|
6
|
+
const isNodeOfTypes = (nodeTypes) => (node) => !!node && nodeTypes.includes(node.type);
|
|
7
|
+
exports.isNodeOfTypes = isNodeOfTypes;
|
|
8
|
+
const isNodeOfTypeWithConditions = (nodeType, conditions) => {
|
|
9
|
+
const entries = Object.entries(conditions);
|
|
10
|
+
return (node) => (node === null || node === void 0 ? void 0 : node.type) === nodeType &&
|
|
11
|
+
entries.every(([key, value]) => node[key] === value);
|
|
12
|
+
};
|
|
13
|
+
exports.isNodeOfTypeWithConditions = isNodeOfTypeWithConditions;
|
|
14
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GACvB,CAAkC,QAAkB,EAAE,EAAE,CACxD,CACE,IAAsC,EACM,EAAE,CAC9C,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,QAAQ,CAAC;AALf,QAAA,YAAY,gBAKG;AAErB,MAAM,aAAa,GACxB,CAA8C,SAAoB,EAAE,EAAE,CACtE,CACE,IAAsC,EACe,EAAE,CACvD,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAL/B,QAAA,aAAa,iBAKkB;AAIrC,MAAM,0BAA0B,GAAG,CAIxC,QAAkB,EAClB,UAAsB,EAGsC,EAAE;IAC9D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAExC,CAAC;IAEF,OAAO,CACL,IAAsC,EACmB,EAAE,CAC3D,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,QAAQ;QACvB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC;AACzD,CAAC,CAAC;AAlBW,QAAA,0BAA0B,8BAkBrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,O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CAAC;AAEZ,QAAA,MAAM,gBAAgB;;CAA8C,CAAC;AAErE,QAAA,MAAM,mBAAmB;;CAAiD,CAAC;AAE3E,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAef,CAAC;AAEZ;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;EAGlB,CAAC;AAEF;;GAEG;AACH,iBAAS,QAAQ,CACf,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,GAC9B,IAAI,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAO3E;AAED,QAAA,MAAM,YAAY;;CAA0C,CAAC;AAE7D;;GAEG;AACH,QAAA,MAAM,iBAAiB;;CAA+C,CAAC;AAEvE;;GAEG;AACH,iBAAS,cAAc,CACrB,IAAI,EAAE,QAAQ,CAAC,KAAK,GAAG,SAAS,GAAG,IAAI,GACtC,IAAI,IAAI,QAAQ,CAAC,eAAe,GAAG;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAEvD;AAED,QAAA,MAAM,MAAM;;;;;;;;;;EAMD,CAAC;AAEZ,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,MAAM,EACN,mBAAmB,EACnB,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,GACrB,CAAC"}
|
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isVariableDeclarator = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isSetter = exports.isOptionalCallExpression = exports.isOptionalChainPunctuator = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLogicalOrOperator = exports.isLoop = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isClassOrTypeElement = exports.isConstructor = exports.isAwaitKeyword = exports.isAwaitExpression = void 0;
|
|
4
4
|
const ts_estree_1 = require("../ts-estree");
|
|
5
|
-
const
|
|
6
|
-
const isNodeOfTypes = (nodeTypes) => (node) => !!node && nodeTypes.includes(node.type);
|
|
7
|
-
const isNodeOfTypeWithConditions = (nodeType, conditions) => {
|
|
8
|
-
const entries = Object.entries(conditions);
|
|
9
|
-
return (node) => (node === null || node === void 0 ? void 0 : node.type) === nodeType &&
|
|
10
|
-
entries.every(([key, value]) => node[key] === value);
|
|
11
|
-
};
|
|
5
|
+
const helpers_1 = require("./helpers");
|
|
12
6
|
function isOptionalChainPunctuator(token) {
|
|
13
7
|
return token.type === ts_estree_1.AST_TOKEN_TYPES.Punctuator && token.value === '?.';
|
|
14
8
|
}
|
|
@@ -28,7 +22,7 @@ exports.isNotNonNullAssertionPunctuator = isNotNonNullAssertionPunctuator;
|
|
|
28
22
|
/**
|
|
29
23
|
* Returns true if and only if the node represents: foo?.() or foo.bar?.()
|
|
30
24
|
*/
|
|
31
|
-
const isOptionalCallExpression = isNodeOfTypeWithConditions(ts_estree_1.AST_NODE_TYPES.CallExpression,
|
|
25
|
+
const isOptionalCallExpression = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.CallExpression,
|
|
32
26
|
// this flag means the call expression itself is option
|
|
33
27
|
// i.e. it is foo.bar?.() and not foo?.bar()
|
|
34
28
|
{ optional: true });
|
|
@@ -36,7 +30,7 @@ exports.isOptionalCallExpression = isOptionalCallExpression;
|
|
|
36
30
|
/**
|
|
37
31
|
* Returns true if and only if the node represents logical OR
|
|
38
32
|
*/
|
|
39
|
-
const isLogicalOrOperator = isNodeOfTypeWithConditions(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' });
|
|
33
|
+
const isLogicalOrOperator = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' });
|
|
40
34
|
exports.isLogicalOrOperator = isLogicalOrOperator;
|
|
41
35
|
/**
|
|
42
36
|
* Checks if a node is a type assertion:
|
|
@@ -45,19 +39,19 @@ exports.isLogicalOrOperator = isLogicalOrOperator;
|
|
|
45
39
|
* <foo>x
|
|
46
40
|
* ```
|
|
47
41
|
*/
|
|
48
|
-
const isTypeAssertion = isNodeOfTypes([
|
|
42
|
+
const isTypeAssertion = (0, helpers_1.isNodeOfTypes)([
|
|
49
43
|
ts_estree_1.AST_NODE_TYPES.TSAsExpression,
|
|
50
44
|
ts_estree_1.AST_NODE_TYPES.TSTypeAssertion,
|
|
51
45
|
]);
|
|
52
46
|
exports.isTypeAssertion = isTypeAssertion;
|
|
53
|
-
const isVariableDeclarator = isNodeOfType(ts_estree_1.AST_NODE_TYPES.VariableDeclarator);
|
|
47
|
+
const isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator);
|
|
54
48
|
exports.isVariableDeclarator = isVariableDeclarator;
|
|
55
49
|
const functionTypes = [
|
|
56
50
|
ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression,
|
|
57
51
|
ts_estree_1.AST_NODE_TYPES.FunctionDeclaration,
|
|
58
52
|
ts_estree_1.AST_NODE_TYPES.FunctionExpression,
|
|
59
53
|
];
|
|
60
|
-
const isFunction = isNodeOfTypes(functionTypes);
|
|
54
|
+
const isFunction = (0, helpers_1.isNodeOfTypes)(functionTypes);
|
|
61
55
|
exports.isFunction = isFunction;
|
|
62
56
|
const functionTypeTypes = [
|
|
63
57
|
ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
|
|
@@ -67,18 +61,18 @@ const functionTypeTypes = [
|
|
|
67
61
|
ts_estree_1.AST_NODE_TYPES.TSFunctionType,
|
|
68
62
|
ts_estree_1.AST_NODE_TYPES.TSMethodSignature,
|
|
69
63
|
];
|
|
70
|
-
const isFunctionType = isNodeOfTypes(functionTypeTypes);
|
|
64
|
+
const isFunctionType = (0, helpers_1.isNodeOfTypes)(functionTypeTypes);
|
|
71
65
|
exports.isFunctionType = isFunctionType;
|
|
72
|
-
const isFunctionOrFunctionType = isNodeOfTypes([
|
|
66
|
+
const isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([
|
|
73
67
|
...functionTypes,
|
|
74
68
|
...functionTypeTypes,
|
|
75
69
|
]);
|
|
76
70
|
exports.isFunctionOrFunctionType = isFunctionOrFunctionType;
|
|
77
|
-
const isTSFunctionType = isNodeOfType(ts_estree_1.AST_NODE_TYPES.TSFunctionType);
|
|
71
|
+
const isTSFunctionType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSFunctionType);
|
|
78
72
|
exports.isTSFunctionType = isTSFunctionType;
|
|
79
|
-
const isTSConstructorType = isNodeOfType(ts_estree_1.AST_NODE_TYPES.TSConstructorType);
|
|
73
|
+
const isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType);
|
|
80
74
|
exports.isTSConstructorType = isTSConstructorType;
|
|
81
|
-
const isClassOrTypeElement = isNodeOfTypes([
|
|
75
|
+
const isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([
|
|
82
76
|
// ClassElement
|
|
83
77
|
ts_estree_1.AST_NODE_TYPES.PropertyDefinition,
|
|
84
78
|
ts_estree_1.AST_NODE_TYPES.FunctionExpression,
|
|
@@ -98,7 +92,7 @@ exports.isClassOrTypeElement = isClassOrTypeElement;
|
|
|
98
92
|
/**
|
|
99
93
|
* Checks if a node is a constructor method.
|
|
100
94
|
*/
|
|
101
|
-
const isConstructor = isNodeOfTypeWithConditions(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' });
|
|
95
|
+
const isConstructor = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' });
|
|
102
96
|
exports.isConstructor = isConstructor;
|
|
103
97
|
/**
|
|
104
98
|
* Checks if a node is a setter method.
|
|
@@ -110,12 +104,12 @@ function isSetter(node) {
|
|
|
110
104
|
node.kind === 'set');
|
|
111
105
|
}
|
|
112
106
|
exports.isSetter = isSetter;
|
|
113
|
-
const isIdentifier = isNodeOfType(ts_estree_1.AST_NODE_TYPES.Identifier);
|
|
107
|
+
const isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier);
|
|
114
108
|
exports.isIdentifier = isIdentifier;
|
|
115
109
|
/**
|
|
116
110
|
* Checks if a node represents an `await …` expression.
|
|
117
111
|
*/
|
|
118
|
-
const isAwaitExpression = isNodeOfType(ts_estree_1.AST_NODE_TYPES.AwaitExpression);
|
|
112
|
+
const isAwaitExpression = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.AwaitExpression);
|
|
119
113
|
exports.isAwaitExpression = isAwaitExpression;
|
|
120
114
|
/**
|
|
121
115
|
* Checks if a possible token is the `await` keyword.
|
|
@@ -124,7 +118,7 @@ function isAwaitKeyword(node) {
|
|
|
124
118
|
return (node === null || node === void 0 ? void 0 : node.type) === ts_estree_1.AST_TOKEN_TYPES.Identifier && node.value === 'await';
|
|
125
119
|
}
|
|
126
120
|
exports.isAwaitKeyword = isAwaitKeyword;
|
|
127
|
-
const isLoop = isNodeOfTypes([
|
|
121
|
+
const isLoop = (0, helpers_1.isNodeOfTypes)([
|
|
128
122
|
ts_estree_1.AST_NODE_TYPES.DoWhileStatement,
|
|
129
123
|
ts_estree_1.AST_NODE_TYPES.ForStatement,
|
|
130
124
|
ts_estree_1.AST_NODE_TYPES.ForInStatement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;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CAAC,CAAC;AAoDV,oDAAoB;AAlDtB;;GAEG;AACH,MAAM,aAAa,GAAG,IAAA,oCAA0B,EAC9C,0BAAc,CAAC,gBAAgB,EAC/B,EAAE,IAAI,EAAE,aAAa,EAAE,CACxB,CAAC;AA2CA,sCAAa;AAzCf;;GAEG;AACH,SAAS,QAAQ,CACf,IAA+B;IAE/B,OAAO,CACL,CAAC,CAAC,IAAI;QACN,CAAC,IAAI,CAAC,IAAI,KAAK,0BAAc,CAAC,gBAAgB;YAC5C,IAAI,CAAC,IAAI,KAAK,0BAAc,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,IAAI,KAAK,KAAK,CACpB,CAAC;AACJ,CAAC;AA0CC,4BAAQ;AAxCV,MAAM,YAAY,GAAG,IAAA,sBAAY,EAAC,0BAAc,CAAC,UAAU,CAAC,CAAC;AAgC3D,oCAAY;AA9Bd;;GAEG;AACH,MAAM,iBAAiB,GAAG,IAAA,sBAAY,EAAC,0BAAc,CAAC,eAAe,CAAC,CAAC;AAoBrE,8CAAiB;AAlBnB;;GAEG;AACH,SAAS,cAAc,CACrB,IAAuC;IAEvC,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,2BAAe,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;AAC7E,CAAC;AAYC,wCAAc;AAVhB,MAAM,MAAM,GAAG,IAAA,uBAAa,EAAC;IAC3B,0BAAc,CAAC,gBAAgB;IAC/B,0BAAc,CAAC,YAAY;IAC3B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;CACrB,CAAC,CAAC;AAWV,wBAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/experimental-utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "(Experimental) Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@types/json-schema": "^7.0.
|
|
43
|
-
"@typescript-eslint/scope-manager": "5.
|
|
44
|
-
"@typescript-eslint/types": "5.
|
|
45
|
-
"@typescript-eslint/typescript-estree": "5.
|
|
42
|
+
"@types/json-schema": "^7.0.9",
|
|
43
|
+
"@typescript-eslint/scope-manager": "5.1.0",
|
|
44
|
+
"@typescript-eslint/types": "5.1.0",
|
|
45
|
+
"@typescript-eslint/typescript-estree": "5.1.0",
|
|
46
46
|
"eslint-scope": "^5.1.1",
|
|
47
47
|
"eslint-utils": "^3.0.0"
|
|
48
48
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "d4ff88e766a3fd0db3eda5c1ec24307d936a522e"
|
|
67
67
|
}
|