Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

@types/eslint-scope

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

@types/eslint-scope

TypeScript definitions for eslint-scope

    3.7.4ts4.0ts4.1ts4.2ts4.3ts4.4ts4.5ts4.6ts4.7ts4.8ts4.9ts5.0latest

Version published
Maintainers
1
Weekly downloads
8,979,424
decreased by-22.32%

Weekly downloads

Readme

Source

Installation

npm install --save @types/eslint-scope

Summary

This package contains type definitions for eslint-scope (https://github.com/eslint/eslint-scope).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope.

index.d.ts

// Type definitions for eslint-scope 3.7 // Project: https://github.com/eslint/eslint-scope // Definitions by: Toru Nagashima <https://github.com/mysticatea> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.8 import * as eslint from "eslint"; import * as estree from "estree"; export const version: string; export class ScopeManager implements eslint.Scope.ScopeManager { scopes: Scope[]; globalScope: Scope; acquire(node: {}, inner?: boolean): Scope | null; getDeclaredVariables(node: {}): Variable[]; } export class Scope implements eslint.Scope.Scope { type: "block" | "catch" | "class" | "for" | "function" | "function-expression-name" | "global" | "module" | "switch" | "with" | "TDZ"; isStrict: boolean; upper: Scope | null; childScopes: Scope[]; variableScope: Scope; block: estree.Node; variables: Variable[]; set: Map<string, Variable>; references: Reference[]; through: Reference[]; functionExpressionScope: boolean; } export class Variable implements eslint.Scope.Variable { name: string; scope: Scope; identifiers: estree.Identifier[]; references: Reference[]; defs: eslint.Scope.Definition[]; } export class Reference implements eslint.Scope.Reference { identifier: estree.Identifier; from: Scope; resolved: Variable | null; writeExpr: estree.Node | null; init: boolean; isWrite(): boolean; isRead(): boolean; isWriteOnly(): boolean; isReadOnly(): boolean; isReadWrite(): boolean; } export interface AnalysisOptions { optimistic?: boolean; directive?: boolean; ignoreEval?: boolean; nodejsScope?: boolean; impliedStrict?: boolean; fallback?: string | ((node: {}) => string[]); sourceType?: "script" | "module"; ecmaVersion?: number; } export function analyze(ast: {}, options?: AnalysisOptions): ScopeManager;

Additional Details

  • Last updated: Thu, 30 Jun 2022 19:02:28 GMT
  • Dependencies: @types/eslint, @types/estree
  • Global values: none

Credits

These definitions were written by Toru Nagashima.

FAQs

What is @types/eslint-scope?

TypeScript definitions for eslint-scope

Is @types/eslint-scope popular?

The npm package @types/eslint-scope receives a total of 7,497,952 weekly downloads. As such, @types/eslint-scope popularity was classified as popular.

Is @types/eslint-scope well maintained?

We found that @types/eslint-scope 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.

Last updated on 30 Jun 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc