@saasmakers/eslint 1.0.11 → 1.0.12
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
|
@@ -200,6 +200,9 @@ function getStatementKind(node) {
|
|
|
200
200
|
if (isSuperCall(node)) {
|
|
201
201
|
return isSingleLine(node) ? "singleline-super" : "multiline-super";
|
|
202
202
|
}
|
|
203
|
+
if (isVoidExpression(node.expression)) {
|
|
204
|
+
return isSingleLine(node) ? "singleline-void" : "multiline-void";
|
|
205
|
+
}
|
|
203
206
|
if (isDirectivePrologue(node)) {
|
|
204
207
|
return null;
|
|
205
208
|
}
|
|
@@ -257,6 +260,9 @@ function isThisReceiver(node) {
|
|
|
257
260
|
}
|
|
258
261
|
return false;
|
|
259
262
|
}
|
|
263
|
+
function isVoidExpression(expression) {
|
|
264
|
+
return expression.type === index$1.distExports.AST_NODE_TYPES.UnaryExpression && expression.operator === "void";
|
|
265
|
+
}
|
|
260
266
|
const rule$a = {
|
|
261
267
|
defaultOptions: [],
|
|
262
268
|
meta: {
|
package/dist/index.mjs
CHANGED
|
@@ -198,6 +198,9 @@ function getStatementKind(node) {
|
|
|
198
198
|
if (isSuperCall(node)) {
|
|
199
199
|
return isSingleLine(node) ? "singleline-super" : "multiline-super";
|
|
200
200
|
}
|
|
201
|
+
if (isVoidExpression(node.expression)) {
|
|
202
|
+
return isSingleLine(node) ? "singleline-void" : "multiline-void";
|
|
203
|
+
}
|
|
201
204
|
if (isDirectivePrologue(node)) {
|
|
202
205
|
return null;
|
|
203
206
|
}
|
|
@@ -255,6 +258,9 @@ function isThisReceiver(node) {
|
|
|
255
258
|
}
|
|
256
259
|
return false;
|
|
257
260
|
}
|
|
261
|
+
function isVoidExpression(expression) {
|
|
262
|
+
return expression.type === distExports.AST_NODE_TYPES.UnaryExpression && expression.operator === "void";
|
|
263
|
+
}
|
|
258
264
|
const rule$a = {
|
|
259
265
|
defaultOptions: [],
|
|
260
266
|
meta: {
|