Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

eslint

Package Overview
Dependencies
Maintainers
2
Versions
412
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint - npm Package Compare versions

Comparing version
9.39.2
to
9.39.3
+464
-22
lib/types/index.d.ts

@@ -78,13 +78,2 @@ /**

//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/** Adds matching `:exit` selectors for all properties of a `RuleVisitor`. */
type WithExit<RuleVisitorType extends RuleVisitor> = {
[Key in keyof RuleVisitorType as
| Key
| `${Key & string}:exit`]: RuleVisitorType[Key];
};
//------------------------------------------------------------------------------
// Exports

@@ -693,13 +682,466 @@ //------------------------------------------------------------------------------

interface NodeListener
extends WithExit<
{
[Node in Rule.Node as Node["type"]]?:
| ((node: Node) => void)
| undefined;
} & {
// A `Program` visitor's node type has no `parent` property.
Program?: ((node: AST.Program) => void) | undefined;
}
> {}
interface NodeListener extends RuleVisitor {
ArrayExpression?:
| ((node: ESTree.ArrayExpression & NodeParentExtension) => void)
| undefined;
"ArrayExpression:exit"?:
| ((node: ESTree.ArrayExpression & NodeParentExtension) => void)
| undefined;
ArrayPattern?:
| ((node: ESTree.ArrayPattern & NodeParentExtension) => void)
| undefined;
"ArrayPattern:exit"?:
| ((node: ESTree.ArrayPattern & NodeParentExtension) => void)
| undefined;
ArrowFunctionExpression?:
| ((
node: ESTree.ArrowFunctionExpression & NodeParentExtension,
) => void)
| undefined;
"ArrowFunctionExpression:exit"?:
| ((
node: ESTree.ArrowFunctionExpression & NodeParentExtension,
) => void)
| undefined;
AssignmentExpression?:
| ((
node: ESTree.AssignmentExpression & NodeParentExtension,
) => void)
| undefined;
"AssignmentExpression:exit"?:
| ((
node: ESTree.AssignmentExpression & NodeParentExtension,
) => void)
| undefined;
AssignmentPattern?:
| ((node: ESTree.AssignmentPattern & NodeParentExtension) => void)
| undefined;
"AssignmentPattern:exit"?:
| ((node: ESTree.AssignmentPattern & NodeParentExtension) => void)
| undefined;
AwaitExpression?:
| ((node: ESTree.AwaitExpression & NodeParentExtension) => void)
| undefined;
"AwaitExpression:exit"?:
| ((node: ESTree.AwaitExpression & NodeParentExtension) => void)
| undefined;
BinaryExpression?:
| ((node: ESTree.BinaryExpression & NodeParentExtension) => void)
| undefined;
"BinaryExpression:exit"?:
| ((node: ESTree.BinaryExpression & NodeParentExtension) => void)
| undefined;
BlockStatement?:
| ((node: ESTree.BlockStatement & NodeParentExtension) => void)
| undefined;
"BlockStatement:exit"?:
| ((node: ESTree.BlockStatement & NodeParentExtension) => void)
| undefined;
BreakStatement?:
| ((node: ESTree.BreakStatement & NodeParentExtension) => void)
| undefined;
"BreakStatement:exit"?:
| ((node: ESTree.BreakStatement & NodeParentExtension) => void)
| undefined;
CallExpression?:
| ((
node: ESTree.SimpleCallExpression & NodeParentExtension,
) => void)
| undefined;
"CallExpression:exit"?:
| ((
node: ESTree.SimpleCallExpression & NodeParentExtension,
) => void)
| undefined;
CatchClause?:
| ((node: ESTree.CatchClause & NodeParentExtension) => void)
| undefined;
"CatchClause:exit"?:
| ((node: ESTree.CatchClause & NodeParentExtension) => void)
| undefined;
ChainExpression?:
| ((node: ESTree.ChainExpression & NodeParentExtension) => void)
| undefined;
"ChainExpression:exit"?:
| ((node: ESTree.ChainExpression & NodeParentExtension) => void)
| undefined;
ClassBody?:
| ((node: ESTree.ClassBody & NodeParentExtension) => void)
| undefined;
"ClassBody:exit"?:
| ((node: ESTree.ClassBody & NodeParentExtension) => void)
| undefined;
ClassDeclaration?:
| ((node: ESTree.ClassDeclaration & NodeParentExtension) => void)
| undefined;
"ClassDeclaration:exit"?:
| ((node: ESTree.ClassDeclaration & NodeParentExtension) => void)
| undefined;
ClassExpression?:
| ((node: ESTree.ClassExpression & NodeParentExtension) => void)
| undefined;
"ClassExpression:exit"?:
| ((node: ESTree.ClassExpression & NodeParentExtension) => void)
| undefined;
ConditionalExpression?:
| ((
node: ESTree.ConditionalExpression & NodeParentExtension,
) => void)
| undefined;
"ConditionalExpression:exit"?:
| ((
node: ESTree.ConditionalExpression & NodeParentExtension,
) => void)
| undefined;
ContinueStatement?:
| ((node: ESTree.ContinueStatement & NodeParentExtension) => void)
| undefined;
"ContinueStatement:exit"?:
| ((node: ESTree.ContinueStatement & NodeParentExtension) => void)
| undefined;
DebuggerStatement?:
| ((node: ESTree.DebuggerStatement & NodeParentExtension) => void)
| undefined;
"DebuggerStatement:exit"?:
| ((node: ESTree.DebuggerStatement & NodeParentExtension) => void)
| undefined;
DoWhileStatement?:
| ((node: ESTree.DoWhileStatement & NodeParentExtension) => void)
| undefined;
"DoWhileStatement:exit"?:
| ((node: ESTree.DoWhileStatement & NodeParentExtension) => void)
| undefined;
EmptyStatement?:
| ((node: ESTree.EmptyStatement & NodeParentExtension) => void)
| undefined;
"EmptyStatement:exit"?:
| ((node: ESTree.EmptyStatement & NodeParentExtension) => void)
| undefined;
ExportAllDeclaration?:
| ((
node: ESTree.ExportAllDeclaration & NodeParentExtension,
) => void)
| undefined;
"ExportAllDeclaration:exit"?:
| ((
node: ESTree.ExportAllDeclaration & NodeParentExtension,
) => void)
| undefined;
ExportDefaultDeclaration?:
| ((
node: ESTree.ExportDefaultDeclaration & NodeParentExtension,
) => void)
| undefined;
"ExportDefaultDeclaration:exit"?:
| ((
node: ESTree.ExportDefaultDeclaration & NodeParentExtension,
) => void)
| undefined;
ExportNamedDeclaration?:
| ((
node: ESTree.ExportNamedDeclaration & NodeParentExtension,
) => void)
| undefined;
"ExportNamedDeclaration:exit"?:
| ((
node: ESTree.ExportNamedDeclaration & NodeParentExtension,
) => void)
| undefined;
ExportSpecifier?:
| ((node: ESTree.ExportSpecifier & NodeParentExtension) => void)
| undefined;
"ExportSpecifier:exit"?:
| ((node: ESTree.ExportSpecifier & NodeParentExtension) => void)
| undefined;
ExpressionStatement?:
| ((node: ESTree.ExpressionStatement & NodeParentExtension) => void)
| undefined;
"ExpressionStatement:exit"?:
| ((node: ESTree.ExpressionStatement & NodeParentExtension) => void)
| undefined;
ForInStatement?:
| ((node: ESTree.ForInStatement & NodeParentExtension) => void)
| undefined;
"ForInStatement:exit"?:
| ((node: ESTree.ForInStatement & NodeParentExtension) => void)
| undefined;
ForOfStatement?:
| ((node: ESTree.ForOfStatement & NodeParentExtension) => void)
| undefined;
"ForOfStatement:exit"?:
| ((node: ESTree.ForOfStatement & NodeParentExtension) => void)
| undefined;
ForStatement?:
| ((node: ESTree.ForStatement & NodeParentExtension) => void)
| undefined;
"ForStatement:exit"?:
| ((node: ESTree.ForStatement & NodeParentExtension) => void)
| undefined;
FunctionDeclaration?:
| ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void)
| undefined;
"FunctionDeclaration:exit"?:
| ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void)
| undefined;
FunctionExpression?:
| ((node: ESTree.FunctionExpression & NodeParentExtension) => void)
| undefined;
"FunctionExpression:exit"?:
| ((node: ESTree.FunctionExpression & NodeParentExtension) => void)
| undefined;
Identifier?:
| ((node: ESTree.Identifier & NodeParentExtension) => void)
| undefined;
"Identifier:exit"?:
| ((node: ESTree.Identifier & NodeParentExtension) => void)
| undefined;
IfStatement?:
| ((node: ESTree.IfStatement & NodeParentExtension) => void)
| undefined;
"IfStatement:exit"?:
| ((node: ESTree.IfStatement & NodeParentExtension) => void)
| undefined;
ImportDeclaration?:
| ((node: ESTree.ImportDeclaration & NodeParentExtension) => void)
| undefined;
"ImportDeclaration:exit"?:
| ((node: ESTree.ImportDeclaration & NodeParentExtension) => void)
| undefined;
ImportDefaultSpecifier?:
| ((
node: ESTree.ImportDefaultSpecifier & NodeParentExtension,
) => void)
| undefined;
"ImportDefaultSpecifier:exit"?:
| ((
node: ESTree.ImportDefaultSpecifier & NodeParentExtension,
) => void)
| undefined;
ImportExpression?:
| ((node: ESTree.ImportExpression & NodeParentExtension) => void)
| undefined;
"ImportExpression:exit"?:
| ((node: ESTree.ImportExpression & NodeParentExtension) => void)
| undefined;
ImportNamespaceSpecifier?:
| ((
node: ESTree.ImportNamespaceSpecifier & NodeParentExtension,
) => void)
| undefined;
"ImportNamespaceSpecifier:exit"?:
| ((
node: ESTree.ImportNamespaceSpecifier & NodeParentExtension,
) => void)
| undefined;
ImportSpecifier?:
| ((node: ESTree.ImportSpecifier & NodeParentExtension) => void)
| undefined;
"ImportSpecifier:exit"?:
| ((node: ESTree.ImportSpecifier & NodeParentExtension) => void)
| undefined;
LabeledStatement?:
| ((node: ESTree.LabeledStatement & NodeParentExtension) => void)
| undefined;
"LabeledStatement:exit"?:
| ((node: ESTree.LabeledStatement & NodeParentExtension) => void)
| undefined;
Literal?:
| ((node: ESTree.Literal & NodeParentExtension) => void)
| undefined;
"Literal:exit"?:
| ((node: ESTree.Literal & NodeParentExtension) => void)
| undefined;
LogicalExpression?:
| ((node: ESTree.LogicalExpression & NodeParentExtension) => void)
| undefined;
"LogicalExpression:exit"?:
| ((node: ESTree.LogicalExpression & NodeParentExtension) => void)
| undefined;
MemberExpression?:
| ((node: ESTree.MemberExpression & NodeParentExtension) => void)
| undefined;
"MemberExpression:exit"?:
| ((node: ESTree.MemberExpression & NodeParentExtension) => void)
| undefined;
MetaProperty?:
| ((node: ESTree.MetaProperty & NodeParentExtension) => void)
| undefined;
"MetaProperty:exit"?:
| ((node: ESTree.MetaProperty & NodeParentExtension) => void)
| undefined;
MethodDefinition?:
| ((node: ESTree.MethodDefinition & NodeParentExtension) => void)
| undefined;
"MethodDefinition:exit"?:
| ((node: ESTree.MethodDefinition & NodeParentExtension) => void)
| undefined;
NewExpression?:
| ((node: ESTree.NewExpression & NodeParentExtension) => void)
| undefined;
"NewExpression:exit"?:
| ((node: ESTree.NewExpression & NodeParentExtension) => void)
| undefined;
ObjectExpression?:
| ((node: ESTree.ObjectExpression & NodeParentExtension) => void)
| undefined;
"ObjectExpression:exit"?:
| ((node: ESTree.ObjectExpression & NodeParentExtension) => void)
| undefined;
ObjectPattern?:
| ((node: ESTree.ObjectPattern & NodeParentExtension) => void)
| undefined;
"ObjectPattern:exit"?:
| ((node: ESTree.ObjectPattern & NodeParentExtension) => void)
| undefined;
PrivateIdentifier?:
| ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void)
| undefined;
"PrivateIdentifier:exit"?:
| ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void)
| undefined;
Program?: ((node: AST.Program) => void) | undefined;
"Program:exit"?: ((node: AST.Program) => void) | undefined;
Property?:
| ((node: ESTree.Property & NodeParentExtension) => void)
| undefined;
"Property:exit"?:
| ((node: ESTree.Property & NodeParentExtension) => void)
| undefined;
PropertyDefinition?:
| ((node: ESTree.PropertyDefinition & NodeParentExtension) => void)
| undefined;
"PropertyDefinition:exit"?:
| ((node: ESTree.PropertyDefinition & NodeParentExtension) => void)
| undefined;
RestElement?:
| ((node: ESTree.RestElement & NodeParentExtension) => void)
| undefined;
"RestElement:exit"?:
| ((node: ESTree.RestElement & NodeParentExtension) => void)
| undefined;
ReturnStatement?:
| ((node: ESTree.ReturnStatement & NodeParentExtension) => void)
| undefined;
"ReturnStatement:exit"?:
| ((node: ESTree.ReturnStatement & NodeParentExtension) => void)
| undefined;
SequenceExpression?:
| ((node: ESTree.SequenceExpression & NodeParentExtension) => void)
| undefined;
"SequenceExpression:exit"?:
| ((node: ESTree.SequenceExpression & NodeParentExtension) => void)
| undefined;
SpreadElement?:
| ((node: ESTree.SpreadElement & NodeParentExtension) => void)
| undefined;
"SpreadElement:exit"?:
| ((node: ESTree.SpreadElement & NodeParentExtension) => void)
| undefined;
StaticBlock?:
| ((node: ESTree.StaticBlock & NodeParentExtension) => void)
| undefined;
"StaticBlock:exit"?:
| ((node: ESTree.StaticBlock & NodeParentExtension) => void)
| undefined;
Super?:
| ((node: ESTree.Super & NodeParentExtension) => void)
| undefined;
"Super:exit"?:
| ((node: ESTree.Super & NodeParentExtension) => void)
| undefined;
SwitchCase?:
| ((node: ESTree.SwitchCase & NodeParentExtension) => void)
| undefined;
"SwitchCase:exit"?:
| ((node: ESTree.SwitchCase & NodeParentExtension) => void)
| undefined;
SwitchStatement?:
| ((node: ESTree.SwitchStatement & NodeParentExtension) => void)
| undefined;
"SwitchStatement:exit"?:
| ((node: ESTree.SwitchStatement & NodeParentExtension) => void)
| undefined;
TaggedTemplateExpression?:
| ((
node: ESTree.TaggedTemplateExpression & NodeParentExtension,
) => void)
| undefined;
"TaggedTemplateExpression:exit"?:
| ((
node: ESTree.TaggedTemplateExpression & NodeParentExtension,
) => void)
| undefined;
TemplateElement?:
| ((node: ESTree.TemplateElement & NodeParentExtension) => void)
| undefined;
"TemplateElement:exit"?:
| ((node: ESTree.TemplateElement & NodeParentExtension) => void)
| undefined;
TemplateLiteral?:
| ((node: ESTree.TemplateLiteral & NodeParentExtension) => void)
| undefined;
"TemplateLiteral:exit"?:
| ((node: ESTree.TemplateLiteral & NodeParentExtension) => void)
| undefined;
ThisExpression?:
| ((node: ESTree.ThisExpression & NodeParentExtension) => void)
| undefined;
"ThisExpression:exit"?:
| ((node: ESTree.ThisExpression & NodeParentExtension) => void)
| undefined;
ThrowStatement?:
| ((node: ESTree.ThrowStatement & NodeParentExtension) => void)
| undefined;
"ThrowStatement:exit"?:
| ((node: ESTree.ThrowStatement & NodeParentExtension) => void)
| undefined;
TryStatement?:
| ((node: ESTree.TryStatement & NodeParentExtension) => void)
| undefined;
"TryStatement:exit"?:
| ((node: ESTree.TryStatement & NodeParentExtension) => void)
| undefined;
UnaryExpression?:
| ((node: ESTree.UnaryExpression & NodeParentExtension) => void)
| undefined;
"UnaryExpression:exit"?:
| ((node: ESTree.UnaryExpression & NodeParentExtension) => void)
| undefined;
UpdateExpression?:
| ((node: ESTree.UpdateExpression & NodeParentExtension) => void)
| undefined;
"UpdateExpression:exit"?:
| ((node: ESTree.UpdateExpression & NodeParentExtension) => void)
| undefined;
VariableDeclaration?:
| ((node: ESTree.VariableDeclaration & NodeParentExtension) => void)
| undefined;
"VariableDeclaration:exit"?:
| ((node: ESTree.VariableDeclaration & NodeParentExtension) => void)
| undefined;
VariableDeclarator?:
| ((node: ESTree.VariableDeclarator & NodeParentExtension) => void)
| undefined;
"VariableDeclarator:exit"?:
| ((node: ESTree.VariableDeclarator & NodeParentExtension) => void)
| undefined;
WhileStatement?:
| ((node: ESTree.WhileStatement & NodeParentExtension) => void)
| undefined;
"WhileStatement:exit"?:
| ((node: ESTree.WhileStatement & NodeParentExtension) => void)
| undefined;
WithStatement?:
| ((node: ESTree.WithStatement & NodeParentExtension) => void)
| undefined;
"WithStatement:exit"?:
| ((node: ESTree.WithStatement & NodeParentExtension) => void)
| undefined;
YieldExpression?:
| ((node: ESTree.YieldExpression & NodeParentExtension) => void)
| undefined;
"YieldExpression:exit"?:
| ((node: ESTree.YieldExpression & NodeParentExtension) => void)
| undefined;
}

@@ -706,0 +1148,0 @@ interface NodeParentExtension {

+2
-2
{
"name": "eslint",
"version": "9.39.2",
"version": "9.39.3",
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",

@@ -115,3 +115,3 @@ "description": "An AST-based pattern checker for JavaScript.",

"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "9.39.2",
"@eslint/js": "9.39.3",
"@eslint/plugin-kit": "^0.4.1",

@@ -118,0 +118,0 @@ "@humanfs/node": "^0.16.6",