@typescript-eslint/experimental-utils 2.27.1-alpha.9 → 2.28.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
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
|
+
# [2.28.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.27.0...v2.28.0) (2020-04-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint-plugin:** add rule `prefer-reduce-type-parameter` ([#1707](https://github.com/typescript-eslint/typescript-eslint/issues/1707)) ([c92d240](https://github.com/typescript-eslint/typescript-eslint/commit/c92d240e49113779053eac32038382b282812afc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.27.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.26.0...v2.27.0) (2020-04-06)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { TSESTree } from '../../ts-estree';
|
|
2
|
-
declare const isArrowToken: (token: TSESTree.
|
|
2
|
+
declare const isArrowToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
3
3
|
value: "=>";
|
|
4
4
|
};
|
|
5
|
-
declare const isNotArrowToken: (token: TSESTree.
|
|
6
|
-
declare const isClosingBraceToken: (token: TSESTree.
|
|
5
|
+
declare const isNotArrowToken: (token: TSESTree.Token) => boolean;
|
|
6
|
+
declare const isClosingBraceToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
7
7
|
value: "}";
|
|
8
8
|
};
|
|
9
|
-
declare const isNotClosingBraceToken: (token: TSESTree.
|
|
10
|
-
declare const isClosingBracketToken: (token: TSESTree.
|
|
9
|
+
declare const isNotClosingBraceToken: (token: TSESTree.Token) => boolean;
|
|
10
|
+
declare const isClosingBracketToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
11
11
|
value: "]";
|
|
12
12
|
};
|
|
13
|
-
declare const isNotClosingBracketToken: (token: TSESTree.
|
|
14
|
-
declare const isClosingParenToken: (token: TSESTree.
|
|
13
|
+
declare const isNotClosingBracketToken: (token: TSESTree.Token) => boolean;
|
|
14
|
+
declare const isClosingParenToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
15
15
|
value: ")";
|
|
16
16
|
};
|
|
17
|
-
declare const isNotClosingParenToken: (token: TSESTree.
|
|
18
|
-
declare const isColonToken: (token: TSESTree.
|
|
17
|
+
declare const isNotClosingParenToken: (token: TSESTree.Token) => boolean;
|
|
18
|
+
declare const isColonToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
19
19
|
value: ":";
|
|
20
20
|
};
|
|
21
|
-
declare const isNotColonToken: (token: TSESTree.
|
|
22
|
-
declare const isCommaToken: (token: TSESTree.
|
|
21
|
+
declare const isNotColonToken: (token: TSESTree.Token) => boolean;
|
|
22
|
+
declare const isCommaToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
23
23
|
value: ",";
|
|
24
24
|
};
|
|
25
|
-
declare const isNotCommaToken: (token: TSESTree.
|
|
26
|
-
declare const isCommentToken: (token: TSESTree.
|
|
27
|
-
declare const isNotCommentToken: <T extends TSESTree.
|
|
28
|
-
declare const isOpeningBraceToken: (token: TSESTree.
|
|
25
|
+
declare const isNotCommaToken: (token: TSESTree.Token) => boolean;
|
|
26
|
+
declare const isCommentToken: (token: TSESTree.Token) => token is TSESTree.Comment;
|
|
27
|
+
declare const isNotCommentToken: <T extends TSESTree.Token>(token: T) => token is Exclude<T, TSESTree.Comment>;
|
|
28
|
+
declare const isOpeningBraceToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
29
29
|
value: "{";
|
|
30
30
|
};
|
|
31
|
-
declare const isNotOpeningBraceToken: (token: TSESTree.
|
|
32
|
-
declare const isOpeningBracketToken: (token: TSESTree.
|
|
31
|
+
declare const isNotOpeningBraceToken: (token: TSESTree.Token) => boolean;
|
|
32
|
+
declare const isOpeningBracketToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
33
33
|
value: "[";
|
|
34
34
|
};
|
|
35
|
-
declare const isNotOpeningBracketToken: (token: TSESTree.
|
|
36
|
-
declare const isOpeningParenToken: (token: TSESTree.
|
|
35
|
+
declare const isNotOpeningBracketToken: (token: TSESTree.Token) => boolean;
|
|
36
|
+
declare const isOpeningParenToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
37
37
|
value: "(";
|
|
38
38
|
};
|
|
39
|
-
declare const isNotOpeningParenToken: (token: TSESTree.
|
|
40
|
-
declare const isSemicolonToken: (token: TSESTree.
|
|
39
|
+
declare const isNotOpeningParenToken: (token: TSESTree.Token) => boolean;
|
|
40
|
+
declare const isSemicolonToken: (token: TSESTree.Token) => token is TSESTree.PunctuatorToken & {
|
|
41
41
|
value: ";";
|
|
42
42
|
};
|
|
43
|
-
declare const isNotSemicolonToken: (token: TSESTree.
|
|
43
|
+
declare const isNotSemicolonToken: (token: TSESTree.Token) => boolean;
|
|
44
44
|
export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, };
|
|
45
45
|
//# sourceMappingURL=predicates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"m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Z,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,GAAwB;IAExB,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACxD,CAAC;AAwCQ,4CAAgB;AAtCzB;;;;;;GAMG;AACH,SAAgB,SAAS,CACvB,QAAoB,EAAE,EACtB,SAAqB,EAAE;IAEvB,iDAAiD;IACjD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAErE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,GAAwB;IAExB,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACxD,CAAC;AAwCQ,4CAAgB;AAtCzB;;;;;;GAMG;AACH,SAAgB,SAAS,CACvB,QAAoB,EAAE,EACtB,SAAqB,EAAE;IAEvB,iDAAiD;IACjD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAErE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAa,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACtD,MAAM,WAAW,GAAG,GAAG,IAAI,KAAK,CAAC;QACjC,MAAM,YAAY,GAAG,GAAG,IAAI,MAAM,CAAC;QACnC,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAEhC,IAAI,WAAW,IAAI,YAAY,EAAE;YAC/B,IAAI,gBAAgB,CAAC,UAAU,CAAC,IAAI,gBAAgB,CAAC,WAAW,CAAC,EAAE;gBACjE,cAAc;gBACd,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;aAC/C;iBAAM;gBACL,aAAa;gBACb,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;aACxB;SACF;aAAM,IAAI,WAAW,EAAE;YACtB,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;SACvB;aAAM;YACL,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;SACxB;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AA7BD,8BA6BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/experimental-utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.28.0",
|
|
4
4
|
"description": "(Experimental) Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@types/json-schema": "^7.0.3",
|
|
40
|
-
"@typescript-eslint/typescript-estree": "2.
|
|
40
|
+
"@typescript-eslint/typescript-estree": "2.28.0",
|
|
41
41
|
"eslint-scope": "^5.0.0",
|
|
42
42
|
"eslint-utils": "^2.0.0"
|
|
43
43
|
},
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"type": "opencollective",
|
|
52
52
|
"url": "https://opencollective.com/typescript-eslint"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "73675d1841ecbe9e8bf707478950d708592cbe06"
|
|
55
55
|
}
|