@types/eslint-scope
Advanced tools
Comparing version 3.7.0 to 3.7.1
@@ -54,12 +54,12 @@ // Type definitions for eslint-scope 3.7 | ||
export interface AnalysisOptions { | ||
optimistic?: boolean; | ||
directive?: boolean; | ||
ignoreEval?: boolean; | ||
nodejsScope?: boolean; | ||
impliedStrict?: boolean; | ||
fallback?: string | ((node: {}) => string[]); | ||
sourceType?: "script" | "module"; | ||
ecmaVersion?: number; | ||
optimistic?: boolean | undefined; | ||
directive?: boolean | undefined; | ||
ignoreEval?: boolean | undefined; | ||
nodejsScope?: boolean | undefined; | ||
impliedStrict?: boolean | undefined; | ||
fallback?: string | ((node: {}) => string[]) | undefined; | ||
sourceType?: "script" | "module" | undefined; | ||
ecmaVersion?: number | undefined; | ||
} | ||
export function analyze(ast: {}, options?: AnalysisOptions): ScopeManager; |
{ | ||
"name": "@types/eslint-scope", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"description": "TypeScript definitions for eslint-scope", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope", | ||
"license": "MIT", | ||
@@ -14,5 +15,7 @@ "contributors": [ | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/eslint-scope" | ||
}, | ||
@@ -24,4 +27,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "0ea662a443d13a5db1cae5afc89fd2aec8155d09ddec7b1a5ba0c6ab4be4cc54", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "47224c2bf9a37ca8eb542bd7399915133185a33ed6b71ef30985d3c8a9598e8c", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,78 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope/index.d.ts) | ||
````ts | ||
// Type definitions for eslint-scope 3.7 | ||
// Project: http://github.com/eslint/eslint-scope | ||
// Definitions by: Toru Nagashima <https://github.com/mysticatea> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
import * as eslint from "eslint"; | ||
import * as estree from "estree"; | ||
Additional Details | ||
* Last updated: Sun, 18 Feb 2018 01:53:11 GMT | ||
* Dependencies: eslint, 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; | ||
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 | undefined; | ||
directive?: boolean | undefined; | ||
ignoreEval?: boolean | undefined; | ||
nodejsScope?: boolean | undefined; | ||
impliedStrict?: boolean | undefined; | ||
fallback?: string | ((node: {}) => string[]) | undefined; | ||
sourceType?: "script" | "module" | undefined; | ||
ecmaVersion?: number | undefined; | ||
} | ||
export function analyze(ast: {}, options?: AnalysisOptions): ScopeManager; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 19:03:40 GMT | ||
* Dependencies: [@types/eslint](https://npmjs.com/package/@types/eslint), [@types/estree](https://npmjs.com/package/@types/estree) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Toru Nagashima <https://github.com/mysticatea>. | ||
These definitions were written by [Toru Nagashima](https://github.com/mysticatea). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6771
0
85