Socket
Socket
Sign inDemoInstall

@typescript-eslint/utils

Package Overview
Dependencies
5
Maintainers
0
Versions
1922
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.14.2-alpha.1 to 7.14.2-alpha.2

10

dist/ts-eslint/RuleTester.d.ts

@@ -6,3 +6,3 @@ import type { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree';

import type { ReportDescriptorMessageData, RuleCreateFunction, RuleModule, SharedConfigurationSettings } from './Rule';
interface ValidTestCase<Options extends Readonly<unknown[]>> {
interface ValidTestCase<Options extends readonly unknown[]> {
/**

@@ -64,3 +64,3 @@ * Name for the test case.

}
interface InvalidTestCase<MessageIds extends string, Options extends Readonly<unknown[]>> extends ValidTestCase<Options> {
interface InvalidTestCase<MessageIds extends string, Options extends readonly unknown[]> extends ValidTestCase<Options> {
/**

@@ -113,3 +113,3 @@ * Expected errors.

type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void;
interface RunTests<MessageIds extends string, Options extends Readonly<unknown[]>> {
interface RunTests<MessageIds extends string, Options extends readonly unknown[]> {
readonly valid: readonly (ValidTestCase<Options> | string)[];

@@ -134,3 +134,3 @@ readonly invalid: readonly InvalidTestCase<MessageIds, Options>[];

*/
run<MessageIds extends string, Options extends Readonly<unknown[]>>(ruleName: string, rule: RuleModule<MessageIds, Options>, tests: RunTests<MessageIds, Options>): void;
run<MessageIds extends string, Options extends readonly unknown[]>(ruleName: string, rule: RuleModule<MessageIds, Options>, tests: RunTests<MessageIds, Options>): void;
/**

@@ -157,3 +157,3 @@ * If you supply a value to this property, the rule tester will call this instead of using the version defined on

*/
defineRule<MessageIds extends string, Options extends Readonly<unknown[]>>(name: string, rule: RuleCreateFunction<MessageIds, Options> | RuleModule<MessageIds, Options>): void;
defineRule<MessageIds extends string, Options extends readonly unknown[]>(name: string, rule: RuleCreateFunction<MessageIds, Options> | RuleModule<MessageIds, Options>): void;
}

@@ -160,0 +160,0 @@ declare const RuleTester_base: typeof RuleTesterBase;

{
"name": "@typescript-eslint/utils",
"version": "7.14.2-alpha.1",
"version": "7.14.2-alpha.2",
"description": "Utilities for working with TypeScript + ESLint together",

@@ -71,5 +71,5 @@ "files": [

"@eslint-community/eslint-utils": "^4.4.0",
"@typescript-eslint/scope-manager": "7.14.2-alpha.1",
"@typescript-eslint/types": "7.14.2-alpha.1",
"@typescript-eslint/typescript-estree": "7.14.2-alpha.1"
"@typescript-eslint/scope-manager": "7.14.2-alpha.2",
"@typescript-eslint/types": "7.14.2-alpha.2",
"@typescript-eslint/typescript-estree": "7.14.2-alpha.2"
},

@@ -76,0 +76,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

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