@saasmakers/eslint 1.0.12 → 1.0.13
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 +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -206,6 +206,12 @@ function getStatementKind(node) {
|
|
|
206
206
|
if (isDirectivePrologue(node)) {
|
|
207
207
|
return null;
|
|
208
208
|
}
|
|
209
|
+
if (node.expression.type === index$1.distExports.AST_NODE_TYPES.AssignmentExpression) {
|
|
210
|
+
if (expressionUsesThis(node.expression)) {
|
|
211
|
+
return isSingleLine(node) ? "singleline-this" : "multiline-this";
|
|
212
|
+
}
|
|
213
|
+
return isSingleLine(node) ? "singleline-assignment" : "multiline-assignment";
|
|
214
|
+
}
|
|
209
215
|
if (expressionUsesThis(node.expression)) {
|
|
210
216
|
return isSingleLine(node) ? "singleline-this" : "multiline-this";
|
|
211
217
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -204,6 +204,12 @@ function getStatementKind(node) {
|
|
|
204
204
|
if (isDirectivePrologue(node)) {
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
207
|
+
if (node.expression.type === distExports.AST_NODE_TYPES.AssignmentExpression) {
|
|
208
|
+
if (expressionUsesThis(node.expression)) {
|
|
209
|
+
return isSingleLine(node) ? "singleline-this" : "multiline-this";
|
|
210
|
+
}
|
|
211
|
+
return isSingleLine(node) ? "singleline-assignment" : "multiline-assignment";
|
|
212
|
+
}
|
|
207
213
|
if (expressionUsesThis(node.expression)) {
|
|
208
214
|
return isSingleLine(node) ? "singleline-this" : "multiline-this";
|
|
209
215
|
}
|