@eslinted/core 4.0.3 → 4.0.5-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/RELEASE.yml +1 -0
- package/.github/workflows/rc.yml +1 -0
- package/package.json +19 -5
- package/src/factory/{files/index.ts → files.ts} +4 -4
- package/src/factory/index.ts +3 -6
- package/src/factory/options/{option/html/index.ts → html.ts} +1 -1
- package/src/factory/options/index.ts +9 -9
- package/src/factory/options/{option/js/index.ts → js.ts} +1 -1
- package/src/factory/options/{option/json/index.ts → json.ts} +1 -1
- package/src/factory/options/{option/jsonc/index.ts → jsonc.ts} +1 -1
- package/src/factory/options/{option/md/index.ts → md.ts} +1 -1
- package/src/factory/options/{option/mocha/index.ts → mocha.ts} +2 -2
- package/src/factory/options/option/index.ts +19 -13
- package/src/factory/options/option/params/globals.ts +3 -0
- package/src/{boundary/output/config/option/language/index.ts → factory/options/option/params/language.ts} +3 -5
- package/src/factory/options/option/params/languageOptions/ecma.ts +1 -0
- package/src/factory/options/option/params/languageOptions/source.ts +1 -0
- package/src/{boundary/output/config/option/linter/index.ts → factory/options/option/params/linter.ts} +1 -1
- package/src/factory/options/option/params/plugins.ts +1 -0
- package/src/factory/options/option/template.ts +24 -0
- package/src/factory/options/{option/svelte/index.ts → svelte.ts} +2 -2
- package/src/factory/options/{option/ts/index.ts → ts.ts} +2 -2
- package/src/factory/options/{option/yml/index.ts → yml.ts} +1 -1
- package/src/factory/{rulesets/ruleset → ruleset}/index.ts +5 -4
- package/src/factory/ruleset/rule.ts +8 -0
- package/src/factory/{rulesets/index.ts → rulesets.ts} +5 -5
- package/src/index.ts +20 -19
- package/src/input.ts +11 -0
- package/src/inputs/files/base.ts +3 -0
- package/src/inputs/files/includes.ts +3 -0
- package/src/inputs/files.ts +7 -0
- package/src/inputs/imports/parsers.ts +11 -0
- package/src/{dependency/plugins/index.ts → inputs/imports/plugins.ts} +2 -5
- package/src/inputs/imports.ts +2 -0
- package/src/inputs/parsers.ts +3 -0
- package/src/inputs/plugins.ts +3 -0
- package/src/inputs/rules/entry/index.ts +3 -0
- package/src/inputs/rules/entry/object/index.ts +7 -0
- package/src/inputs/rules/entry/object/state/index.ts +4 -0
- package/src/inputs/rules/overrides.ts +4 -0
- package/src/inputs/rules/preset.ts +4 -0
- package/src/inputs/rules.ts +7 -0
- package/src/{boundary/output/config/index.ts → output.ts} +3 -4
- package/src/{scopes/index.ts → scopes.ts} +1 -3
- package/dist/boundary/index.d.ts +0 -9
- package/dist/boundary/index.d.ts.map +0 -1
- package/dist/boundary/index.js +0 -2
- package/dist/boundary/index.js.map +0 -1
- package/dist/boundary/input/files/default/index.d.ts +0 -4
- package/dist/boundary/input/files/default/index.d.ts.map +0 -1
- package/dist/boundary/input/files/default/index.js +0 -2
- package/dist/boundary/input/files/default/index.js.map +0 -1
- package/dist/boundary/input/files/includes/index.d.ts +0 -4
- package/dist/boundary/input/files/includes/index.d.ts.map +0 -1
- package/dist/boundary/input/files/includes/index.js +0 -2
- package/dist/boundary/input/files/includes/index.js.map +0 -1
- package/dist/boundary/input/files/index.d.ts +0 -8
- package/dist/boundary/input/files/index.d.ts.map +0 -1
- package/dist/boundary/input/files/index.js +0 -2
- package/dist/boundary/input/files/index.js.map +0 -1
- package/dist/boundary/input/index.d.ts +0 -14
- package/dist/boundary/input/index.d.ts.map +0 -1
- package/dist/boundary/input/index.js +0 -2
- package/dist/boundary/input/index.js.map +0 -1
- package/dist/boundary/input/parsers/index.d.ts +0 -4
- package/dist/boundary/input/parsers/index.d.ts.map +0 -1
- package/dist/boundary/input/parsers/index.js +0 -2
- package/dist/boundary/input/parsers/index.js.map +0 -1
- package/dist/boundary/input/plugins/index.d.ts +0 -6
- package/dist/boundary/input/plugins/index.d.ts.map +0 -1
- package/dist/boundary/input/plugins/index.js +0 -2
- package/dist/boundary/input/plugins/index.js.map +0 -1
- package/dist/boundary/input/rules/index.d.ts +0 -8
- package/dist/boundary/input/rules/index.d.ts.map +0 -1
- package/dist/boundary/input/rules/index.js +0 -2
- package/dist/boundary/input/rules/index.js.map +0 -1
- package/dist/boundary/input/rules/overrides/index.d.ts +0 -5
- package/dist/boundary/input/rules/overrides/index.d.ts.map +0 -1
- package/dist/boundary/input/rules/overrides/index.js +0 -2
- package/dist/boundary/input/rules/overrides/index.js.map +0 -1
- package/dist/boundary/input/rules/preset/entry/index.d.ts +0 -4
- package/dist/boundary/input/rules/preset/entry/index.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/entry/index.js +0 -2
- package/dist/boundary/input/rules/preset/entry/index.js.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/index.d.ts +0 -4
- package/dist/boundary/input/rules/preset/entry/object/index.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/index.js +0 -2
- package/dist/boundary/input/rules/preset/entry/object/index.js.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/state/index.d.ts +0 -3
- package/dist/boundary/input/rules/preset/entry/object/state/index.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/state/index.js +0 -2
- package/dist/boundary/input/rules/preset/entry/object/state/index.js.map +0 -1
- package/dist/boundary/input/rules/preset/index.d.ts +0 -5
- package/dist/boundary/input/rules/preset/index.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/index.js +0 -2
- package/dist/boundary/input/rules/preset/index.js.map +0 -1
- package/dist/boundary/output/config/index.d.ts +0 -22
- package/dist/boundary/output/config/index.d.ts.map +0 -1
- package/dist/boundary/output/config/index.js +0 -2
- package/dist/boundary/output/config/index.js.map +0 -1
- package/dist/boundary/output/config/option/index.d.ts +0 -14
- package/dist/boundary/output/config/option/index.d.ts.map +0 -1
- package/dist/boundary/output/config/option/index.js +0 -2
- package/dist/boundary/output/config/option/index.js.map +0 -1
- package/dist/boundary/output/config/option/language/ecma/index.d.ts +0 -3
- package/dist/boundary/output/config/option/language/ecma/index.d.ts.map +0 -1
- package/dist/boundary/output/config/option/language/ecma/index.js +0 -2
- package/dist/boundary/output/config/option/language/ecma/index.js.map +0 -1
- package/dist/boundary/output/config/option/language/index.d.ts +0 -15
- package/dist/boundary/output/config/option/language/index.d.ts.map +0 -1
- package/dist/boundary/output/config/option/language/index.js +0 -2
- package/dist/boundary/output/config/option/language/index.js.map +0 -1
- package/dist/boundary/output/config/option/language/source/index.d.ts +0 -3
- package/dist/boundary/output/config/option/language/source/index.d.ts.map +0 -1
- package/dist/boundary/output/config/option/language/source/index.js +0 -2
- package/dist/boundary/output/config/option/language/source/index.js.map +0 -1
- package/dist/boundary/output/config/option/linter/index.d.ts +0 -5
- package/dist/boundary/output/config/option/linter/index.d.ts.map +0 -1
- package/dist/boundary/output/config/option/linter/index.js +0 -2
- package/dist/boundary/output/config/option/linter/index.js.map +0 -1
- package/dist/boundary/output/config/option/plugins/index.d.ts +0 -5
- package/dist/boundary/output/config/option/plugins/index.d.ts.map +0 -1
- package/dist/boundary/output/config/option/plugins/index.js +0 -2
- package/dist/boundary/output/config/option/plugins/index.js.map +0 -1
- package/dist/boundary/output/index.d.ts +0 -3
- package/dist/boundary/output/index.d.ts.map +0 -1
- package/dist/boundary/output/index.js +0 -2
- package/dist/boundary/output/index.js.map +0 -1
- package/dist/dependency/globals/index.d.ts +0 -4
- package/dist/dependency/globals/index.d.ts.map +0 -1
- package/dist/dependency/globals/index.js +0 -2
- package/dist/dependency/globals/index.js.map +0 -1
- package/dist/dependency/index.d.ts +0 -5
- package/dist/dependency/index.d.ts.map +0 -1
- package/dist/dependency/index.js +0 -2
- package/dist/dependency/index.js.map +0 -1
- package/dist/dependency/parsers/index.d.ts +0 -4
- package/dist/dependency/parsers/index.d.ts.map +0 -1
- package/dist/dependency/parsers/index.js +0 -2
- package/dist/dependency/parsers/index.js.map +0 -1
- package/dist/dependency/plugins/index.d.ts +0 -3
- package/dist/dependency/plugins/index.d.ts.map +0 -1
- package/dist/dependency/plugins/index.js +0 -2
- package/dist/dependency/plugins/index.js.map +0 -1
- package/dist/factory/files/index.d.ts +0 -8
- package/dist/factory/files/index.d.ts.map +0 -1
- package/dist/factory/files/index.js +0 -16
- package/dist/factory/files/index.js.map +0 -1
- package/dist/factory/index.d.ts +0 -7
- package/dist/factory/index.d.ts.map +0 -1
- package/dist/factory/index.js +0 -7
- package/dist/factory/index.js.map +0 -1
- package/dist/factory/options/index.d.ts +0 -22
- package/dist/factory/options/index.d.ts.map +0 -1
- package/dist/factory/options/index.js +0 -21
- package/dist/factory/options/index.js.map +0 -1
- package/dist/factory/options/option/html/index.d.ts +0 -9
- package/dist/factory/options/option/html/index.d.ts.map +0 -1
- package/dist/factory/options/option/html/index.js +0 -10
- package/dist/factory/options/option/html/index.js.map +0 -1
- package/dist/factory/options/option/index.d.ts +0 -2989
- package/dist/factory/options/option/index.d.ts.map +0 -1
- package/dist/factory/options/option/index.js +0 -56
- package/dist/factory/options/option/index.js.map +0 -1
- package/dist/factory/options/option/js/index.d.ts +0 -10
- package/dist/factory/options/option/js/index.d.ts.map +0 -1
- package/dist/factory/options/option/js/index.js +0 -12
- package/dist/factory/options/option/js/index.js.map +0 -1
- package/dist/factory/options/option/json/index.d.ts +0 -9
- package/dist/factory/options/option/json/index.d.ts.map +0 -1
- package/dist/factory/options/option/json/index.js +0 -10
- package/dist/factory/options/option/json/index.js.map +0 -1
- package/dist/factory/options/option/jsonc/index.d.ts +0 -9
- package/dist/factory/options/option/jsonc/index.d.ts.map +0 -1
- package/dist/factory/options/option/jsonc/index.js +0 -10
- package/dist/factory/options/option/jsonc/index.js.map +0 -1
- package/dist/factory/options/option/md/index.d.ts +0 -9
- package/dist/factory/options/option/md/index.d.ts.map +0 -1
- package/dist/factory/options/option/md/index.js +0 -10
- package/dist/factory/options/option/md/index.js.map +0 -1
- package/dist/factory/options/option/mocha/index.d.ts +0 -40
- package/dist/factory/options/option/mocha/index.d.ts.map +0 -1
- package/dist/factory/options/option/mocha/index.js +0 -17
- package/dist/factory/options/option/mocha/index.js.map +0 -1
- package/dist/factory/options/option/svelte/index.d.ts +0 -27
- package/dist/factory/options/option/svelte/index.d.ts.map +0 -1
- package/dist/factory/options/option/svelte/index.js +0 -21
- package/dist/factory/options/option/svelte/index.js.map +0 -1
- package/dist/factory/options/option/ts/index.d.ts +0 -19
- package/dist/factory/options/option/ts/index.d.ts.map +0 -1
- package/dist/factory/options/option/ts/index.js +0 -15
- package/dist/factory/options/option/ts/index.js.map +0 -1
- package/dist/factory/options/option/yml/index.d.ts +0 -9
- package/dist/factory/options/option/yml/index.d.ts.map +0 -1
- package/dist/factory/options/option/yml/index.js +0 -10
- package/dist/factory/options/option/yml/index.js.map +0 -1
- package/dist/factory/rulesets/index.d.ts +0 -9
- package/dist/factory/rulesets/index.d.ts.map +0 -1
- package/dist/factory/rulesets/index.js +0 -17
- package/dist/factory/rulesets/index.js.map +0 -1
- package/dist/factory/rulesets/ruleset/index.d.ts +0 -13
- package/dist/factory/rulesets/ruleset/index.d.ts.map +0 -1
- package/dist/factory/rulesets/ruleset/index.js +0 -38
- package/dist/factory/rulesets/ruleset/index.js.map +0 -1
- package/dist/factory/rulesets/ruleset/rule/index.d.ts +0 -7
- package/dist/factory/rulesets/ruleset/rule/index.d.ts.map +0 -1
- package/dist/factory/rulesets/ruleset/rule/index.js +0 -9
- package/dist/factory/rulesets/ruleset/rule/index.js.map +0 -1
- package/dist/index.d.ts +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -31
- package/dist/index.js.map +0 -1
- package/dist/scopes/index.d.ts +0 -4
- package/dist/scopes/index.d.ts.map +0 -1
- package/dist/scopes/index.js +0 -13
- package/dist/scopes/index.js.map +0 -1
- package/src/boundary/index.ts +0 -15
- package/src/boundary/input/files/default/index.ts +0 -8
- package/src/boundary/input/files/includes/index.ts +0 -5
- package/src/boundary/input/files/index.ts +0 -11
- package/src/boundary/input/index.ts +0 -23
- package/src/boundary/input/parsers/index.ts +0 -5
- package/src/boundary/input/plugins/index.ts +0 -5
- package/src/boundary/input/rules/index.ts +0 -14
- package/src/boundary/input/rules/overrides/index.ts +0 -6
- package/src/boundary/input/rules/preset/entry/index.ts +0 -9
- package/src/boundary/input/rules/preset/entry/object/index.ts +0 -13
- package/src/boundary/input/rules/preset/entry/object/state/index.ts +0 -10
- package/src/boundary/input/rules/preset/index.ts +0 -10
- package/src/boundary/output/config/option/index.ts +0 -24
- package/src/boundary/output/config/option/language/ecma/index.ts +0 -3
- package/src/boundary/output/config/option/language/source/index.ts +0 -3
- package/src/boundary/output/config/option/plugins/index.ts +0 -3
- package/src/boundary/output/index.ts +0 -3
- package/src/dependency/globals/index.ts +0 -8
- package/src/dependency/index.ts +0 -5
- package/src/dependency/parsers/index.ts +0 -13
- package/src/factory/rulesets/ruleset/rule/index.ts +0 -8
package/dist/scopes/index.js
DELETED
package/dist/scopes/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,IAAI;CACI,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
package/src/boundary/index.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import type * as Input from "./input/index.js";
|
2
|
-
import type * as Output from "./output/index.js";
|
3
|
-
|
4
|
-
type Output = Output.Config;
|
5
|
-
|
6
|
-
namespace Boundary {
|
7
|
-
export type Input = Input.Input;
|
8
|
-
export type Output = Output.Config;
|
9
|
-
}
|
10
|
-
|
11
|
-
export type {
|
12
|
-
Input,
|
13
|
-
Output,
|
14
|
-
Boundary as default,
|
15
|
-
};
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import type Plugins from "./plugins/index.js";
|
2
|
-
import type Parsers from "./parsers/index.js";
|
3
|
-
import type * as Files from "./files/index.js";
|
4
|
-
import type * as Rules from "./rules/index.js";
|
5
|
-
|
6
|
-
type Files = Files.Files;
|
7
|
-
type Rules = Rules.Rules;
|
8
|
-
|
9
|
-
interface Input {
|
10
|
-
files: Files;
|
11
|
-
rules: Rules;
|
12
|
-
plugins: Plugins;
|
13
|
-
parsers: Parsers;
|
14
|
-
}
|
15
|
-
|
16
|
-
export type {
|
17
|
-
Files,
|
18
|
-
Rules,
|
19
|
-
Plugins,
|
20
|
-
Parsers,
|
21
|
-
Input,
|
22
|
-
Input as default,
|
23
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type * as RuleObject from "./state/index.js";
|
2
|
-
|
3
|
-
type RuleObject = Readonly<Record<
|
4
|
-
string,
|
5
|
-
| RuleObject.RuleLevel
|
6
|
-
| readonly [RuleObject.RuleLevel, ...unknown[]]
|
7
|
-
>>;
|
8
|
-
|
9
|
-
export type {
|
10
|
-
RuleObject,
|
11
|
-
RuleObject as Object,
|
12
|
-
RuleObject as default,
|
13
|
-
};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { Scope } from "../../../../scopes/index.js";
|
2
|
-
import type * as RuleBase from "./entry/index.js";
|
3
|
-
|
4
|
-
type RuleBase = Readonly<Record<Scope, readonly RuleBase.RuleEntry[]>>;
|
5
|
-
|
6
|
-
export type {
|
7
|
-
RuleBase,
|
8
|
-
RuleBase as Base,
|
9
|
-
RuleBase as default,
|
10
|
-
};
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import type Language from "./language/index.js";
|
2
|
-
import type Linter from "./linter/index.js";
|
3
|
-
import type Plugins from "./plugins/index.js";
|
4
|
-
|
5
|
-
type IOption<
|
6
|
-
PluginId extends string,
|
7
|
-
IsEcma extends boolean,
|
8
|
-
ParserOptions extends boolean | object,
|
9
|
-
GlobalTypes extends string,
|
10
|
-
Processor extends object,
|
11
|
-
> =
|
12
|
-
& { linterOptions: Linter }
|
13
|
-
& { languageOptions: Language<IsEcma, ParserOptions, GlobalTypes> }
|
14
|
-
& (Plugins<PluginId> extends never ? object : { plugins: Plugins<PluginId> })
|
15
|
-
& (Interface<Processor> extends never ? object : Interface<Processor> extends { processor: string } ? Interface<Processor> : object)
|
16
|
-
;
|
17
|
-
|
18
|
-
export type {
|
19
|
-
Plugins,
|
20
|
-
Linter,
|
21
|
-
Language,
|
22
|
-
IOption,
|
23
|
-
IOption as default,
|
24
|
-
};
|
package/src/dependency/index.ts
DELETED