@sarj/eslint-plugin 16.14.1 → 16.14.2
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/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
52
52
|
// package.json
|
|
53
53
|
var package_default = {
|
|
54
54
|
name: "@sarj/eslint-plugin",
|
|
55
|
-
version: "16.14.
|
|
55
|
+
version: "16.14.2",
|
|
56
56
|
packageManager: "npm@12.2.0",
|
|
57
57
|
description: "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
58
58
|
type: "module",
|
|
@@ -1770,7 +1770,7 @@ function staticPropertyName(node, sourceCode) {
|
|
|
1770
1770
|
const direct = import_utils7.ASTUtils.getPropertyName(node);
|
|
1771
1771
|
if (direct !== null || !node.computed) return direct;
|
|
1772
1772
|
const key = node.type === import_utils7.AST_NODE_TYPES.MemberExpression ? node.property : node.key;
|
|
1773
|
-
return
|
|
1773
|
+
return scopedStaticString(key, sourceCode);
|
|
1774
1774
|
}
|
|
1775
1775
|
|
|
1776
1776
|
// src/rules/prefer-typed-reflection.ts
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@sarj/eslint-plugin",
|
|
4
|
-
version: "16.14.
|
|
4
|
+
version: "16.14.2",
|
|
5
5
|
packageManager: "npm@12.2.0",
|
|
6
6
|
description: "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
7
7
|
type: "module",
|
|
@@ -1723,7 +1723,7 @@ function staticPropertyName(node, sourceCode) {
|
|
|
1723
1723
|
const direct = ASTUtils2.getPropertyName(node);
|
|
1724
1724
|
if (direct !== null || !node.computed) return direct;
|
|
1725
1725
|
const key = node.type === AST_NODE_TYPES5.MemberExpression ? node.property : node.key;
|
|
1726
|
-
return
|
|
1726
|
+
return scopedStaticString(key, sourceCode);
|
|
1727
1727
|
}
|
|
1728
1728
|
|
|
1729
1729
|
// src/rules/prefer-typed-reflection.ts
|