Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
17
node_modules/eslint/lib/rules/padding-line-between-statements.js
generated
vendored
17
node_modules/eslint/lib/rules/padding-line-between-statements.js
generated
vendored
|
|
@ -138,14 +138,7 @@ function isBlockLikeStatement(sourceCode, node) {
|
|||
*/
|
||||
function isDirective(node, sourceCode) {
|
||||
return (
|
||||
node.type === "ExpressionStatement" &&
|
||||
(
|
||||
node.parent.type === "Program" ||
|
||||
(
|
||||
node.parent.type === "BlockStatement" &&
|
||||
astUtils.isFunction(node.parent.parent)
|
||||
)
|
||||
) &&
|
||||
astUtils.isTopLevelExpressionStatement(node) &&
|
||||
node.expression.type === "Literal" &&
|
||||
typeof node.expression.value === "string" &&
|
||||
!astUtils.isParenthesised(sourceCode, node.expression)
|
||||
|
|
@ -253,7 +246,7 @@ function verifyForNever(context, _, nextNode, paddingLines) {
|
|||
const nextToken = paddingLines[0][1];
|
||||
const start = prevToken.range[1];
|
||||
const end = nextToken.range[0];
|
||||
const text = context.getSourceCode().text
|
||||
const text = context.sourceCode.text
|
||||
.slice(start, end)
|
||||
.replace(PADDING_LINE_SEQUENCE, replacerToRemovePaddingLines);
|
||||
|
||||
|
|
@ -284,7 +277,7 @@ function verifyForAlways(context, prevNode, nextNode, paddingLines) {
|
|||
node: nextNode,
|
||||
messageId: "expectedBlankLine",
|
||||
fix(fixer) {
|
||||
const sourceCode = context.getSourceCode();
|
||||
const sourceCode = context.sourceCode;
|
||||
let prevToken = getActualLastToken(sourceCode, prevNode);
|
||||
const nextToken = sourceCode.getFirstTokenBetween(
|
||||
prevToken,
|
||||
|
|
@ -433,7 +426,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Require or disallow padding lines between statements",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/padding-line-between-statements"
|
||||
url: "https://eslint.org/docs/latest/rules/padding-line-between-statements"
|
||||
},
|
||||
|
||||
fixable: "whitespace",
|
||||
|
|
@ -475,7 +468,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
create(context) {
|
||||
const sourceCode = context.getSourceCode();
|
||||
const sourceCode = context.sourceCode;
|
||||
const configureList = context.options || [];
|
||||
let scopeInfo = null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue