🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-require-object-type-annotations

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-require-object-type-annotations

## Installation

0.0.2
latest
npm
Version published
Maintainers
1
Created
Source

require-object-type-annotations

Installation

npm install --save-dev eslint-plugin-require-object-type-annotations

Usage

{
  "plugins": ["require-object-type-annotations"],
  "rules": {
    "require-object-type-annotations/require-object-type-annotations": "error"
  }
}

Options

ignoreInsideFunctionCalls: a string containing a regular expression of function calls to ignore. This is useful if you want to allow anonymous object types when they are passed as arguments to specific functions.

Examples of correct code with { ignoreInsideFunctionCalls: '^foo|bar$' }:

foo({ prop: 1 });
bar({ prop: 1 });

FAQs

Package last updated on 14 Aug 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