@eslinted/core 12.0.0 → 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 +26 -0
- package/dist/factory/global.d.ts.map +1 -0
- package/dist/factory/global.js +39 -0
- package/dist/factory/global.js.map +1 -0
- package/dist/factory/index.d.ts +1 -0
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +1 -0
- package/dist/factory/index.js.map +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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -26
- package/dist/index.js.map +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/global.ts +43 -0
- package/src/factory/index.ts +1 -0
- 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/index.ts +15 -30
- 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,27 +0,0 @@
|
|
1
|
-
declare namespace Primitive {
|
2
|
-
export type T0 = Primitive<"fast", string>;
|
3
|
-
export type T0a = Primitive<"", string>;
|
4
|
-
export type T0b = Primitive<"fast" | "good", string>;
|
5
|
-
export type T0c = Primitive<"fast" | "", string>;
|
6
|
-
export type T1 = Primitive<5, number>;
|
7
|
-
export type T1a = Primitive<0, number>;
|
8
|
-
export type T2 = Primitive<true, boolean>;
|
9
|
-
export type T2a = Primitive<false, boolean>;
|
10
|
-
export type N0 = Primitive<string, string>;
|
11
|
-
export type N0a = Primitive<number, number>;
|
12
|
-
export type N0b = Primitive<boolean, boolean>;
|
13
|
-
export type N1 = Primitive<stringful, string>;
|
14
|
-
export type N1b = Primitive<numberful, number>;
|
15
|
-
|
16
|
-
// export type N2 = Primeval<number | 5, number>;
|
17
|
-
// export type N2a = Primeval<string | "good", string>;
|
18
|
-
// export type N2b = Primeval<boolean | true, boolean>;
|
19
|
-
// export type N3 = Primeval<5, number | object>;
|
20
|
-
// export type N3a = Primeval<symbol, symbol>;
|
21
|
-
// export type N3b = Primeval<object, object>;
|
22
|
-
// export type N3c = Primeval<[], readonly unknown[]>;
|
23
|
-
// export type N3d = Primeval<()=> 5, Function>;
|
24
|
-
// export type N3e = Primeval<5, unknown>;
|
25
|
-
// export type N3f = Primeval<true | 10, boolean>;
|
26
|
-
// export type N3g = Primeval<string | "good", string>;
|
27
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
declare namespace LengthValue {
|
2
|
-
export type T0 = LengthValue<0>;
|
3
|
-
export type T0a = LengthValue<0.0>; // 0
|
4
|
-
export type T0b = LengthValue<number>; // 0
|
5
|
-
export type T1 = LengthValue<1>;
|
6
|
-
export type T1a = LengthValue<1.0>; // 1
|
7
|
-
export type T2 = LengthValue<1.1>; // 1.1
|
8
|
-
export type T3 = LengthValue<1 | 5>; // 1 | 5
|
9
|
-
export type T3b = LengthValue<0 | 1 | 5>; // 0 | 1 | 5
|
10
|
-
export type N = LengthValue<never>;
|
11
|
-
|
12
|
-
// export type N0 = Length<unknown>;
|
13
|
-
// export type N0a = Length<undefined>;
|
14
|
-
// export type N0b = Length<null>;
|
15
|
-
// export type N0c = Length<void>;
|
16
|
-
// export type N0d = Length<undefined>;
|
17
|
-
// export type N0e = Length<undefined>;
|
18
|
-
// export type N1 = Length<"1">;
|
19
|
-
// export type N1a = Length<true>;
|
20
|
-
// export type N1b = Length<[5, 5]>;
|
21
|
-
// export type N1c = Length<()=> void>;
|
22
|
-
// export type N1d = Length<object>;
|
23
|
-
// export type N2 = Length<null | 1>;
|
24
|
-
// export type N2a = Length<true | 1>;
|
25
|
-
// export type N2b = Length<number | 1>; // 0
|
26
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type literal<S extends string> = Primitive<S, string>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
declare namespace literal {
|
2
|
-
export type T = literal<"">;
|
3
|
-
export type T0 = literal<"a">;
|
4
|
-
export type T1 = literal<"a" | "b">;
|
5
|
-
export type T1b = literal<"a" | "">;
|
6
|
-
export type N = literal<never>;
|
7
|
-
export type N0 = literal<string>;
|
8
|
-
|
9
|
-
// export type N1 = literal<unknown>;
|
10
|
-
// export type N2 = literal<null>;
|
11
|
-
// export type N3 = literal<undefined>;
|
12
|
-
// export type N4 = literal<void>;
|
13
|
-
// export type N5 = literal<object>;
|
14
|
-
// export type N6 = literal<()=> "a">;
|
15
|
-
// export type N7 = literal<symbol>;
|
16
|
-
// export type N8 = literal<"a" | 5>;
|
17
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
declare namespace literalful {
|
2
|
-
export type T0 = literalful<"a">;
|
3
|
-
export type T1 = literalful<"a" | "b">;
|
4
|
-
export type N0 = literalful<never>;
|
5
|
-
export type N1 = literalful<"">;
|
6
|
-
export type N2 = literalful<string>;
|
7
|
-
export type N2b = literalful<stringful>;
|
8
|
-
export type N3 = literalful<"" | "a">;
|
9
|
-
|
10
|
-
// export type N5 = literalful<"a" | string>;
|
11
|
-
// export type N5a = literalful<unknown>;
|
12
|
-
// export type N5b = literalful<null>;
|
13
|
-
// export type N5c = literalful<undefined>;
|
14
|
-
// export type N5d = literalful<void>;
|
15
|
-
// export type N5e = literalful<[]>;
|
16
|
-
// export type N5f = literalful<object>;
|
17
|
-
// export type N5g = literalful<()=> "a">;
|
18
|
-
// export type N5h = literalful<symbol>;
|
19
|
-
// export type N5i = literalful<"a" | 5>;
|
20
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type Numeric<N extends number> = Primitive<N, number>;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
declare namespace Numeric {
|
2
|
-
export type T0 = Numeric<0>;
|
3
|
-
export type T1 = Numeric<0.0>;
|
4
|
-
export type T2 = Numeric<1>;
|
5
|
-
export type T3 = Numeric<1.0>;
|
6
|
-
export type T4 = Numeric<1.1>;
|
7
|
-
export type T5 = Numeric<1 | 5>;
|
8
|
-
export type N0 = Numeric<number>;
|
9
|
-
export type N0b = Numeric<numberful>;
|
10
|
-
export type N0c = Numeric<number | numberful>;
|
11
|
-
export type N0d = Numeric<1 | numberful>;
|
12
|
-
export type N1 = Numeric<never>;
|
13
|
-
|
14
|
-
// export type N0e = Numbered<1 | number>;
|
15
|
-
// export type N2 = Numbered<"cool">;
|
16
|
-
// export type N3 = Numbered<"NaN">;
|
17
|
-
// export type N4 = Numbered<"5">;
|
18
|
-
// export type N5 = Numbered<string>;
|
19
|
-
// export type N6 = Numbered<boolean>;
|
20
|
-
// export type N6a = Numbered<true>;
|
21
|
-
// export type N6b = Numbered<false>;
|
22
|
-
// export type N7 = Numbered<null>;
|
23
|
-
// export type N8 = Numbered<undefined>;
|
24
|
-
// export type N9 = Numbered<void>;
|
25
|
-
// export type N10 = Numbered<object>;
|
26
|
-
// export type N11 = Numbered<[]>;
|
27
|
-
// export type N12 = Numbered<5 | true>;
|
28
|
-
// export type N13 = Numbered<() => 5>;
|
29
|
-
// export type N14 = Numbered<symbol>;
|
30
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
declare namespace Truth {
|
2
|
-
export type T0 = Truth<true>;
|
3
|
-
export type N0 = Truth<never>;
|
4
|
-
export type N1 = Truth<false>;
|
5
|
-
export type N1a = Truth<false | true>;
|
6
|
-
export type N1b = Truth<boolean>;
|
7
|
-
|
8
|
-
// export type N2 = True<true | 10>;
|
9
|
-
// export type N2a = True<true | object>;
|
10
|
-
// export type N2b = True<true | undefined>;
|
11
|
-
// export type N2c = True<true | null>;
|
12
|
-
// export type N2d = True<0>;
|
13
|
-
// export type N2e = True<1>;
|
14
|
-
// export type N2f = True<number>;
|
15
|
-
// export type N2g = True<"">;
|
16
|
-
// export type N2h = True<"true">;
|
17
|
-
// export type N2i = True<"foo">;
|
18
|
-
// export type N2j = True<null>;
|
19
|
-
// export type N2k = True<undefined>;
|
20
|
-
// export type N2l = True<[]>;
|
21
|
-
// export type N2m = True<object>;
|
22
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type char = stringful & StringLength<1>;
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type numberful = Full<number, "!NaN">;
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type stringful = Full<string, "length > 0"> & { 0: char };
|