@sarj/eslint-plugin 16.5.1 → 16.5.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 +4 -3
- package/dist/index.js +4 -3
- 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.5.
|
|
55
|
+
version: "16.5.2",
|
|
56
56
|
packageManager: "npm@12.1.0",
|
|
57
57
|
description: "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
58
58
|
type: "module",
|
|
@@ -12751,11 +12751,12 @@ var import_utils73 = require("@typescript-eslint/utils");
|
|
|
12751
12751
|
var NO_TAUTOLOGICAL_EXPECT_DOCUMENTATION = {
|
|
12752
12752
|
summary: "Disallow supported assertions known to pass from literals or immutable scalar setup.",
|
|
12753
12753
|
rationale: "An assertion determined entirely by literals does not observe the code under test and can keep passing after that code is removed.",
|
|
12754
|
-
remediation: "Assert on a value produced by the behavior under test, or remove the assertion.",
|
|
12754
|
+
remediation: "Assert on a value produced by the behavior under test against an independently specified expectation, or remove only the redundant assertion while preserving coverage.",
|
|
12755
12755
|
category: "testing",
|
|
12756
12756
|
limitations: [
|
|
12757
12757
|
"Only direct supported `expect` matcher calls in recognized test files are inspected. Local expect bindings, regular expressions, and unsupported coercions are excluded; failing constant assertions are not tautologies.",
|
|
12758
|
-
"Scalar const bindings and aliases resolve through lexical scope; mutable bindings, objects, arrays, destructuring, runtime initializers and forward references are excluded."
|
|
12758
|
+
"Scalar const bindings and aliases resolve through lexical scope; mutable bindings, objects, arrays, destructuring, runtime initializers and forward references are excluded.",
|
|
12759
|
+
"Expected-side runtime dependence, including a complete inline snapshot computed from its actual value, remains manual review; independent static interpolation and intentional partial masking are valid."
|
|
12759
12760
|
],
|
|
12760
12761
|
examples: [
|
|
12761
12762
|
{
|
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.5.
|
|
4
|
+
version: "16.5.2",
|
|
5
5
|
packageManager: "npm@12.1.0",
|
|
6
6
|
description: "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
7
7
|
type: "module",
|
|
@@ -12735,11 +12735,12 @@ import { AST_NODE_TYPES as AST_NODE_TYPES60, ASTUtils as ASTUtils35 } from "@typ
|
|
|
12735
12735
|
var NO_TAUTOLOGICAL_EXPECT_DOCUMENTATION = {
|
|
12736
12736
|
summary: "Disallow supported assertions known to pass from literals or immutable scalar setup.",
|
|
12737
12737
|
rationale: "An assertion determined entirely by literals does not observe the code under test and can keep passing after that code is removed.",
|
|
12738
|
-
remediation: "Assert on a value produced by the behavior under test, or remove the assertion.",
|
|
12738
|
+
remediation: "Assert on a value produced by the behavior under test against an independently specified expectation, or remove only the redundant assertion while preserving coverage.",
|
|
12739
12739
|
category: "testing",
|
|
12740
12740
|
limitations: [
|
|
12741
12741
|
"Only direct supported `expect` matcher calls in recognized test files are inspected. Local expect bindings, regular expressions, and unsupported coercions are excluded; failing constant assertions are not tautologies.",
|
|
12742
|
-
"Scalar const bindings and aliases resolve through lexical scope; mutable bindings, objects, arrays, destructuring, runtime initializers and forward references are excluded."
|
|
12742
|
+
"Scalar const bindings and aliases resolve through lexical scope; mutable bindings, objects, arrays, destructuring, runtime initializers and forward references are excluded.",
|
|
12743
|
+
"Expected-side runtime dependence, including a complete inline snapshot computed from its actual value, remains manual review; independent static interpolation and intentional partial masking are valid."
|
|
12743
12744
|
],
|
|
12744
12745
|
examples: [
|
|
12745
12746
|
{
|