@typescript-eslint/utils 7.1.2-alpha.1 → 7.1.2-alpha.10
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.
|
@@ -25,7 +25,7 @@ declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.Metho
|
|
|
25
25
|
* If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
|
|
26
26
|
* given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have
|
|
27
27
|
* not been modified.
|
|
28
|
-
* For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static.
|
|
28
|
+
* For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static.
|
|
29
29
|
*
|
|
30
30
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue}
|
|
31
31
|
* @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
|
|
@@ -53,7 +53,7 @@ exports.getPropertyName = getPropertyName;
|
|
|
53
53
|
* If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
|
|
54
54
|
* given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have
|
|
55
55
|
* not been modified.
|
|
56
|
-
* For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static.
|
|
56
|
+
* For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static.
|
|
57
57
|
*
|
|
58
58
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue}
|
|
59
59
|
* @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "7.1.2-alpha.
|
|
3
|
+
"version": "7.1.2-alpha.10",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
"@eslint-community/eslint-utils": "^4.4.0",
|
|
70
70
|
"@types/json-schema": "^7.0.12",
|
|
71
71
|
"@types/semver": "^7.5.0",
|
|
72
|
-
"@typescript-eslint/scope-manager": "7.1.2-alpha.
|
|
73
|
-
"@typescript-eslint/types": "7.1.2-alpha.
|
|
74
|
-
"@typescript-eslint/typescript-estree": "7.1.2-alpha.
|
|
72
|
+
"@typescript-eslint/scope-manager": "7.1.2-alpha.10",
|
|
73
|
+
"@typescript-eslint/types": "7.1.2-alpha.10",
|
|
74
|
+
"@typescript-eslint/typescript-estree": "7.1.2-alpha.10",
|
|
75
75
|
"semver": "^7.5.4"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"eslint": "^8.56.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@typescript-eslint/parser": "7.1.2-alpha.
|
|
81
|
+
"@typescript-eslint/parser": "7.1.2-alpha.10",
|
|
82
82
|
"downlevel-dts": "*",
|
|
83
83
|
"jest": "29.7.0",
|
|
84
84
|
"prettier": "^3.0.3",
|