From 00743df29fef6809a34b720aa2660ff3f432ce33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=80=E1=85=B5=E1=86=B7=E1=84=89=E1=85=A1=E1=86=BC?= =?UTF-8?q?=E1=84=83=E1=85=AE?= Date: Fri, 8 Mar 2024 23:09:49 +0900 Subject: [PATCH 1/2] docs: edit description about symbol in getStaticValue function --- packages/utils/src/ast-utils/eslint-utils/astUtilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts b/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts index 797585f34a5d..a8446e177726 100644 --- a/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts +++ b/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts @@ -50,7 +50,7 @@ const getPropertyName = eslintUtils.getPropertyName as ( * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have * not been modified. - * For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static. + * 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. * * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the From 3542bd127948ea6967649a1948e88df9d96d5a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=80=E1=85=B5=E1=86=B7=E1=84=89=E1=85=A1=E1=86=BC?= =?UTF-8?q?=E1=84=83=E1=85=AE?= Date: Sat, 9 Mar 2024 17:26:52 +0900 Subject: [PATCH 2/2] docs: add comma --- packages/utils/src/ast-utils/eslint-utils/astUtilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts b/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts index a8446e177726..404697d0e1ce 100644 --- a/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts +++ b/packages/utils/src/ast-utils/eslint-utils/astUtilities.ts @@ -50,7 +50,7 @@ const getPropertyName = eslintUtils.getPropertyName as ( * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have * not been modified. - * 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. + * 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. * * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the