@eslint/core
Advanced tools
+14
-14
@@ -120,3 +120,3 @@ /** | ||
| * Any default options to be recursively merged on top of any user-provided options. | ||
| **/ | ||
| */ | ||
| defaultOptions?: RuleOptions; | ||
@@ -375,8 +375,8 @@ /** | ||
| */ | ||
| type RuleFixer = (fixer: RuleTextEditor) => RuleTextEdit | Iterable<RuleTextEdit> | null; | ||
| interface ViolationReportBase { | ||
| export type RuleFixer = (fixer: RuleTextEditor) => RuleTextEdit | Iterable<RuleTextEdit> | null; | ||
| export interface ViolationReportBase { | ||
| /** | ||
| * The data to insert into the message. | ||
| */ | ||
| data?: Record<string, string> | undefined; | ||
| data?: Record<string, unknown> | undefined; | ||
| /** | ||
@@ -392,3 +392,3 @@ * The fix to be applied for the violation. | ||
| } | ||
| type ViolationMessage<MessageIds = string> = { | ||
| export type ViolationMessage<MessageIds = string> = { | ||
| message: string; | ||
@@ -398,3 +398,3 @@ } | { | ||
| }; | ||
| type ViolationLocation<Node> = { | ||
| export type ViolationLocation<Node> = { | ||
| loc: SourceLocation | Position; | ||
@@ -405,13 +405,13 @@ } | { | ||
| export type ViolationReport<Node = unknown, MessageIds = string> = ViolationReportBase & ViolationMessage<MessageIds> & ViolationLocation<Node>; | ||
| interface SuggestedEditBase { | ||
| export interface SuggestedEditBase { | ||
| /** | ||
| * The data to insert into the message. | ||
| */ | ||
| data?: Record<string, string> | undefined; | ||
| data?: Record<string, unknown> | undefined; | ||
| /** | ||
| * The fix to be applied for the suggestion. | ||
| */ | ||
| fix?: RuleFixer | null | undefined; | ||
| fix: RuleFixer; | ||
| } | ||
| type SuggestionMessage = { | ||
| export type SuggestionMessage = { | ||
| desc: string; | ||
@@ -428,3 +428,3 @@ } | { | ||
| */ | ||
| interface LintSuggestion { | ||
| export interface LintSuggestion { | ||
| /** A short description. */ | ||
@@ -671,3 +671,3 @@ desc: string; | ||
| */ | ||
| type JavaScriptSourceType = "script" | "module" | "commonjs"; | ||
| export type JavaScriptSourceType = "script" | "module" | "commonjs"; | ||
| /** | ||
@@ -733,3 +733,3 @@ * Parser options. | ||
| */ | ||
| interface HasRules<Rules extends RulesConfig = RulesConfig> { | ||
| export interface HasRules<Rules extends RulesConfig = RulesConfig> { | ||
| rules?: Partial<Rules> | undefined; | ||
@@ -742,3 +742,3 @@ } | ||
| */ | ||
| interface BaseConfig<Rules extends RulesConfig = RulesConfig, OverrideRules extends RulesConfig = Rules> extends HasRules<Rules> { | ||
| export interface BaseConfig<Rules extends RulesConfig = RulesConfig, OverrideRules extends RulesConfig = Rules> extends HasRules<Rules> { | ||
| $schema?: string | undefined; | ||
@@ -745,0 +745,0 @@ /** |
+14
-14
@@ -120,3 +120,3 @@ /** | ||
| * Any default options to be recursively merged on top of any user-provided options. | ||
| **/ | ||
| */ | ||
| defaultOptions?: RuleOptions; | ||
@@ -375,8 +375,8 @@ /** | ||
| */ | ||
| type RuleFixer = (fixer: RuleTextEditor) => RuleTextEdit | Iterable<RuleTextEdit> | null; | ||
| interface ViolationReportBase { | ||
| export type RuleFixer = (fixer: RuleTextEditor) => RuleTextEdit | Iterable<RuleTextEdit> | null; | ||
| export interface ViolationReportBase { | ||
| /** | ||
| * The data to insert into the message. | ||
| */ | ||
| data?: Record<string, string> | undefined; | ||
| data?: Record<string, unknown> | undefined; | ||
| /** | ||
@@ -392,3 +392,3 @@ * The fix to be applied for the violation. | ||
| } | ||
| type ViolationMessage<MessageIds = string> = { | ||
| export type ViolationMessage<MessageIds = string> = { | ||
| message: string; | ||
@@ -398,3 +398,3 @@ } | { | ||
| }; | ||
| type ViolationLocation<Node> = { | ||
| export type ViolationLocation<Node> = { | ||
| loc: SourceLocation | Position; | ||
@@ -405,13 +405,13 @@ } | { | ||
| export type ViolationReport<Node = unknown, MessageIds = string> = ViolationReportBase & ViolationMessage<MessageIds> & ViolationLocation<Node>; | ||
| interface SuggestedEditBase { | ||
| export interface SuggestedEditBase { | ||
| /** | ||
| * The data to insert into the message. | ||
| */ | ||
| data?: Record<string, string> | undefined; | ||
| data?: Record<string, unknown> | undefined; | ||
| /** | ||
| * The fix to be applied for the suggestion. | ||
| */ | ||
| fix?: RuleFixer | null | undefined; | ||
| fix: RuleFixer; | ||
| } | ||
| type SuggestionMessage = { | ||
| export type SuggestionMessage = { | ||
| desc: string; | ||
@@ -428,3 +428,3 @@ } | { | ||
| */ | ||
| interface LintSuggestion { | ||
| export interface LintSuggestion { | ||
| /** A short description. */ | ||
@@ -671,3 +671,3 @@ desc: string; | ||
| */ | ||
| type JavaScriptSourceType = "script" | "module" | "commonjs"; | ||
| export type JavaScriptSourceType = "script" | "module" | "commonjs"; | ||
| /** | ||
@@ -733,3 +733,3 @@ * Parser options. | ||
| */ | ||
| interface HasRules<Rules extends RulesConfig = RulesConfig> { | ||
| export interface HasRules<Rules extends RulesConfig = RulesConfig> { | ||
| rules?: Partial<Rules> | undefined; | ||
@@ -742,3 +742,3 @@ } | ||
| */ | ||
| interface BaseConfig<Rules extends RulesConfig = RulesConfig, OverrideRules extends RulesConfig = Rules> extends HasRules<Rules> { | ||
| export interface BaseConfig<Rules extends RulesConfig = RulesConfig, OverrideRules extends RulesConfig = Rules> extends HasRules<Rules> { | ||
| $schema?: string | undefined; | ||
@@ -745,0 +745,0 @@ /** |
+1
-1
| { | ||
| "name": "@eslint/core", | ||
| "version": "0.16.0", | ||
| "version": "0.17.0", | ||
| "description": "Runtime-agnostic core of ESLint", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+1
-1
@@ -25,3 +25,3 @@ # ESLint Core | ||
| <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" 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> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
| <p><a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://sentry.io"><img src="https://github.com/getsentry.png" alt="Sentry" 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> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p> | ||
| <p><a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://sentry.io"><img src="https://github.com/getsentry.png" alt="Sentry" 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> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" 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. |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
92854
0.25%0
-100%