@so1ve/eslint-plugin 0.110.3 → 0.111.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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -388,7 +388,7 @@ const noNegatedComparison = createEslintRule({
|
|
|
388
388
|
if (!parent) {
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
if (negatives.includes(
|
|
391
|
+
if (negatives.includes(operator) && parent.type === types.AST_NODE_TYPES.UnaryExpression && // Is this necessary?
|
|
392
392
|
parent.operator === "!") {
|
|
393
393
|
context.report({
|
|
394
394
|
node,
|
package/dist/index.mjs
CHANGED
|
@@ -386,7 +386,7 @@ const noNegatedComparison = createEslintRule({
|
|
|
386
386
|
if (!parent) {
|
|
387
387
|
return;
|
|
388
388
|
}
|
|
389
|
-
if (negatives.includes(
|
|
389
|
+
if (negatives.includes(operator) && parent.type === AST_NODE_TYPES.UnaryExpression && // Is this necessary?
|
|
390
390
|
parent.operator === "!") {
|
|
391
391
|
context.report({
|
|
392
392
|
node,
|