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

@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.56.5 to 8.56.6

6

eslint/package.json
{
"name": "@types/eslint",
"version": "8.56.5",
"version": "8.56.6",
"description": "TypeScript definitions for eslint",

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

},
"typesPublisherContentHash": "c7fc31d592811debbc973a368f8cfa078403473c797bb1af36cb9866859f2517",
"typeScriptVersion": "4.6"
"typesPublisherContentHash": "bfce2c99dc7236752e3b1b9610a7f210f49fe944f07b5a0eb303f1993afed76c",
"typeScriptVersion": "4.7"
}

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

### Additional Details
* Last updated: Thu, 29 Feb 2024 00:50:15 GMT
* Last updated: Tue, 19 Mar 2024 09:36:07 GMT
* Dependencies: [@types/estree](https://npmjs.com/package/@types/estree), [@types/json-schema](https://npmjs.com/package/@types/json-schema)

@@ -14,0 +14,0 @@

@@ -142,2 +142,18 @@ import { Linter } from "../index";

/**
* Rule to enforce default clauses in switch statements to be last
*
* @since 7.0.0
* @see https://eslint.org/docs/latest/rules/default-case-last
*/
"default-case-last": Linter.RuleEntry<[]>;
/**
* Enforce default parameters to be last
*
* @since 6.4.0
* @see https://eslint.org/docs/latest/rules/default-param-last
*/
"default-param-last": Linter.RuleEntry<[]>;
/**
* Rule to enforce consistent newlines before and after dots.

@@ -189,2 +205,10 @@ *

/**
* Require grouped accessor pairs in object literals and classes.
*
* @since 6.7.0
* @see https://eslint.org/docs/latest/rules/grouped-accessor-pairs
*/
"grouped-accessor-pairs": Linter.RuleEntry<["anyOrder" | "getBeforeSet" | "setBeforeGet"]>;
/**
* Rule to require `for-in` loops to include an `if` statement.

@@ -420,2 +444,6 @@ *

/**
* @default false
*/
disallowTemplateShorthand: boolean;
/**
* @default []

@@ -445,2 +473,13 @@ */

/**
* Disallow assigning to imported bindings.
*
* @remarks
* Recommended by ESLint, the rule was enabled in `eslint:recommended`.
*
* @since 6.4.0
* @see https://eslint.org/docs/latest/rules/no-import-assign
*/
"no-import-assign": Linter.RuleEntry<[]>;
/**
* Rule to disallow `this` keywords outside of classes or class-like objects.

@@ -590,2 +629,10 @@ *

/**
* Disallow `\\8` and `\\9` escape sequences in string literals.
*
* @since 7.14.0
* @see https://eslint.org/docs/rules/no-nonoctal-decimal-escape
*/
"no-nonoctal-decimal-escape": Linter.RuleEntry<[]>;
/**
* Rule to disallow octal literals.

@@ -784,2 +831,13 @@ *

/**
* Disallow useless backreferences in regular expressions
*
* @remarks
* Recommended by ESLint, the rule was enabled in `eslint:recommended`.
*
* @since 7.0.0-alpha.0
* @see https://eslint.org/docs/latest/rules/no-useless-backreference
*/
"no-useless-backreference": Linter.RuleEntry<[]>;
/**
* Rule to disallow unnecessary calls to `.call()` and `.apply()`.

@@ -879,2 +937,10 @@ *

/**
* Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`.
*
* @since 3.5.0
* @see https://eslint.org/docs/rules/prefer-object-has-own
*/
"prefer-object-has-own": Linter.RuleEntry<[]>;
/**
* Rule to require using Error objects as Promise rejection reasons.

@@ -897,2 +963,19 @@ *

/**
* Disallow use of the `RegExp` constructor in favor of regular expression literals.
*
* @since 6.4.0
* @see https://eslint.org/docs/latest/rules/prefer-regex-literals
*/
"prefer-regex-literals": Linter.RuleEntry<
[
Partial<{
/**
* @default false
*/
disallowRedundantWrapping: boolean;
}>,
]
>;
/**
* Rule to enforce the consistent use of the radix argument when using `parseInt()`.

@@ -899,0 +982,0 @@ *

@@ -110,2 +110,22 @@ import { Linter } from "../index";

/**
* Require or disallow logical assignment operator shorthand.
*
* @since 8.24.0
* @see https://eslint.org/docs/rules/logical-assignment-operators
*/
"logical-assignment-operators":
| Linter.RuleEntry<
[
"always",
Partial<{
/**
* @default false
*/
enforceForIfStatements: boolean;
}>,
]
>
| Linter.RuleEntry<["never"]>;
/**
* Rule to disallow reassigning class members.

@@ -164,5 +184,5 @@ *

* @since 2.5.0
* @see https://eslint.org/docs/rules/no-duplicate-import
* @see https://eslint.org/docs/rules/no-duplicate-imports
*/
"no-duplicate-import": Linter.RuleEntry<
"no-duplicate-imports": Linter.RuleEntry<
[

@@ -391,2 +411,10 @@ Partial<{

/**
* Disallow the use of `Math.pow` in favor of the `**` operator.
*
* @since 6.7.0
* @see https://eslint.org/docs/latest/rules/prefer-exponentiation-operator
*/
"prefer-exponentiation-operator": Linter.RuleEntry<[]>;
/**
* Rule to disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals.

@@ -393,0 +421,0 @@ *

@@ -144,2 +144,13 @@ import { Linter } from "../index";

/**
* Disallow duplicate conditions in if-else-if chains.
*
* @remarks
* Recommended by ESLint, the rule was enabled in `eslint:recommended`.
*
* @since 6.7.0
* @see https://eslint.org/docs/rules/no-dupe-else-if
*/
"no-dupe-else-if": Linter.RuleEntry<[]>;
/**
* Rule to disallow duplicate keys in object literals.

@@ -338,2 +349,13 @@ *

/**
* Disallow literal numbers that lose precision.
*
* @remarks
* Recommended by ESLint, the rule was enabled in `eslint:recommended`.
*
* @since 7.1.0
* @see https://eslint.org/docs/latest/rules/no-loss-of-precision
*/
"no-loss-of-precision": Linter.RuleEntry<[]>;
/**
* Rule to disallow characters which are made with multiple code points in character class syntax.

@@ -439,2 +461,19 @@ *

/**
* Disallow loops with a body that allows only one iteration.
*
* @since 7.3.0
* @see https://eslint.org/docs/latest/rules/no-unreachable-loop
*/
"no-unreachable-loop": Linter.RuleEntry<
[
Partial<{
/**
* @default []
*/
ignore: "WhileStatement" | "DoWhileStatement" | "ForStatement" | "ForInStatement" | "ForOfStatement";
}>,
]
>;
/**
* Rule to disallow control flow statements in `finally` blocks.

@@ -462,2 +501,22 @@ *

/**
* Disallow use of optional chaining in contexts where the `undefined` value is not allowed.
*
* @remarks
* Recommended by ESLint, the rule was enabled in `eslint:recommended`.
*
* @since 7.15.0
* @see https://eslint.org/docs/rules/no-unsafe-optional-chaining
*/
"no-unsafe-optional-chaining": Linter.RuleEntry<
[
Partial<{
/**
* @default false
*/
disallowArithmeticOperators: boolean;
}>,
]
>;
/**
* Rule to disallow assignments that can lead to race conditions due to usage of `await` or `yield`.

@@ -464,0 +523,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