@eslinted/core 11.2.0 → 12.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/index.d.ts +1 -1
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/options/index.d.ts +1 -1
- package/dist/factory/options/index.d.ts.map +1 -1
- package/dist/factory/options/option/index.d.ts +2 -2
- package/dist/factory/options/option/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/input/global/ignores/defaults.d.ts +3 -0
- package/dist/interface/input/global/ignores/defaults.d.ts.map +1 -0
- package/dist/interface/input/global/ignores/defaults.js.map +1 -0
- package/dist/interface/input/global/ignores/extend.d.ts +5 -0
- package/dist/interface/input/global/ignores/extend.d.ts.map +1 -0
- package/dist/interface/input/global/ignores/extend.js +2 -0
- package/dist/interface/input/global/ignores/extend.js.map +1 -0
- package/dist/interface/input/global/ignores/index.d.ts +8 -0
- package/dist/interface/input/global/ignores/index.d.ts.map +1 -0
- package/dist/interface/input/global/ignores/index.js.map +1 -0
- package/dist/interface/input/global/index.d.ts +6 -0
- package/dist/interface/input/global/index.d.ts.map +1 -0
- package/dist/interface/input/global/index.js.map +1 -0
- package/dist/interface/input/imports/index.d.ts +1 -1
- package/dist/interface/input/imports/index.d.ts.map +1 -1
- package/dist/interface/input/index.d.ts +6 -4
- package/dist/interface/input/index.d.ts.map +1 -1
- package/dist/interface/input/scoped/files/defaults.d.ts.map +1 -0
- package/dist/interface/input/scoped/files/defaults.js.map +1 -0
- package/dist/interface/input/scoped/files/includes.d.ts.map +1 -0
- package/dist/interface/input/scoped/files/includes.js.map +1 -0
- package/dist/interface/input/scoped/files/index.d.ts.map +1 -0
- package/dist/interface/input/scoped/files/index.js.map +1 -0
- package/dist/interface/input/{user → scoped}/index.d.ts +1 -1
- package/dist/interface/input/scoped/index.d.ts.map +1 -0
- package/dist/interface/input/scoped/index.js.map +1 -0
- package/dist/interface/input/scoped/rules/defaults.d.ts.map +1 -0
- package/dist/interface/input/scoped/rules/defaults.js +2 -0
- package/dist/interface/input/scoped/rules/defaults.js.map +1 -0
- package/dist/interface/input/scoped/rules/index.d.ts.map +1 -0
- package/dist/interface/input/scoped/rules/index.js +2 -0
- package/dist/interface/input/scoped/rules/index.js.map +1 -0
- package/dist/interface/input/scoped/rules/overrides.d.ts.map +1 -0
- package/dist/interface/input/scoped/rules/overrides.js.map +1 -0
- package/dist/interface/input/settings/env.d.ts +3 -0
- package/dist/interface/input/settings/env.d.ts.map +1 -0
- package/dist/interface/input/settings/env.js +2 -0
- package/dist/interface/input/settings/env.js.map +1 -0
- package/dist/interface/input/settings/index.d.ts +6 -0
- package/dist/interface/input/settings/index.d.ts.map +1 -0
- package/dist/interface/input/settings/index.js +2 -0
- package/dist/interface/input/settings/index.js.map +1 -0
- package/dist/interface/output/globals.d.ts +6 -0
- package/dist/interface/output/globals.d.ts.map +1 -0
- package/dist/interface/output/globals.js +2 -0
- package/dist/interface/output/globals.js.map +1 -0
- package/dist/interface/output/index.d.ts +3 -3
- package/dist/interface/output/index.d.ts.map +1 -1
- package/dist/{interface/output/global → objects/config/globals}/ignores.d.ts +1 -1
- package/dist/objects/config/globals/ignores.d.ts.map +1 -0
- package/dist/objects/config/globals/ignores.js.map +1 -0
- package/dist/{interface/output/global → objects/config/globals}/system.d.ts +1 -1
- package/dist/objects/config/globals/system.d.ts.map +1 -0
- package/dist/objects/config/globals/system.js.map +1 -0
- package/dist/objects/config/index.d.ts +4 -14
- package/dist/objects/config/index.d.ts.map +1 -1
- package/dist/objects/config/scoped.d.ts +15 -0
- package/dist/objects/config/scoped.d.ts.map +1 -0
- package/dist/{interface/output → objects/config}/scoped.js.map +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/factory/index.ts +1 -1
- package/src/factory/options/index.ts +1 -1
- package/src/factory/options/option/index.ts +92 -91
- package/src/index.ts +19 -9
- package/src/interface/index.ts +11 -9
- package/src/interface/input/global/ignores/defaults.ts +6 -0
- package/src/interface/input/global/ignores/extend.ts +5 -0
- package/src/interface/input/global/ignores/index.ts +9 -0
- package/src/interface/input/global/index.ts +7 -0
- package/src/interface/input/imports/index.ts +1 -1
- package/src/interface/input/index.ts +12 -3
- package/src/interface/input/{user → scoped}/index.ts +1 -1
- package/src/interface/input/settings/env.ts +6 -0
- package/src/interface/input/settings/index.ts +7 -0
- package/src/interface/output/globals.ts +9 -0
- package/src/interface/output/index.ts +4 -5
- package/src/{interface/output/global → objects/config/globals}/ignores.ts +1 -1
- package/src/{interface/output/global → objects/config/globals}/system.ts +1 -1
- package/src/objects/config/index.ts +7 -15
- package/src/objects/config/scoped.ts +15 -0
- package/src/objects/index.ts +3 -2
- package/typings/common/utility/primitive/cast/number.d.ts +13 -3
- package/typings/common/utility/primitive/cast/number.spec.d.ts +57 -0
- package/dist/interface/input/user/files/defaults.d.ts.map +0 -1
- package/dist/interface/input/user/files/defaults.js.map +0 -1
- package/dist/interface/input/user/files/includes.d.ts.map +0 -1
- package/dist/interface/input/user/files/includes.js.map +0 -1
- package/dist/interface/input/user/files/index.d.ts.map +0 -1
- package/dist/interface/input/user/files/index.js.map +0 -1
- package/dist/interface/input/user/index.d.ts.map +0 -1
- package/dist/interface/input/user/index.js.map +0 -1
- package/dist/interface/input/user/rules/defaults.d.ts.map +0 -1
- package/dist/interface/input/user/rules/defaults.js.map +0 -1
- package/dist/interface/input/user/rules/index.d.ts.map +0 -1
- package/dist/interface/input/user/rules/index.js.map +0 -1
- package/dist/interface/input/user/rules/overrides.d.ts.map +0 -1
- package/dist/interface/input/user/rules/overrides.js.map +0 -1
- package/dist/interface/output/global/ignores.d.ts.map +0 -1
- package/dist/interface/output/global/ignores.js.map +0 -1
- package/dist/interface/output/global/index.d.ts +0 -8
- package/dist/interface/output/global/index.d.ts.map +0 -1
- package/dist/interface/output/global/index.js.map +0 -1
- package/dist/interface/output/global/system.d.ts.map +0 -1
- package/dist/interface/output/global/system.js.map +0 -1
- package/dist/interface/output/scoped.d.ts +0 -3
- package/dist/interface/output/scoped.d.ts.map +0 -1
- package/src/interface/output/global/index.ts +0 -12
- package/src/interface/output/scoped.ts +0 -3
- /package/dist/interface/input/{user/files → global/ignores}/defaults.js +0 -0
- /package/dist/interface/input/{user/files → global/ignores}/index.js +0 -0
- /package/dist/interface/input/{user → global}/index.js +0 -0
- /package/dist/interface/input/{user → scoped}/files/defaults.d.ts +0 -0
- /package/dist/interface/input/{user/rules → scoped/files}/defaults.js +0 -0
- /package/dist/interface/input/{user → scoped}/files/includes.d.ts +0 -0
- /package/dist/interface/input/{user → scoped}/files/includes.js +0 -0
- /package/dist/interface/input/{user → scoped}/files/index.d.ts +0 -0
- /package/dist/interface/input/{user/rules → scoped/files}/index.js +0 -0
- /package/dist/interface/{output/global → input/scoped}/index.js +0 -0
- /package/dist/interface/input/{user → scoped}/rules/defaults.d.ts +0 -0
- /package/dist/interface/input/{user → scoped}/rules/index.d.ts +0 -0
- /package/dist/interface/input/{user → scoped}/rules/overrides.d.ts +0 -0
- /package/dist/interface/input/{user → scoped}/rules/overrides.js +0 -0
- /package/dist/{interface/output/global → objects/config/globals}/ignores.js +0 -0
- /package/dist/{interface/output/global → objects/config/globals}/system.js +0 -0
- /package/dist/{interface/output → objects/config}/scoped.js +0 -0
- /package/src/interface/input/{user → scoped}/files/defaults.ts +0 -0
- /package/src/interface/input/{user → scoped}/files/includes.ts +0 -0
- /package/src/interface/input/{user → scoped}/files/index.ts +0 -0
- /package/src/interface/input/{user → scoped}/rules/defaults.ts +0 -0
- /package/src/interface/input/{user → scoped}/rules/index.ts +0 -0
- /package/src/interface/input/{user → scoped}/rules/overrides.ts +0 -0
package/dist/factory/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export type { Scope, Input,
|
1
|
+
export type { Scope, Input, ScopedConfig, RuleEntry, RuleRecord, } from "../index.js";
|
2
2
|
import { Files } from "./files.js";
|
3
3
|
import { Rulesets } from "./rulesets/index.js";
|
4
4
|
import Options from "./options/index.js";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,KAAK,EACL,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,qBAAa,OAAO;IAClB,SAAgB,KAAK,EAAE,KAAK,CAAC;IAC7B,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,KAAK,EAAE,qBAAqB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7C,KAAK,EAAE,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IAM3C,OAAO,CAAC,KAAK,EAAE,MAAM;CAM7B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,YAAY,GACb,MAAM,IAAI,CAAC;AAEZ,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;AAExB,wBASW"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Scope,
|
1
|
+
import type { Scope, ScopedConfig } from "../index.js";
|
2
2
|
import type { LanguageOptions, Globals } from "./template/index.js";
|
3
3
|
import type { Ruleset } from "../../rulesets/ruleset.js";
|
4
4
|
export default abstract class Option<S extends Scope, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, Global extends Globals = never, Processor extends object = never, Language extends object = never> {
|
@@ -9,7 +9,7 @@ export default abstract class Option<S extends Scope, ParserOptions extends obje
|
|
9
9
|
abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
|
10
10
|
abstract readonly language: Interface<Language> extends never ? object : Interface<Language> extends Readonly<Record<"language", string>> ? Interface<Language> : object;
|
11
11
|
constructor(parser: Tuple<ParserCount, unknown>, files: string[], ruleset: Ruleset);
|
12
|
-
get configs():
|
12
|
+
get configs(): ScopedConfig[];
|
13
13
|
private get option();
|
14
14
|
protected abstract get languageOptions(): LanguageOptions<ParserOptions, Global>;
|
15
15
|
protected globals(type: Global): {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,KAAK,EACL,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,KAAK,EACL,YAAY,EACb,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAEV,eAAe,EACf,OAAO,EACR,MAAM,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/index.js";
|
2
|
-
export type { Plugins, RuleEntry, RuleRecord, RuleState,
|
2
|
+
export type { Plugins, RuleEntry, RuleRecord, RuleState, ScopedConfig, GlobalConfigIgnores, GlobalConfigSystem, } from "./objects/index.js";
|
3
3
|
import type { Input, Output } from "./interface/index.js";
|
4
4
|
export type { Input, Output, };
|
5
5
|
export default function (input: Input): Output;
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,KAAK,EACL,MAAM,GACP,CAAC;AAQF,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAiF7C"}
|
package/dist/index.js
CHANGED
@@ -2,7 +2,7 @@ import { scopes } from "./scopes/index.js";
|
|
2
2
|
import { Factory, Options, } from "./factory/index.js";
|
3
3
|
export default function (input) {
|
4
4
|
try {
|
5
|
-
const { plugins, parsers, files, rules, } = input, factory = new Factory(files, rules), options = {
|
5
|
+
const { plugins, parsers, settings, ignores, files, rules, } = input, factory = new Factory(files, rules), options = {
|
6
6
|
js: new Options
|
7
7
|
.js([], ...factory.produce("js")).configs,
|
8
8
|
ts: new Options
|
@@ -22,18 +22,25 @@ export default function (input) {
|
|
22
22
|
};
|
23
23
|
return [
|
24
24
|
{
|
25
|
-
ignores:
|
25
|
+
ignores: typeof ignores.extend.ignores === "undefined" || ignores.extend.ignores.length < 1
|
26
|
+
? ignores.ignores.ignores
|
27
|
+
: [
|
28
|
+
...ignores.extend.inherit === false
|
29
|
+
? []
|
30
|
+
: ignores.ignores.ignores,
|
31
|
+
...ignores.extend.ignores,
|
32
|
+
],
|
26
33
|
},
|
27
34
|
{
|
28
35
|
name: "linted",
|
29
36
|
plugins,
|
30
37
|
linterOptions: {
|
31
|
-
noInlineConfig:
|
32
|
-
reportUnusedDisableDirectives:
|
38
|
+
noInlineConfig: settings.noInlineConfig,
|
39
|
+
reportUnusedDisableDirectives: settings.reportUnusedDisableDirectives,
|
33
40
|
},
|
34
41
|
languageOptions: {
|
35
|
-
sourceType:
|
36
|
-
ecmaVersion:
|
42
|
+
sourceType: settings.sourceType,
|
43
|
+
ecmaVersion: settings.ecmaVersion,
|
37
44
|
},
|
38
45
|
},
|
39
46
|
...scopes.flatMap(scope => options[scope]),
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,OAAO,EACP,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,KAAY;IACnC,IAAI,CAAC;QACH,MAAM,EACJ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,GACN,GAAG,KAAK,EACT,OAAO,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,EACnC,OAAO,GAAiF;YACtF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,EACF,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAA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C,OAAO,CAAC,OAAO;oBACzB,CAAC,CAAC;wBACE,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,KAAK;4BACjC,CAAC,CAAC,EAAE;4BACJ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO;wBAC3B,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO;qBAC1B;aACN;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,OAAO;gBACP,aAAa,EAAE;oBACb,cAAc,EAAE,QAAQ,CAAC,cAAc;oBACvC,6BAA6B,EAAE,QAAQ,CAAC,6BAA6B;iBACtE;gBACD,eAAe,EAAE;oBACf,UAAU,EAAE,QAAQ,CAAC,UAAU;oBAC/B,WAAW,EAAE,QAAQ,CAAC,WAAW;iBAClC;aACF;YACD,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SAC3C,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export type { Scope, Plugins, RuleEntry, RuleRecord,
|
1
|
+
export type { Scope, Plugins, RuleEntry, RuleRecord, ScopedConfig, GlobalConfigIgnores, GlobalConfigSystem, } from "../index.js";
|
2
2
|
export type { Input } from "./input/index.js";
|
3
3
|
export type { Output } from "./output/index.js";
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/global/ignores/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,GAAG,CAAC;AAE7C,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,mBAAmB,EACnB,SAAS,CACV,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../../src/interface/input/global/ignores/defaults.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extend.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/global/ignores/extend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../../../src/interface/input/global/ignores/extend.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export type { GlobalConfigIgnores } from "../index.js";
|
2
|
+
import type { GlobalIgnoreDefaults } from "./defaults.js";
|
3
|
+
import type { GlobalIgnoreExtend } from "./extend.js";
|
4
|
+
export interface InputGlobalIgnores {
|
5
|
+
ignores: GlobalIgnoreDefaults;
|
6
|
+
extend: GlobalIgnoreExtend;
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/global/ignores/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,IAAI,CAAC;AAE9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/input/global/ignores/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/global/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,IAAI,CAAC;AAE9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,kBAAkB,CAAC;CAC7B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/input/global/index.ts"],"names":[],"mappings":""}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export type { Scope, Plugins, } from "../index.js";
|
2
2
|
import type { InputPlugins } from "./plugins.js";
|
3
3
|
import type { InputParsers } from "./parsers/index.js";
|
4
|
-
export interface
|
4
|
+
export interface InputImports {
|
5
5
|
plugins: InputPlugins;
|
6
6
|
parsers: InputParsers;
|
7
7
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/imports/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,GACR,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,WAAW,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/imports/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,GACR,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,YAAY,CAAC;CACvB"}
|
@@ -1,5 +1,7 @@
|
|
1
|
-
export type { Scope, Plugins, RuleEntry, RuleRecord, } from "../index.js";
|
2
|
-
import type {
|
3
|
-
import type {
|
4
|
-
|
1
|
+
export type { Scope, Plugins, RuleEntry, RuleRecord, GlobalConfigSystem, GlobalConfigIgnores, } from "../index.js";
|
2
|
+
import type { InputImports } from "./imports/index.js";
|
3
|
+
import type { InputSettings } from "./settings/index.js";
|
4
|
+
import type { InputGlobal } from "./global/index.js";
|
5
|
+
import type { InputScoped } from "./scoped/index.js";
|
6
|
+
export type Input = (InputImports & InputSettings & InputGlobal & InputScoped);
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,KAAK,GAAG,CAChB,YAAY,GACZ,aAAa,GACb,WAAW,GACX,WAAW,CACd,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/files/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,KAAK,EACL,MAAM,EAAE,CACT,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/files/defaults.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"includes.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/files/includes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,aAAa,CACd,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"includes.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/files/includes.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/files/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/files/index.ts"],"names":[],"mappings":""}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export type { Scope, RuleEntry, RuleRecord, } from "../index.js";
|
2
2
|
import type { InputFiles } from "./files/index.js";
|
3
3
|
import type { InputRules } from "./rules/index.js";
|
4
|
-
export interface
|
4
|
+
export interface InputScoped {
|
5
5
|
files: InputFiles;
|
6
6
|
rules: InputRules;
|
7
7
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/scoped/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACnB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/input/scoped/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EACV,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,KAAK,EACL,SAAS,EAAE,CACZ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/defaults.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,cAAc,CAAC;CAC3B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG,SAAS,CACpC,MAAM,aAAa,EACnB,UAAU,CACX,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/overrides.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/settings/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACnC,kBAAkB,CAAC,eAAe,CAAC,GACnC,kBAAkB,CAAC,iBAAiB,CAAC,CACxC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../../src/interface/input/settings/env.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/settings/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,gBAAgB,CAAC;CAC5B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/input/settings/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/interface/output/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,mBAAmB;IACnB,kBAAkB;CACnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../src/interface/output/globals.ts"],"names":[],"mappings":""}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export type {
|
2
|
-
import type { GlobalConfigs } from "./
|
3
|
-
import type { ScopedConfig } from "
|
1
|
+
export type { GlobalConfigIgnores, GlobalConfigSystem, } from "../index.js";
|
2
|
+
import type { GlobalConfigs } from "./globals.js";
|
3
|
+
import type { ScopedConfig } from "../index.js";
|
4
4
|
export type Output = [
|
5
5
|
...GlobalConfigs,
|
6
6
|
...ScopedConfig[]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,aAAa;IAChB,GAAG,YAAY,EAAE;CAClB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/globals/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAC9C,OAAO,CACL,cAAc,EACd,SAAS,CACV,EACD,KAAK,CACN,CAAC,GAAG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/objects/config/globals/ignores.ts"],"names":[],"mappings":""}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Plugins, ConfigProperty } from "
|
1
|
+
import type { Plugins, ConfigProperty } from "../index.js";
|
2
2
|
export type GlobalConfigSystem = Partial<Record<Exclude<ConfigProperty, "name" | "plugins" | "linterOptions" | "languageOptions">, never>> & {
|
3
3
|
name: `linted`;
|
4
4
|
plugins: Plugins;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/globals/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAC7C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,GACT,eAAe,GACf,iBAAiB,CACpB,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KAAK,CACZ,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CACL,EAAE,CAAC,CAAC;KACR,CAAC;CACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/objects/config/globals/system.ts"],"names":[],"mappings":""}
|
@@ -1,16 +1,6 @@
|
|
1
|
-
|
2
|
-
export interface Config {
|
3
|
-
name: `linted/${string}`;
|
4
|
-
rules: RuleRecord;
|
5
|
-
files: string[];
|
6
|
-
ignores: string[];
|
7
|
-
languageOptions: {
|
8
|
-
parser?: unknown;
|
9
|
-
parserOptions?: Table;
|
10
|
-
globals?: Table<true>;
|
11
|
-
};
|
12
|
-
processor?: string;
|
13
|
-
language?: string;
|
14
|
-
}
|
1
|
+
export type { Plugins, RuleRecord, } from "../index.js";
|
15
2
|
export type { ConfigProperty } from "./property.js";
|
3
|
+
export type { ScopedConfig } from "./scoped.js";
|
4
|
+
export type { GlobalConfigIgnores } from "./globals/ignores.js";
|
5
|
+
export type { GlobalConfigSystem } from "./globals/system.js";
|
16
6
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { RuleRecord } from "./index.js";
|
2
|
+
export interface ScopedConfig {
|
3
|
+
name: `linted/${string}`;
|
4
|
+
rules: RuleRecord;
|
5
|
+
files: string[];
|
6
|
+
ignores: string[];
|
7
|
+
languageOptions: {
|
8
|
+
parser?: unknown;
|
9
|
+
parserOptions?: Table;
|
10
|
+
globals?: Table<true>;
|
11
|
+
};
|
12
|
+
processor?: string;
|
13
|
+
language?: string;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=scoped.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../src/objects/config/scoped.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAEpC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,KAAK,CAAC;QACtB,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;KACvB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scoped.js","sourceRoot":"","sources":["../../../src/
|
1
|
+
{"version":3,"file":"scoped.js","sourceRoot":"","sources":["../../../src/objects/config/scoped.ts"],"names":[],"mappings":""}
|
package/dist/objects/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
export type { Plugins } from "./plugins/index.js";
|
2
2
|
export type { RuleEntry, RuleRecord, RuleState, } from "./rule/index.js";
|
3
|
-
export type {
|
3
|
+
export type { ScopedConfig, GlobalConfigIgnores, GlobalConfigSystem, } from "./config/index.js";
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACV,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACV,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
|
package/package.json
CHANGED
package/src/factory/index.ts
CHANGED