Socket
Socket
Sign inDemoInstall

@types/eslint

Package Overview
Dependencies
2
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.29.0 to 8.2.0

eslint/use-at-your-own-risk.d.ts

85

eslint/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for eslint 7.29
// Type definitions for eslint 8.2
// Project: https://eslint.org

@@ -12,3 +12,2 @@ // Definitions by: Pierre-Marie Dartus <https://github.com/pmdartus>

/// <reference path="helpers.d.ts" />
/// <reference path="lib/rules/index.d.ts" />

@@ -895,84 +894,2 @@ import { JSONSchema4 } from "json-schema";

//#region CLIEngine
/** @deprecated Deprecated in favor of `ESLint` */
export class CLIEngine {
static version: string;
constructor(options: CLIEngine.Options);
executeOnFiles(patterns: string[]): CLIEngine.LintReport;
resolveFileGlobPatterns(patterns: string[]): string[];
getConfigForFile(filePath: string): Linter.Config;
executeOnText(text: string, filename?: string): CLIEngine.LintReport;
addPlugin(name: string, pluginObject: any): void;
isPathIgnored(filePath: string): boolean;
getFormatter(format?: string): CLIEngine.Formatter;
getRules(): Map<string, Rule.RuleModule>;
static getErrorResults(results: CLIEngine.LintResult[]): CLIEngine.LintResult[];
static getFormatter(format?: string): CLIEngine.Formatter;
static outputFixes(report: CLIEngine.LintReport): void;
}
/** @deprecated Deprecated in favor of `ESLint` */
export namespace CLIEngine {
class Options {
allowInlineConfig?: boolean | undefined;
baseConfig?: false | { [name: string]: any } | undefined;
cache?: boolean | undefined;
cacheFile?: string | undefined;
cacheLocation?: string | undefined;
cacheStrategy?: "content" | "metadata" | undefined;
configFile?: string | undefined;
cwd?: string | undefined;
envs?: string[] | undefined;
errorOnUnmatchedPattern?: boolean | undefined;
extensions?: string[] | undefined;
fix?: boolean | undefined;
globals?: string[] | undefined;
ignore?: boolean | undefined;
ignorePath?: string | undefined;
ignorePattern?: string | string[] | undefined;
useEslintrc?: boolean | undefined;
parser?: string | undefined;
parserOptions?: Linter.ParserOptions | undefined;
plugins?: string[] | undefined;
resolvePluginsRelativeTo?: string | undefined;
rules?: {
[name: string]: Linter.RuleLevel | Linter.RuleLevelAndOptions;
} | undefined;
rulePaths?: string[] | undefined;
reportUnusedDisableDirectives?: boolean | undefined;
}
type LintResult = ESLint.LintResult;
type LintResultData = ESLint.LintResultData;
interface LintReport {
results: LintResult[];
errorCount: number;
warningCount: number;
fixableErrorCount: number;
fixableWarningCount: number;
usedDeprecatedRules: DeprecatedRuleUse[];
}
type DeprecatedRuleUse = ESLint.DeprecatedRuleUse;
type Formatter = (results: LintResult[], data?: LintResultData) => string;
}
//#endregion
//#region RuleTester

@@ -979,0 +896,0 @@

{
"name": "@types/eslint",
"version": "7.29.0",
"version": "8.2.0",
"description": "TypeScript definitions for eslint",

@@ -51,4 +51,15 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint",

},
"typesPublisherContentHash": "e2557f89ae9e7e511e390df57120d359d2dcefc845227cc2c4e484114cf82209",
"typeScriptVersion": "3.7"
"typesPublisherContentHash": "75f8630ee832c7873360b05069ae241180c3b9cfcda4af43a1647926b09232ac",
"typeScriptVersion": "3.7",
"exports": {
".": {
"types": "./index.d.ts"
},
"./use-at-your-own-risk": {
"types": "./use-at-your-own-risk.d.ts"
},
"./rules": {
"types": "./rules/index.d.ts"
}
}
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 15 Nov 2021 07:31:21 GMT
* Last updated: Wed, 17 Nov 2021 21:01:26 GMT
* Dependencies: [@types/json-schema](https://npmjs.com/package/@types/json-schema), [@types/estree](https://npmjs.com/package/@types/estree)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc