Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eslint-types/typescript-eslint

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-types/typescript-eslint - npm Package Compare versions

Comparing version 7.0.2 to 7.2.0

rules/consistent-return.d.ts

4

package.json
{
"name": "@eslint-types/typescript-eslint",
"version": "7.0.2",
"version": "7.2.0",
"description": "TypeScript definitions for eslint-define-config",

@@ -23,3 +23,3 @@ "homepage": "https://github.com/eslint-types/define-config-plugin-types/tree/main/types/typescript-eslint",

"devDependencies": {
"@typescript-eslint/eslint-plugin": "7.0.2"
"@typescript-eslint/eslint-plugin": "7.2.0"
},

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

export interface Schema0 {
prefer?: 'type-imports' | 'no-type-imports';
disallowTypeAnnotations?: boolean;
fixStyle?: 'separate-type-imports' | 'inline-type-imports';
prefer?: 'type-imports' | 'no-type-imports';
}
export type ConsistentTypeImportsRuleOptions = [Schema0?];

@@ -40,2 +40,3 @@ export type FormatOptionsConfig = PredefinedFormats[] | null;

| 'property'
| 'accessor'
| 'variable'

@@ -45,3 +46,3 @@ | 'function'

| 'parameterProperty'
| 'accessor'
| 'classicAccessor'
| 'enumMember'

@@ -54,2 +55,3 @@ | 'classMethod'

| 'typeProperty'
| 'autoAccessor'
| 'class'

@@ -351,2 +353,44 @@ | 'interface'

filter?: string | MatchRegexConfig;
selector: 'classicAccessor';
modifiers?: Array<
| 'abstract'
| 'private'
| 'protected'
| 'public'
| 'requiresQuotes'
| 'static'
| 'override'
>;
types?: TypeModifiers[];
}
| {
format: FormatOptionsConfig;
custom?: MatchRegexConfig;
leadingUnderscore?: UnderscoreOptions;
trailingUnderscore?: UnderscoreOptions;
prefix?: PrefixSuffixConfig;
suffix?: PrefixSuffixConfig;
failureMessage?: string;
filter?: string | MatchRegexConfig;
selector: 'autoAccessor';
modifiers?: Array<
| 'abstract'
| 'private'
| 'protected'
| 'public'
| 'requiresQuotes'
| 'static'
| 'override'
>;
types?: TypeModifiers[];
}
| {
format: FormatOptionsConfig;
custom?: MatchRegexConfig;
leadingUnderscore?: UnderscoreOptions;
trailingUnderscore?: UnderscoreOptions;
prefix?: PrefixSuffixConfig;
suffix?: PrefixSuffixConfig;
failureMessage?: string;
filter?: string | MatchRegexConfig;
selector: 'accessor';

@@ -353,0 +397,0 @@ modifiers?: Array<

@@ -1,1 +0,8 @@

export type PreferStringStartsEndsWithRuleOptions = [];
export interface Schema0 {
/**
* Whether to allow equality checks against the first or last element of a string.
*/
allowSingleElementEquality?: 'always' | 'never';
}
export type PreferStringStartsEndsWithRuleOptions = [Schema0?];

@@ -15,2 +15,3 @@ import type { AdjacentOverloadSignaturesRuleOptions } from './rules/adjacent-overload-signatures';

import type { ConsistentIndexedObjectStyleRuleOptions } from './rules/consistent-indexed-object-style';
import type { ConsistentReturnRuleOptions } from './rules/consistent-return';
import type { ConsistentTypeAssertionsRuleOptions } from './rules/consistent-type-assertions';

@@ -153,6 +154,9 @@ import type { ConsistentTypeDefinitionsRuleOptions } from './rules/consistent-type-definitions';

'plugin:@typescript-eslint/recommended-type-checked': void;
'plugin:@typescript-eslint/recommended-type-checked-only': void;
'plugin:@typescript-eslint/strict': void;
'plugin:@typescript-eslint/strict-type-checked': void;
'plugin:@typescript-eslint/strict-type-checked-only': void;
'plugin:@typescript-eslint/stylistic': void;
'plugin:@typescript-eslint/stylistic-type-checked': void;
'plugin:@typescript-eslint/stylistic-type-checked-only': void;
}

@@ -250,2 +254,8 @@

/**
* Require `return` statements to either always or never specify values
*
* @see [consistent-return](https://typescript-eslint.io/rules/consistent-return)
*/
'@typescript-eslint/consistent-return': ConsistentReturnRuleOptions;
/**
* Enforce consistent usage of type assertions

@@ -252,0 +262,0 @@ *

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