Socket
Socket
Sign inDemoInstall

@types/eslint

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/eslint - npm Package Compare versions

Comparing version 8.40.0 to 8.40.1

27

eslint/index.d.ts

@@ -435,5 +435,12 @@ // Type definitions for eslint 8.40

export namespace Rule {
/**
* TODO: Old style rules are planned to be removed in v9, remove this type then (https://github.com/eslint/rfcs/blob/main/designs/2021-schema-object-rules/README.md)
* @deprecated Use `RuleModule` instead.
*/
type OldStyleRule = RuleModule["create"];
interface RuleModule {
create(context: RuleContext): RuleListener;
meta?: RuleMetaData | undefined;
schema?: RuleMetaData["schema"];
}

@@ -659,2 +666,3 @@

* so ESLint can prevent invalid [rule configurations](https://eslint.org/docs/latest/user-guide/configuring/rules#configuring-rules).
* TODO: schema is potentially planned to be no longer be optional in v9 (https://github.com/eslint/rfcs/blob/main/designs/2021-schema-object-rules/README.md)
*/

@@ -777,9 +785,9 @@ schema?: JSONSchema4 | JSONSchema4[] | undefined;

constructor(options?: { cwd?: string | undefined });
constructor(options?: { cwd?: string | undefined, configType?: 'flat' });
verify(code: SourceCode | string, config: Linter.Config, filename?: string): Linter.LintMessage[];
verify(code: SourceCode | string, config: Linter.Config, options: Linter.LintOptions): Linter.LintMessage[];
verify(code: SourceCode | string, config: Linter.Config | Linter.FlatConfig[], filename?: string): Linter.LintMessage[];
verify(code: SourceCode | string, config: Linter.Config | Linter.FlatConfig[], options: Linter.LintOptions): Linter.LintMessage[];
verifyAndFix(code: string, config: Linter.Config, filename?: string): Linter.FixReport;
verifyAndFix(code: string, config: Linter.Config, options: Linter.FixOptions): Linter.FixReport;
verifyAndFix(code: string, config: Linter.Config | Linter.FlatConfig[], filename?: string): Linter.FixReport;
verifyAndFix(code: string, config: Linter.Config | Linter.FlatConfig[], options: Linter.FixOptions): Linter.FixReport;

@@ -931,2 +939,5 @@ getSourceCode(): SourceCode;

}
type FlatConfigFileSpec = string | ((filePath: string) => boolean);
interface FlatConfig {

@@ -938,3 +949,3 @@ /**

*/
files?: string | string[];
files?: Array<FlatConfigFileSpec | FlatConfigFileSpec[]>;
/**

@@ -945,3 +956,3 @@ * An array of glob patterns indicating the files that the configuration

*/
ignores?: string | string[];
ignores?: FlatConfigFileSpec[];
/**

@@ -1057,3 +1068,3 @@ * An object containing settings related to how JavaScript is configured for

processors?: Record<string, Linter.Processor> | undefined;
rules?: Record<string, ((...args: any[]) => any) | Rule.RuleModule> | undefined;
rules?: Record<string, Rule.OldStyleRule | Rule.RuleModule> | undefined;
}

@@ -1060,0 +1071,0 @@

{
"name": "@types/eslint",
"version": "8.40.0",
"version": "8.40.1",
"description": "TypeScript definitions for eslint",

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

},
"typesPublisherContentHash": "b717fba7cffe300cc388302745bf2f03fdcd331285a3967fcb4f023f784805bc",
"typesPublisherContentHash": "b85271fef36c21bcbaeff3d56591566b7605fd812ddbeb1cf3d0b321f023b4d1",
"typeScriptVersion": "4.3",

@@ -54,0 +54,0 @@ "exports": {

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

### Additional Details
* Last updated: Tue, 23 May 2023 02:02:46 GMT
* Last updated: Thu, 08 Jun 2023 20:32:59 GMT
* Dependencies: [@types/estree](https://npmjs.com/package/@types/estree), [@types/json-schema](https://npmjs.com/package/@types/json-schema)

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

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