Socket
Socket
Sign inDemoInstall

@types/eslint-visitor-keys

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/eslint-visitor-keys

Stub TypeScript definitions entry for eslint-visitor-keys, which provides its own types definitions


Version published
Weekly downloads
1.2M
decreased by-2.89%
Maintainers
1
Install size
32.1 kB
Created
Weekly downloads
 

Package description

What is @types/eslint-visitor-keys?

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.

What are @types/eslint-visitor-keys's main functionalities?

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']
};

Other packages similar to @types/eslint-visitor-keys

Readme

Source

This is a stub types definition for @types/eslint-visitor-keys (https://github.com/eslint/eslint-visitor-keys#readme).

eslint-visitor-keys provides its own type definitions, so you don't need @types/eslint-visitor-keys installed!

FAQs

Last updated on 20 Oct 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc