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

eslint-etc

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-etc

Utils for ESLint TypeScript rules

  • 5.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
369K
decreased by-9.48%
Maintainers
1
Weekly downloads
 
Created

What is eslint-etc?

The eslint-etc package provides utility functions and types for working with ESLint rules, making it easier to create and manage custom ESLint rules.

What are eslint-etc's main functionalities?

getParserServices

The getParserServices function retrieves the parser services from the ESLint context, which is useful when working with TypeScript nodes in custom ESLint rules.

const { getParserServices } = require('eslint-etc');

module.exports = {
  create(context) {
    const parserServices = getParserServices(context);
    // Use parserServices to interact with TypeScript nodes
  }
};

getTypeServices

The getTypeServices function retrieves type services from the ESLint context, allowing you to get type information for nodes when creating custom ESLint rules.

const { getTypeServices } = require('eslint-etc');

module.exports = {
  create(context) {
    const typeServices = getTypeServices(context);
    // Use typeServices to get type information
  }
};

getTypeChecker

The getTypeChecker function retrieves the TypeScript type checker from the ESLint context, enabling you to perform type checking in custom ESLint rules.

const { getTypeChecker } = require('eslint-etc');

module.exports = {
  create(context) {
    const typeChecker = getTypeChecker(context);
    // Use typeChecker to perform type checking
  }
};

Other packages similar to eslint-etc

Keywords

FAQs

Package last updated on 28 Mar 2023

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