@eslinted/core 12.0.1 → 13.0.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/global.d.ts +1 -1
- package/dist/factory/options/html.d.ts +1 -1
- package/dist/factory/options/html.d.ts.map +1 -1
- package/dist/factory/options/html.js.map +1 -1
- package/dist/factory/options/json.d.ts +1 -1
- package/dist/factory/options/json.d.ts.map +1 -1
- package/dist/factory/options/json.js.map +1 -1
- package/dist/factory/options/jsonc.d.ts +1 -1
- package/dist/factory/options/jsonc.d.ts.map +1 -1
- package/dist/factory/options/jsonc.js.map +1 -1
- package/dist/factory/options/option/index.d.ts +40 -2978
- package/dist/factory/options/option/index.d.ts.map +1 -1
- package/dist/factory/options/option/index.js.map +1 -1
- package/dist/factory/options/option/template/index.d.ts +10 -6
- package/dist/factory/options/option/template/index.d.ts.map +1 -1
- package/dist/factory/options/option/template/languageOptions.d.ts +6 -5
- package/dist/factory/options/option/template/languageOptions.d.ts.map +1 -1
- package/dist/factory/options/svelte.d.ts +1 -1
- package/dist/objects/config/global/system.d.ts +1 -1
- package/dist/objects/config/global/system.d.ts.map +1 -1
- package/dist/objects/config/scoped.d.ts +1 -5
- package/dist/objects/config/scoped.d.ts.map +1 -1
- package/dist/objects/rule/record/index.d.ts +1 -1
- package/dist/objects/rule/record/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/factory/options/html.ts +1 -2
- package/src/factory/options/json.ts +1 -2
- package/src/factory/options/jsonc.ts +1 -2
- package/src/factory/options/option/index.ts +19 -16
- package/src/factory/options/option/template/index.ts +22 -7
- package/src/factory/options/option/template/languageOptions.ts +18 -13
- package/src/factory/options/svelte.ts +1 -1
- package/src/objects/config/global/system.ts +11 -12
- package/src/objects/config/scoped.ts +1 -5
- package/src/objects/rule/record/index.ts +2 -1
- package/typings/common/literals/chars/alpha.d.ts +0 -4
- package/typings/common/literals/chars/digit.d.ts +0 -12
- package/typings/common/literals/chars/digits/base64.d.ts +0 -13
- package/typings/common/literals/chars/digits/hexchar.d.ts +0 -9
- package/typings/common/literals/chars/lower.d.ts +0 -1
- package/typings/common/literals/chars/upper.d.ts +0 -28
- package/typings/common/literals/numbers/base32.d.ts +0 -19
- package/typings/common/literals/numbers/base64.d.ts +0 -35
- package/typings/common/literals/numbers/binary.d.ts +0 -4
- package/typings/common/literals/numbers/decimal.d.ts +0 -5
- package/typings/common/literals/numbers/hexadecimal.d.ts +0 -10
- package/typings/common/literals/numbers/octal.d.ts +0 -7
- package/typings/common/literals/numbers/quatral.d.ts +0 -4
- package/typings/common/literals/numbers/ternary.d.ts +0 -4
- package/typings/common/primitive.d.ts +0 -5
- package/typings/common/tester.d.ts +0 -8
- package/typings/common/utility/constructor.d.ts +0 -3
- package/typings/common/utility/interface/identity.d.ts +0 -11
- package/typings/common/utility/interface/identity.spec.d.ts +0 -63
- package/typings/common/utility/interface/index.d.ts +0 -5
- package/typings/common/utility/interface/keys.d.ts +0 -3
- package/typings/common/utility/interface/keys.spec.d.ts +0 -67
- package/typings/common/utility/interface/optional.d.ts +0 -7
- package/typings/common/utility/interface/optional.spec.d.ts +0 -34
- package/typings/common/utility/interface/partially.d.ts +0 -1
- package/typings/common/utility/interface/property/index.d.ts +0 -8
- package/typings/common/utility/interface/property/properties.d.ts +0 -6
- package/typings/common/utility/interface/table/index.d.ts +0 -3
- package/typings/common/utility/interface/table/tables.d.ts +0 -5
- package/typings/common/utility/iterable/arrayful.d.ts +0 -1
- package/typings/common/utility/iterable/flat/index.d.ts +0 -3
- package/typings/common/utility/iterable/flat/unflat.d.ts +0 -3
- package/typings/common/utility/iterable/identity.d.ts +0 -1
- package/typings/common/utility/iterable/identity.spec.d.ts +0 -59
- package/typings/common/utility/iterable/index.d.ts +0 -15
- package/typings/common/utility/iterable/index.spec.d.ts +0 -18
- package/typings/common/utility/iterable/tuple.d.ts +0 -11
- package/typings/common/utility/iterable/tuple.spec.d.ts +0 -14
- package/typings/common/utility/iterable/tuples.d.ts +0 -10
- package/typings/common/utility/null/index.d.ts +0 -1
- package/typings/common/utility/null/index.spec.d.ts +0 -13
- package/typings/common/utility/null/nullable.d.ts +0 -1
- package/typings/common/utility/null/nullable.spec.d.ts +0 -13
- package/typings/common/utility/primitive/cast/number.d.ts +0 -13
- package/typings/common/utility/primitive/cast/number.spec.d.ts +0 -57
- package/typings/common/utility/primitive/index.d.ts +0 -11
- package/typings/common/utility/primitive/index.spec.d.ts +0 -27
- package/typings/common/utility/primitive/length.d.ts +0 -5
- package/typings/common/utility/primitive/length.spec.d.ts +0 -26
- package/typings/common/utility/primitive/literal.d.ts +0 -1
- package/typings/common/utility/primitive/literal.spec.d.ts +0 -17
- package/typings/common/utility/primitive/literalful.d.ts +0 -3
- package/typings/common/utility/primitive/literalful.spec.d.ts +0 -20
- package/typings/common/utility/primitive/numeric.d.ts +0 -1
- package/typings/common/utility/primitive/numeric.spec.d.ts +0 -30
- package/typings/common/utility/primitive/truth.d.ts +0 -3
- package/typings/common/utility/primitive/truth.spec.d.ts +0 -22
- package/typings/common/validated/char.d.ts +0 -1
- package/typings/common/validated/index.d.ts +0 -2
- package/typings/common/validated/numberful.d.ts +0 -1
- package/typings/common/validated/properties/finite.d.ts +0 -2
- package/typings/common/validated/properties/int.d.ts +0 -2
- package/typings/common/validated/properties/length.d.ts +0 -3
- package/typings/common/validated/properties/polarity.d.ts +0 -5
- package/typings/common/validated/stringful.d.ts +0 -1
@@ -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,YAAY,EACb,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAEV,eAAe,EACf,OAAO,EACR,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,aAAa,SACX,MAAM,GACN,OAAO,GAAG,KAAK,EACjB,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,
|
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,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,aAAa,SACX,MAAM,GACN,OAAO,GAAG,KAAK,EACjB,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,aAAa,SAAS,KAAK,GAAG,CAAC,GAAG,CAAC,EACnE,MAAM,SAAS,OAAO,GAAG,KAAK,GAAG,KAAK,EACtC,SAAS,SAAS,MAAM,GAAG,MAAM,EACjC,QAAQ,SAAS,MAAM,GAAG,MAAM;aAkBd,MAAM,EAAE,OAAO,EAAE,GAAG;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE;aAC3C,KAAK,EAAE,MAAM,EAAE;aACf,OAAO,EAAE,MAAM,EAAE;aACjB,OAAO,EAAE,OAAO;IAnBlC,kBAAyB,KAAK,EAAE,CAAC,CAAC;IAClC,kBAAyB,SAAS,EAAE,CAAC,SAAS,SAAS,KAAK,GACxD,MAAM,GACN,SAAS,SAAS;QAAE,SAAS,EAAE,MAAM,CAAC,CAAA;KAAE,GACtC,MAAM,SAAS,CAAC,GACd,MAAM,GACN;QAAE,SAAS,EAAE,CAAC,CAAA;KAAE,GAClB,MAAM,CAAC,CAAC;IACd,kBAAyB,QAAQ,EAAE,CAAC,QAAQ,SAAS,KAAK,GACtD,MAAM,GACN,QAAQ,SAAS;QAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;KAAE,GACpC,MAAM,SAAS,CAAC,GACd,MAAM,GACN;QAAE,QAAQ,EAAE,CAAC,CAAA;KAAE,GACjB,MAAM,CAAC,CAAC;gBAEI,MAAM,EAAE,OAAO,EAAE,GAAG;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,EAC3C,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,OAAO;IAGlC,IAAW,OAAO,IAAI,YAAY,EAAE,CAuBnC;IAED,OAAO,KAAK,MAAM,GAoBjB;IAED,SAAS,CAAC,QAAQ,KAAK,eAAe,IAAI,eAAe,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAEjF,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;CAGhC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAY9B,MAAM,CAAC,OAAO,OAAgB,MAAM;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAY9B,MAAM,CAAC,OAAO,OAAgB,MAAM;IA0BhB;IACA;IACA;IACA;IAJlB,YACkB,MAA2C,EAC3C,KAAe,EACf,OAAiB,EACjB,OAAgB;QAHhB,WAAM,GAAN,MAAM,CAAqC;QAC3C,UAAK,GAAL,KAAK,CAAU;QACf,YAAO,GAAP,OAAO,CAAU;QACjB,YAAO,GAAP,OAAO,CAAS;IAC/B,CAAC;IAEJ,IAAW,OAAO;QAChB,MAAM,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,MAAM,GACP,GAAG,IAAI,CAAC;QAET,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK;YACzB,MAAM,IAAI,SAAS,CAAC,2CAA2C,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEzH,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;gBACtC,OAAO;oBACL,IAAI,EAAE,UAAU,EAAE,EAAE;oBACpB,KAAK;oBACL,OAAO;oBACP,KAAK;oBACL,GAAG,MAAM;iBACV,CAAC;YACJ,CAAC,CAAC,CAAC;IACP,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,eAAe,EACf,SAAS,EACT,QAAQ,GACT,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,eAAe;gBACf,GAAG,SAAS;gBACZ,GAAG,QAAQ;aAMZ,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,+BAA+B,IAAI,CAAC,KAAK,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACnG,CAAC;IAIS,OAAO,CAAC,IAAa;QAC7B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
@@ -1,11 +1,15 @@
|
|
1
1
|
import type { LanguageOptions } from "./languageOptions.js";
|
2
2
|
import type { Globals } from "./globals.js";
|
3
3
|
export type { LanguageOptions, Globals, };
|
4
|
-
export type OptionTemplate<ParserOptions extends boolean | object, GlobalTypes extends Globals, Processor extends object, Language extends object> = {
|
4
|
+
export type OptionTemplate<ParserOptions extends boolean | object, GlobalTypes extends Globals | false, Processor extends object, Language extends object> = ({
|
5
5
|
languageOptions: LanguageOptions<ParserOptions, GlobalTypes>;
|
6
|
-
} & (
|
7
|
-
processor:
|
8
|
-
} ?
|
9
|
-
|
10
|
-
}
|
6
|
+
} & (Processor extends never ? object : Processor extends {
|
7
|
+
processor: infer P;
|
8
|
+
} ? string extends P ? object : {
|
9
|
+
processor: P;
|
10
|
+
} : object) & (Language extends never ? object : Language extends {
|
11
|
+
language: infer L;
|
12
|
+
} ? string extends L ? object : {
|
13
|
+
language: L;
|
14
|
+
} : object));
|
11
15
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,YAAY,EACV,eAAe,EACf,OAAO,GACR,CAAC;AACF,MAAM,MAAM,cAAc,CACxB,aAAa,SACX,OAAO,GACP,MAAM,EACR,WAAW,SAAS,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,YAAY,EACV,eAAe,EACf,OAAO,GACR,CAAC;AACF,MAAM,MAAM,cAAc,CACxB,aAAa,SACX,OAAO,GACP,MAAM,EACR,WAAW,SAAS,OAAO,GAAG,KAAK,EACnC,SAAS,SAAS,MAAM,EACxB,QAAQ,SAAS,MAAM,IACrB,CACJ;IAAE,eAAe,EAAE,eAAe,CAAC,aAAa,EAAE,WAAW,CAAC,CAAA;CAAE,GAC9D,CACE,SAAS,SAAS,KAAK,GACnB,MAAM,GACN,SAAS,SAAS;IAAE,SAAS,EAAE,MAAM,CAAC,CAAA;CAAE,GACtC,MAAM,SAAS,CAAC,GACd,MAAM,GACN;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE,GAClB,MAAM,CACX,GACC,CACF,QAAQ,SAAS,KAAK,GAClB,MAAM,GACN,QAAQ,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;CAAE,GACpC,MAAM,SAAS,CAAC,GACd,MAAM,GACN;IAAE,QAAQ,EAAE,CAAC,CAAA;CAAE,GACjB,MAAM,CACX,CACJ,CAAC"}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
1
|
+
import type { Globals } from "./globals.js";
|
2
|
+
export type LanguageOptions<ParserOptions extends object | boolean, GlobalTypes extends Globals | false> = (GlobalTypes extends never ? object : GlobalTypes extends false ? object : {
|
2
3
|
globals: Record<string, unknown>;
|
3
|
-
}) & (ParserOptions extends
|
4
|
+
}) & (ParserOptions extends never ? object : ParserOptions extends boolean ? ParserOptions extends true ? {
|
4
5
|
parser: unknown;
|
5
|
-
} :
|
6
|
+
} : object : {
|
6
7
|
parser: unknown;
|
7
8
|
parserOptions: ParserOptions;
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=languageOptions.d.ts.map
|
9
|
+
});
|
10
|
+
//# sourceMappingURL=languageOptions.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"languageOptions.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/languageOptions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CACzB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,
|
1
|
+
{"version":3,"file":"languageOptions.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/languageOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,eAAe,CACzB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,OAAO,GAAG,KAAK,IAElC,CAAC,WAAW,SAAS,KAAK,GACxB,MAAM,GACN,WAAW,SAAS,KAAK,GACvB,MAAM,GACN;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAC1C,GACC,CACE,aAAa,SAAS,KAAK,GACvB,MAAM,GACN,aAAa,SAAS,OAAO,GAC3B,aAAa,SAAS,IAAI,GACxB;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB,MAAM,GACR;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,CACzD,CAAC"}
|
@@ -5,7 +5,7 @@ export default class Svelte extends Option<"svelte", {
|
|
5
5
|
extraFileExtensions: readonly [
|
6
6
|
".svelte"
|
7
7
|
];
|
8
|
-
} & Ts["option"]["languageOptions"]["parserOptions"], 2,
|
8
|
+
} & Ts["option"]["languageOptions"]["parserOptions"], 2, false, {
|
9
9
|
processor: "svelte/svelte";
|
10
10
|
}> {
|
11
11
|
readonly scope = "svelte";
|
@@ -8,7 +8,7 @@ export type GlobalConfigSystem = Partial<Record<Exclude<ConfigProperty, "name" |
|
|
8
8
|
};
|
9
9
|
languageOptions: {
|
10
10
|
sourceType?: "module" | "script";
|
11
|
-
ecmaVersion?: "latest" | 3 | 5 |
|
11
|
+
ecmaVersion?: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
|
12
12
|
};
|
13
13
|
};
|
14
14
|
//# sourceMappingURL=system.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/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,wBAAwB,CAAC;IAC/B,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,
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/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,wBAAwB,CAAC;IAC/B,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,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP;KACF,CAAC;CACH,CAAC"}
|
@@ -4,11 +4,7 @@ export interface ScopedConfig {
|
|
4
4
|
rules: RuleRecord;
|
5
5
|
files: string[];
|
6
6
|
ignores: string[];
|
7
|
-
languageOptions:
|
8
|
-
parser?: unknown;
|
9
|
-
parserOptions?: Table;
|
10
|
-
globals?: Table<true>;
|
11
|
-
};
|
7
|
+
languageOptions: object;
|
12
8
|
processor?: string;
|
13
9
|
language?: string;
|
14
10
|
}
|
@@ -1 +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
|
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,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/objects/rule/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,MAAM,MAAM,UAAU,GAAG,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/objects/rule/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,MAAM,MAAM,UAAU,GAAG,MAAM,CAC7B,MAAM,EACJ,SAAS,GACT,SAAS,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CACrC,CAAC"}
|
package/package.json
CHANGED
@@ -15,25 +15,28 @@ export default abstract class Option<
|
|
15
15
|
ParserOptions extends
|
16
16
|
| object
|
17
17
|
| boolean = false,
|
18
|
-
ParserCount extends 0 | 1 | 2 = 0,
|
19
|
-
Global extends Globals =
|
20
|
-
Processor extends object =
|
21
|
-
Language extends object =
|
18
|
+
ParserCount extends 0 | 1 | 2 = ParserOptions extends false ? 0 : 1,
|
19
|
+
Global extends Globals | false = false,
|
20
|
+
Processor extends object = object,
|
21
|
+
Language extends object = object,
|
22
22
|
> {
|
23
|
-
public abstract readonly scope:
|
24
|
-
public abstract readonly processor:
|
23
|
+
public abstract readonly scope: S;
|
24
|
+
public abstract readonly processor: (Processor extends never
|
25
25
|
? object
|
26
|
-
:
|
27
|
-
?
|
28
|
-
|
29
|
-
|
26
|
+
: Processor extends { processor: infer P }
|
27
|
+
? string extends P
|
28
|
+
? object
|
29
|
+
: { processor: P }
|
30
|
+
: object);
|
31
|
+
public abstract readonly language: (Language extends never
|
30
32
|
? object
|
31
|
-
:
|
32
|
-
?
|
33
|
-
|
34
|
-
|
33
|
+
: Language extends { language: infer L }
|
34
|
+
? string extends L
|
35
|
+
? object
|
36
|
+
: { language: L }
|
37
|
+
: object);
|
35
38
|
constructor(
|
36
|
-
public readonly parser:
|
39
|
+
public readonly parser: unknown[] & { length: ParserCount },
|
37
40
|
public readonly files: string[],
|
38
41
|
public readonly ignores: string[],
|
39
42
|
public readonly ruleset: Ruleset,
|
@@ -88,7 +91,7 @@ export default abstract class Option<
|
|
88
91
|
|
89
92
|
protected abstract get languageOptions(): LanguageOptions<ParserOptions, Global>;
|
90
93
|
|
91
|
-
protected globals(type:
|
94
|
+
protected globals(type: Globals) {
|
92
95
|
return globals[type];
|
93
96
|
}
|
94
97
|
}
|
@@ -9,12 +9,27 @@ export type OptionTemplate<
|
|
9
9
|
ParserOptions extends
|
10
10
|
| boolean
|
11
11
|
| object,
|
12
|
-
GlobalTypes extends Globals,
|
12
|
+
GlobalTypes extends Globals | false,
|
13
13
|
Processor extends object,
|
14
14
|
Language extends object,
|
15
|
-
> =
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
> = (
|
16
|
+
{ languageOptions: LanguageOptions<ParserOptions, GlobalTypes> }
|
17
|
+
& (
|
18
|
+
Processor extends never
|
19
|
+
? object
|
20
|
+
: Processor extends { processor: infer P }
|
21
|
+
? string extends P
|
22
|
+
? object
|
23
|
+
: { processor: P }
|
24
|
+
: object
|
25
|
+
)
|
26
|
+
& (
|
27
|
+
Language extends never
|
28
|
+
? object
|
29
|
+
: Language extends { language: infer L }
|
30
|
+
? string extends L
|
31
|
+
? object
|
32
|
+
: { language: L }
|
33
|
+
: object
|
34
|
+
)
|
35
|
+
);
|
@@ -1,16 +1,21 @@
|
|
1
|
+
import type { Globals } from "./globals";
|
2
|
+
|
1
3
|
export type LanguageOptions<
|
2
4
|
ParserOptions extends object | boolean,
|
3
|
-
GlobalTypes extends
|
5
|
+
GlobalTypes extends Globals | false,
|
4
6
|
> =
|
5
|
-
& (
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
& (GlobalTypes extends never
|
8
|
+
? object
|
9
|
+
: GlobalTypes extends false
|
10
|
+
? object
|
11
|
+
: { globals: Record<string, unknown> }
|
12
|
+
)
|
13
|
+
& (
|
14
|
+
ParserOptions extends never
|
15
|
+
? object
|
16
|
+
: ParserOptions extends boolean
|
17
|
+
? ParserOptions extends true
|
18
|
+
? { parser: unknown }
|
19
|
+
: object
|
20
|
+
: { parser: unknown; parserOptions: ParserOptions }
|
21
|
+
);
|
@@ -32,17 +32,16 @@ export type GlobalConfigSystem = Partial<Record<
|
|
32
32
|
| "latest"
|
33
33
|
| 3
|
34
34
|
| 5
|
35
|
-
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
)}`>;
|
35
|
+
| 2015
|
36
|
+
| 2016
|
37
|
+
| 2017
|
38
|
+
| 2018
|
39
|
+
| 2019
|
40
|
+
| 2020
|
41
|
+
| 2021
|
42
|
+
| 2022
|
43
|
+
| 2023
|
44
|
+
| 2024
|
45
|
+
;
|
47
46
|
};
|
48
47
|
};
|
@@ -5,11 +5,7 @@ export interface ScopedConfig {
|
|
5
5
|
rules: RuleRecord;
|
6
6
|
files: string[];
|
7
7
|
ignores: string[];
|
8
|
-
languageOptions:
|
9
|
-
parser?: unknown;
|
10
|
-
parserOptions?: Table;
|
11
|
-
globals?: Table<true>;
|
12
|
-
};
|
8
|
+
languageOptions: object;
|
13
9
|
processor?: string;
|
14
10
|
language?: string;
|
15
11
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type lower = Lowercase<upper>;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
declare type upper =
|
2
|
-
| "A"
|
3
|
-
| "B"
|
4
|
-
| "C"
|
5
|
-
| "D"
|
6
|
-
| "E"
|
7
|
-
| "F"
|
8
|
-
| "G"
|
9
|
-
| "H"
|
10
|
-
| "I"
|
11
|
-
| "J"
|
12
|
-
| "K"
|
13
|
-
| "L"
|
14
|
-
| "M"
|
15
|
-
| "N"
|
16
|
-
| "O"
|
17
|
-
| "P"
|
18
|
-
| "Q"
|
19
|
-
| "R"
|
20
|
-
| "S"
|
21
|
-
| "T"
|
22
|
-
| "U"
|
23
|
-
| "V"
|
24
|
-
| "W"
|
25
|
-
| "X"
|
26
|
-
| "Y"
|
27
|
-
| "Z"
|
28
|
-
;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
declare type base64 =
|
2
|
-
| base32
|
3
|
-
| 32
|
4
|
-
| 33
|
5
|
-
| 34
|
6
|
-
| 35
|
7
|
-
| 36
|
8
|
-
| 37
|
9
|
-
| 38
|
10
|
-
| 39
|
11
|
-
| 40
|
12
|
-
| 41
|
13
|
-
| 42
|
14
|
-
| 43
|
15
|
-
| 44
|
16
|
-
| 45
|
17
|
-
| 46
|
18
|
-
| 47
|
19
|
-
| 48
|
20
|
-
| 49
|
21
|
-
| 50
|
22
|
-
| 51
|
23
|
-
| 52
|
24
|
-
| 53
|
25
|
-
| 54
|
26
|
-
| 55
|
27
|
-
| 56
|
28
|
-
| 57
|
29
|
-
| 58
|
30
|
-
| 59
|
31
|
-
| 60
|
32
|
-
| 61
|
33
|
-
| 62
|
34
|
-
| 63
|
35
|
-
;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
declare type Tester<TF extends { T: unknown; F?: unknown }> =
|
2
|
-
& (OmitNever<TF["T"]> extends TF["T"] ? true : never)
|
3
|
-
& (object extends OmitNever<TF["F"]> ? true : undefined extends OmitNever<TF["F"]> ? true : never);
|
4
|
-
declare type OmitNever<R> = { [
|
5
|
-
K in keyof R as R[K] extends never
|
6
|
-
? never
|
7
|
-
: K
|
8
|
-
]: R[K] };
|
@@ -1,11 +0,0 @@
|
|
1
|
-
declare type Interface<R extends object> = [R] extends [object]
|
2
|
-
? [Extract<R, readonly unknown[]>] extends [never]
|
3
|
-
? Required<R> extends Record<infer K, unknown>
|
4
|
-
? Exclude<K, string> extends never
|
5
|
-
? literalful<K & string> extends never
|
6
|
-
? never
|
7
|
-
: R
|
8
|
-
: never
|
9
|
-
: never
|
10
|
-
: never
|
11
|
-
: never;
|