
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@types/eslint-visitor-keys
Advanced tools
Stub TypeScript definitions entry for eslint-visitor-keys, which provides its own types definitions
The @types/eslint-visitor-keys package provides TypeScript type definitions for eslint-visitor-keys, which is a utility used by ESLint to determine the keys to visit on an AST (Abstract Syntax Tree) node. This package is essential for TypeScript users who are working with ESLint custom rules or plugins and need to ensure type safety and autocompletion when dealing with visitor keys.
Type Definitions for Visitor Keys
This feature provides TypeScript type definitions for defining visitor keys. It allows developers to specify which properties of AST nodes should be visited by ESLint rules. The code sample demonstrates how to define visitor keys for `Program` and `CallExpression` nodes.
import { VisitorKeys } from '@types/eslint-visitor-keys';
const visitorKeys: VisitorKeys = {
Program: ['body'],
CallExpression: ['callee', 'arguments']
};
This package is part of the TypeScript ESLint project and provides a parser that converts TypeScript code into an ESTree-compatible form. It is similar to @types/eslint-visitor-keys in that it deals with AST nodes, but it focuses more on parsing rather than defining visitor keys.
The core ESLint package itself is related to @types/eslint-visitor-keys as it uses visitor keys to traverse the AST and check for linting errors. However, ESLint is a comprehensive linting tool, whereas @types/eslint-visitor-keys specifically provides TypeScript types for the visitor keys.
This is a stub types definition for @types/eslint-visitor-keys (https://github.com/eslint/js/blob/main/packages/eslint-visitor-keys/README.md).
eslint-visitor-keys provides its own type definitions, so you don't need @types/eslint-visitor-keys installed!
FAQs
Stub TypeScript definitions entry for eslint-visitor-keys, which provides its own types definitions
The npm package @types/eslint-visitor-keys receives a total of 659,845 weekly downloads. As such, @types/eslint-visitor-keys popularity was classified as popular.
We found that @types/eslint-visitor-keys demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.