@saasmakers/eslint 1.0.9 → 1.0.10
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
|
@@ -182,6 +182,9 @@ function getStatementKind(node) {
|
|
|
182
182
|
if (node.expression.type === index$1.distExports.AST_NODE_TYPES.AwaitExpression) {
|
|
183
183
|
return isSingleLine(node) ? "singleline-await" : "multiline-await";
|
|
184
184
|
}
|
|
185
|
+
if (isSuperCall(node)) {
|
|
186
|
+
return isSingleLine(node) ? "singleline-super" : "multiline-super";
|
|
187
|
+
}
|
|
185
188
|
if (isDirectivePrologue(node)) {
|
|
186
189
|
return null;
|
|
187
190
|
}
|
|
@@ -221,6 +224,9 @@ function isOwnLineComment(comment, sourceCode) {
|
|
|
221
224
|
function isSingleLine(node) {
|
|
222
225
|
return node.loc.start.line === node.loc.end.line;
|
|
223
226
|
}
|
|
227
|
+
function isSuperCall(node) {
|
|
228
|
+
return node.expression.type === index$1.distExports.AST_NODE_TYPES.CallExpression && node.expression.callee.type === index$1.distExports.AST_NODE_TYPES.Super;
|
|
229
|
+
}
|
|
224
230
|
const rule$a = {
|
|
225
231
|
defaultOptions: [],
|
|
226
232
|
meta: {
|
package/dist/index.mjs
CHANGED
|
@@ -180,6 +180,9 @@ function getStatementKind(node) {
|
|
|
180
180
|
if (node.expression.type === distExports.AST_NODE_TYPES.AwaitExpression) {
|
|
181
181
|
return isSingleLine(node) ? "singleline-await" : "multiline-await";
|
|
182
182
|
}
|
|
183
|
+
if (isSuperCall(node)) {
|
|
184
|
+
return isSingleLine(node) ? "singleline-super" : "multiline-super";
|
|
185
|
+
}
|
|
183
186
|
if (isDirectivePrologue(node)) {
|
|
184
187
|
return null;
|
|
185
188
|
}
|
|
@@ -219,6 +222,9 @@ function isOwnLineComment(comment, sourceCode) {
|
|
|
219
222
|
function isSingleLine(node) {
|
|
220
223
|
return node.loc.start.line === node.loc.end.line;
|
|
221
224
|
}
|
|
225
|
+
function isSuperCall(node) {
|
|
226
|
+
return node.expression.type === distExports.AST_NODE_TYPES.CallExpression && node.expression.callee.type === distExports.AST_NODE_TYPES.Super;
|
|
227
|
+
}
|
|
222
228
|
const rule$a = {
|
|
223
229
|
defaultOptions: [],
|
|
224
230
|
meta: {
|