@eslint/core
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -95,2 +95,6 @@ /** | ||
recommended?: boolean | undefined; | ||
/** | ||
* Indicates if the rule is frozen (no longer accepting feature requests). | ||
*/ | ||
frozen?: boolean | undefined; | ||
} | ||
@@ -113,2 +117,4 @@ /** | ||
schema?: JSONSchema4 | JSONSchema4[] | false | undefined; | ||
/** Any default options to be recursively merged on top of any user-provided options. */ | ||
defaultOptions?: unknown[]; | ||
/** | ||
@@ -119,9 +125,10 @@ * The messages that the rule can report. | ||
/** | ||
* The deprecated rules for the rule. | ||
* Indicates whether the rule has been deprecated or provides additional metadata about the deprecation. Omit if not deprecated. | ||
*/ | ||
deprecated?: boolean | undefined; | ||
deprecated?: boolean | DeprecatedInfo | undefined; | ||
/** | ||
* When a rule is deprecated, indicates the rule ID(s) that should be used instead. | ||
* @deprecated Use deprecated.replacedBy instead. | ||
* The name of the rule(s) this rule was replaced by, if it was deprecated. | ||
*/ | ||
replacedBy?: string[] | undefined; | ||
replacedBy?: readonly string[] | undefined; | ||
/** | ||
@@ -137,2 +144,67 @@ * Indicates if the rule is fixable, and if so, what type of fix it provides. | ||
/** | ||
* Provides additional metadata about a deprecation. | ||
*/ | ||
export interface DeprecatedInfo { | ||
/** | ||
* General message presented to the user, e.g. for the key rule why the rule | ||
* is deprecated or for info how to replace the rule. | ||
*/ | ||
message?: string; | ||
/** | ||
* URL to more information about this deprecation in general. | ||
*/ | ||
url?: string; | ||
/** | ||
* An empty array explicitly states that there is no replacement. | ||
*/ | ||
replacedBy?: ReplacedByInfo[]; | ||
/** | ||
* The package version since when the rule is deprecated (should use full | ||
* semver without a leading "v"). | ||
*/ | ||
deprecatedSince?: string; | ||
/** | ||
* The estimated version when the rule is removed (probably the next major | ||
* version). null means the rule is "frozen" (will be available but will not | ||
* be changed). | ||
*/ | ||
availableUntil?: string | null; | ||
} | ||
/** | ||
* Provides metadata about a replacement | ||
*/ | ||
export interface ReplacedByInfo { | ||
/** | ||
* General message presented to the user, e.g. how to replace the rule | ||
*/ | ||
message?: string; | ||
/** | ||
* URL to more information about this replacement in general | ||
*/ | ||
url?: string; | ||
/** | ||
* Name should be "eslint" if the replacement is an ESLint core rule. Omit | ||
* the property if the replacement is in the same plugin. | ||
*/ | ||
plugin?: ExternalSpecifier; | ||
/** | ||
* Name and documentation of the replacement rule | ||
*/ | ||
rule?: ExternalSpecifier; | ||
} | ||
/** | ||
* Specifies the name and url of an external resource. At least one property | ||
* should be set. | ||
*/ | ||
export interface ExternalSpecifier { | ||
/** | ||
* Name of the referenced plugin / rule. | ||
*/ | ||
name?: string; | ||
/** | ||
* URL pointing to documentation for the plugin / rule. | ||
*/ | ||
url?: string; | ||
} | ||
/** | ||
* Generic type for `RuleContext`. | ||
@@ -139,0 +211,0 @@ */ |
{ | ||
"name": "@eslint/core", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "Runtime-agnostic core of ESLint", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -23,5 +23,5 @@ # ESLint Core | ||
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3> | ||
<p><a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a></p><h3>Silver Sponsors</h3> | ||
<p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a></p><h3>Silver Sponsors</h3> | ||
<p><a href="https://www.serptriumph.com/"><img src="https://images.opencollective.com/serp-triumph5/fea3074/logo.png" alt="SERP Triumph" height="64"></a> <a href="https://www.jetbrains.com/"><img src="https://images.opencollective.com/jetbrains/fe76f99/logo.png" alt="JetBrains" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
<p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a></p> | ||
<p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nolebase.ayaka.io"><img src="https://avatars.githubusercontent.com/u/11081491" alt="Neko" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a></p> | ||
<h3>Technology Sponsors</h3> | ||
@@ -28,0 +28,0 @@ Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. |
Sorry, the diff of this file is not supported yet
64553
799