Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@eslint/core

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint/core - npm Package Compare versions

Comparing version
0.16.0
to
0.17.0
+14
-14
dist/cjs/types.d.cts

@@ -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 @@ /**

@@ -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 @@ /**

{
"name": "@eslint/core",
"version": "0.16.0",
"version": "0.17.0",
"description": "Runtime-agnostic core of ESLint",

@@ -5,0 +5,0 @@ "type": "module",

@@ -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.