eslint-cli-bundle 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/api.d.ts +29 -8
- package/dist/api.js +7 -7
- package/dist/babel.cjs +38 -27
- package/dist/config.d.ts +9 -1
- package/dist/config.js +1 -1
- package/dist/eslint-BYId4sVl.js +535 -0
- package/dist/eslint.js +9 -6
- package/dist/jiti-LuDw_cZG.js +15 -0
- package/dist/rolldown-runtime-CN7XbDR5.js +1 -0
- package/dist/src-CBWp9Y5K.js +1 -0
- package/dist/{types-CXey2reC.d.ts → types-BkIPfpy7.d.ts} +64 -6
- package/package.json +18 -14
- package/dist/chunk-qnHZjHhP.js +0 -1
- package/dist/eslint-BTrx12MV.js +0 -256
- package/dist/jiti-BvM1NyiB.js +0 -9
- package/dist/src-D7slgxDU.js +0 -1
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
|
|
7
7
|
*/
|
|
8
8
|
type JSONSchema4TypeName = "string" //
|
|
9
|
-
| "number" | "integer" | "boolean" | "object" | "array" | "null" | "any";
|
|
9
|
+
| "number" | "integer" | "boolean" | "object" | "array" | "null" | "any";
|
|
10
10
|
/**
|
|
11
11
|
* @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5
|
|
12
12
|
*/
|
|
13
13
|
type JSONSchema4Type = string //
|
|
14
|
-
| number | boolean | JSONSchema4Object | JSONSchema4Array | null;
|
|
14
|
+
| number | boolean | JSONSchema4Object | JSONSchema4Array | null;
|
|
15
15
|
// Workaround for infinite type recursion
|
|
16
16
|
interface JSONSchema4Object {
|
|
17
17
|
[key: string]: JSONSchema4Type;
|
|
@@ -196,8 +196,9 @@ interface JSONSchema4 {
|
|
|
196
196
|
[k: string]: any;
|
|
197
197
|
format?: string | undefined;
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
declare namespace types_d_exports {
|
|
200
|
+
export { BaseConfig, BinarySourceCode, CallTraversalStep, ConfigObject, ConfigOverride, CustomRuleDefinitionType, CustomRuleTypeDefinitions, DeprecatedInfo, Directive, DirectiveType, EcmaVersion, EnvironmentConfig, ExternalSpecifier, File, FileError, FileProblem, GlobalAccess, GlobalsConfig, HasRules, JavaScriptParserOptionsConfig, JavaScriptSourceType, Language, LanguageContext, LanguageOptions, LanguageTypeOptions, LegacyConfigObject, LintMessage, LintSuggestion, LinterOptionsConfig, MessagePlaceholderData, NotOkParseResult, ObjectMetaProperties, OkParseResult, ParseResult, Plugin, Position, PositionWithOffset, Processor, ProcessorFile, ReplacedByInfo, RuleConfig, RuleContext, RuleContextTypeOptions, RuleDefinition, RuleDefinitionTypeOptions, RuleFixType, RuleFixer, RuleTextEdit, RuleTextEditor, RuleType, RuleVisitor, RulesConfig, RulesMeta, RulesMetaDocs, SettingsConfig, Severity, SeverityLevel, SeverityName, SourceCode, SourceCodeBaseTypeOptions, SourceLocation, SourceLocationWithOffset, SourceRange, SuggestedEdit, SuggestedEditBase, SuggestionMessage, TextSourceCode, TraversalStep, ViolationLocation, ViolationMessage, ViolationReport, ViolationReportBase, VisitTraversalStep };
|
|
201
|
+
}
|
|
201
202
|
/**
|
|
202
203
|
* Represents an error inside of a file.
|
|
203
204
|
*/
|
|
@@ -223,6 +224,13 @@ interface SourceLocation {
|
|
|
223
224
|
start: Position;
|
|
224
225
|
end: Position;
|
|
225
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Represents the start and end coordinates of a node inside the source with an offset.
|
|
229
|
+
*/
|
|
230
|
+
interface SourceLocationWithOffset {
|
|
231
|
+
start: PositionWithOffset;
|
|
232
|
+
end: PositionWithOffset;
|
|
233
|
+
}
|
|
226
234
|
/**
|
|
227
235
|
* Represents a location coordinate inside the source. ESLint-style formats
|
|
228
236
|
* have just `line` and `column` while others may have `offset` as well.
|
|
@@ -231,6 +239,12 @@ interface Position {
|
|
|
231
239
|
line: number;
|
|
232
240
|
column: number;
|
|
233
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Represents a location coordinate inside the source with an offset.
|
|
244
|
+
*/
|
|
245
|
+
interface PositionWithOffset extends Position {
|
|
246
|
+
offset: number;
|
|
247
|
+
}
|
|
234
248
|
/**
|
|
235
249
|
* Represents a range of characters in the source.
|
|
236
250
|
*/
|
|
@@ -276,6 +290,12 @@ interface RulesMetaDocs {
|
|
|
276
290
|
* Indicates if the rule is frozen (no longer accepting feature requests).
|
|
277
291
|
*/
|
|
278
292
|
frozen?: boolean | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* The dialects of the languages that the rule is intended to lint.
|
|
295
|
+
* @example
|
|
296
|
+
* ["JavaScript", "TypeScript"]
|
|
297
|
+
*/
|
|
298
|
+
dialects?: string[] | undefined;
|
|
279
299
|
}
|
|
280
300
|
/**
|
|
281
301
|
* Meta information about a rule.
|
|
@@ -320,12 +340,21 @@ interface RulesMeta<MessageIds extends string = string, RuleOptions = unknown[],
|
|
|
320
340
|
hasSuggestions?: boolean | undefined;
|
|
321
341
|
/**
|
|
322
342
|
* The language the rule is intended to lint.
|
|
343
|
+
* @deprecated Use `languages` instead.
|
|
323
344
|
*/
|
|
324
345
|
language?: string;
|
|
325
346
|
/**
|
|
326
347
|
* The dialects of `language` that the rule is intended to lint.
|
|
348
|
+
* @deprecated Use `docs.dialects` instead.
|
|
327
349
|
*/
|
|
328
350
|
dialects?: string[];
|
|
351
|
+
/**
|
|
352
|
+
* Languages supported by this rule in the format `"plugin/language"`.
|
|
353
|
+
* Use `"*"` for any language or `"plugin/*"` for any language from a specific plugin.
|
|
354
|
+
* @example
|
|
355
|
+
* ["js/js", "markdown/gfm", "json/jsonc", "css/css"]
|
|
356
|
+
*/
|
|
357
|
+
languages?: string[] | undefined;
|
|
329
358
|
}
|
|
330
359
|
/**
|
|
331
360
|
* Provides additional metadata about a deprecation.
|
|
@@ -640,6 +669,35 @@ interface RuleDefinition<Options extends RuleDefinitionTypeOptions = RuleDefinit
|
|
|
640
669
|
MessageIds: Options["MessageIds"];
|
|
641
670
|
}>): Options["Visitor"];
|
|
642
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
* Defaults for non-language-related `RuleDefinition` options.
|
|
674
|
+
* @deprecated Use the same type from `@eslint/plugin-kit` instead.
|
|
675
|
+
*/
|
|
676
|
+
interface CustomRuleTypeDefinitions {
|
|
677
|
+
RuleOptions: unknown[];
|
|
678
|
+
MessageIds: string;
|
|
679
|
+
ExtRuleDocs: Record<string, unknown>;
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* A helper type to define language specific specializations of the `RuleDefinition` type.
|
|
683
|
+
* @deprecated Use the same type from `@eslint/plugin-kit` instead.
|
|
684
|
+
*
|
|
685
|
+
* @example
|
|
686
|
+
* ```ts
|
|
687
|
+
* type YourRuleDefinition<
|
|
688
|
+
* Options extends Partial<CustomRuleTypeDefinitions> = {},
|
|
689
|
+
* > = CustomRuleDefinitionType<
|
|
690
|
+
* {
|
|
691
|
+
* LangOptions: YourLanguageOptions;
|
|
692
|
+
* Code: YourSourceCode;
|
|
693
|
+
* Visitor: YourRuleVisitor;
|
|
694
|
+
* Node: YourNode;
|
|
695
|
+
* },
|
|
696
|
+
* Options
|
|
697
|
+
* >;
|
|
698
|
+
* ```
|
|
699
|
+
*/
|
|
700
|
+
type CustomRuleDefinitionType<LanguageSpecificOptions extends Omit<RuleDefinitionTypeOptions, keyof CustomRuleTypeDefinitions>, Options extends Partial<CustomRuleTypeDefinitions>> = RuleDefinition<LanguageSpecificOptions & Required<Options & Omit<CustomRuleTypeDefinitions, keyof Options>>>;
|
|
643
701
|
/**
|
|
644
702
|
* The human readable severity level used in a configuration.
|
|
645
703
|
*/
|
|
@@ -1022,7 +1080,7 @@ interface Language<Options extends LanguageTypeOptions = {
|
|
|
1022
1080
|
/**
|
|
1023
1081
|
* Default language options. User-defined options are merged with this object.
|
|
1024
1082
|
*/
|
|
1025
|
-
defaultLanguageOptions?:
|
|
1083
|
+
defaultLanguageOptions?: Options["LangOptions"];
|
|
1026
1084
|
/**
|
|
1027
1085
|
* Validates languageOptions for this language.
|
|
1028
1086
|
*/
|
|
@@ -1296,4 +1354,4 @@ interface Directive {
|
|
|
1296
1354
|
justification?: string;
|
|
1297
1355
|
}
|
|
1298
1356
|
//#endregion
|
|
1299
|
-
export { Severity as A, ViolationMessage as B, RuleDefinition as C, RuleVisitor as D, RuleTextEditor as E, SuggestedEditBase as F, ViolationReportBase as H, SuggestionMessage as I, TextSourceCode as L, SeverityName as M, SourceRange as N, RulesConfig as O, SuggestedEdit as P, TraversalStep as R, RuleContext as S, RuleTextEdit as T, ViolationReport as V, ObjectMetaProperties as _, EcmaVersion as a, ProcessorFile as b, GlobalsConfig as c, LanguageOptions as d, LegacyConfigObject as f, MessagePlaceholderData as g, LinterOptionsConfig as h, DeprecatedInfo as i, SeverityLevel as j, RulesMeta as k, HasRules as l, LintSuggestion as m, ConfigObject as n, EnvironmentConfig as o, LintMessage as p, ConfigOverride as r, GlobalAccess as s, BaseConfig as t, JavaScriptSourceType as u, Plugin as v, RuleFixer as w, RuleConfig as x, Processor as y, ViolationLocation as z };
|
|
1357
|
+
export { Severity as A, ViolationMessage as B, RuleDefinition as C, RuleVisitor as D, RuleTextEditor as E, SuggestedEditBase as F, ViolationReportBase as H, SuggestionMessage as I, TextSourceCode as L, SeverityName as M, SourceRange as N, RulesConfig as O, SuggestedEdit as P, TraversalStep as R, RuleContext as S, RuleTextEdit as T, types_d_exports as U, ViolationReport as V, ObjectMetaProperties as _, EcmaVersion as a, ProcessorFile as b, GlobalsConfig as c, LanguageOptions as d, LegacyConfigObject as f, MessagePlaceholderData as g, LinterOptionsConfig as h, DeprecatedInfo as i, SeverityLevel as j, RulesMeta as k, HasRules as l, LintSuggestion as m, ConfigObject as n, EnvironmentConfig as o, LintMessage as p, ConfigOverride as r, GlobalAccess as s, BaseConfig as t, JavaScriptSourceType as u, Plugin as v, RuleFixer as w, RuleConfig as x, Processor as y, ViolationLocation as z };
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-cli-bundle",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Bundled version of eslint",
|
|
5
5
|
"author": "silverwind",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/silverwind/eslint-cli-bundle.git"
|
|
9
|
+
},
|
|
7
10
|
"license": "BSD-2-Clause",
|
|
8
11
|
"bin": {
|
|
9
12
|
"eslint": "dist/eslint.js",
|
|
@@ -29,18 +32,19 @@
|
|
|
29
32
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
30
33
|
},
|
|
31
34
|
"devDependencies": {
|
|
32
|
-
"@eslint/config-helpers": "0.
|
|
33
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
34
|
-
"eslint": "10.
|
|
35
|
-
"eslint-config-silverwind": "
|
|
36
|
-
"
|
|
35
|
+
"@eslint/config-helpers": "0.7.0",
|
|
36
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
37
|
+
"eslint": "10.11.0",
|
|
38
|
+
"eslint-config-silverwind": "151.0.0",
|
|
39
|
+
"jest-extended": "7.0.0",
|
|
40
|
+
"jiti": "2.7.0",
|
|
37
41
|
"patch-package": "8.0.1",
|
|
38
|
-
"tsdown": "0.
|
|
39
|
-
"tsdown-config-silverwind": "
|
|
40
|
-
"typescript": "
|
|
41
|
-
"typescript-config-silverwind": "
|
|
42
|
-
"updates": "
|
|
43
|
-
"updates-config-silverwind": "
|
|
44
|
-
"versions": "
|
|
42
|
+
"tsdown": "0.23.0",
|
|
43
|
+
"tsdown-config-silverwind": "4.1.1",
|
|
44
|
+
"typescript": "6.0.3",
|
|
45
|
+
"typescript-config-silverwind": "21.0.0",
|
|
46
|
+
"updates": "19.0.0",
|
|
47
|
+
"updates-config-silverwind": "4.0.6",
|
|
48
|
+
"versions": "15.5.0"
|
|
45
49
|
}
|
|
46
50
|
}
|
package/dist/chunk-qnHZjHhP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createRequire as e}from"node:module";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),d=e(import.meta.url);export{u as i,s as n,d as r,c as t};
|