Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-utils

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-utils

Utilities for ESLint plugins.

  • 1.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18M
decreased by-13.77%
Maintainers
1
Weekly downloads
 
Created

What is eslint-utils?

The eslint-utils package provides utility functions for developers working with ESLint, a static code analysis tool for identifying problematic patterns in JavaScript code. It offers a set of APIs that can be used to manipulate and query the abstract syntax tree (AST) generated by ESLint, making it easier to create custom rules and analyze code.

What are eslint-utils's main functionalities?

AST Utilities

Provides functions to interact with the AST, such as finding variables, their references, and their definitions within the code.

{"findVariable": "function (initializer) { return getVariableByName(initializer, 'myVariable'); }"}

Reference Utilities

Offers methods to determine if a variable is being used in the code, which can help in identifying unused variables and potential bugs.

{"isUsedVariable": "function (variable) { return isUsedVariable(variable); }"}

Scope Analysis

Allows for analysis of variable scope, which can be used to ensure that variables are declared and used within the correct scope.

{"getInnermostScope": "function (scope, node) { return getInnermostScope(scope, node); }"}

Other packages similar to eslint-utils

Keywords

FAQs

Package last updated on 20 Aug 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc