@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.
Files changed (114) hide show
  1. package/dist/factory/global.d.ts +26 -0
  2. package/dist/factory/global.d.ts.map +1 -0
  3. package/dist/factory/global.js +39 -0
  4. package/dist/factory/global.js.map +1 -0
  5. package/dist/factory/index.d.ts +1 -0
  6. package/dist/factory/index.d.ts.map +1 -1
  7. package/dist/factory/index.js +1 -0
  8. package/dist/factory/index.js.map +1 -1
  9. package/dist/factory/options/html.d.ts +1 -1
  10. package/dist/factory/options/html.d.ts.map +1 -1
  11. package/dist/factory/options/html.js.map +1 -1
  12. package/dist/factory/options/json.d.ts +1 -1
  13. package/dist/factory/options/json.d.ts.map +1 -1
  14. package/dist/factory/options/json.js.map +1 -1
  15. package/dist/factory/options/jsonc.d.ts +1 -1
  16. package/dist/factory/options/jsonc.d.ts.map +1 -1
  17. package/dist/factory/options/jsonc.js.map +1 -1
  18. package/dist/factory/options/option/index.d.ts +40 -2978
  19. package/dist/factory/options/option/index.d.ts.map +1 -1
  20. package/dist/factory/options/option/index.js.map +1 -1
  21. package/dist/factory/options/option/template/index.d.ts +10 -6
  22. package/dist/factory/options/option/template/index.d.ts.map +1 -1
  23. package/dist/factory/options/option/template/languageOptions.d.ts +6 -5
  24. package/dist/factory/options/option/template/languageOptions.d.ts.map +1 -1
  25. package/dist/factory/options/svelte.d.ts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +4 -26
  29. package/dist/index.js.map +1 -1
  30. package/dist/objects/config/global/system.d.ts +1 -1
  31. package/dist/objects/config/global/system.d.ts.map +1 -1
  32. package/dist/objects/config/scoped.d.ts +1 -5
  33. package/dist/objects/config/scoped.d.ts.map +1 -1
  34. package/dist/objects/rule/record/index.d.ts +1 -1
  35. package/dist/objects/rule/record/index.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/factory/global.ts +43 -0
  38. package/src/factory/index.ts +1 -0
  39. package/src/factory/options/html.ts +1 -2
  40. package/src/factory/options/json.ts +1 -2
  41. package/src/factory/options/jsonc.ts +1 -2
  42. package/src/factory/options/option/index.ts +19 -16
  43. package/src/factory/options/option/template/index.ts +22 -7
  44. package/src/factory/options/option/template/languageOptions.ts +18 -13
  45. package/src/factory/options/svelte.ts +1 -1
  46. package/src/index.ts +15 -30
  47. package/src/objects/config/global/system.ts +11 -12
  48. package/src/objects/config/scoped.ts +1 -5
  49. package/src/objects/rule/record/index.ts +2 -1
  50. package/typings/common/literals/chars/alpha.d.ts +0 -4
  51. package/typings/common/literals/chars/digit.d.ts +0 -12
  52. package/typings/common/literals/chars/digits/base64.d.ts +0 -13
  53. package/typings/common/literals/chars/digits/hexchar.d.ts +0 -9
  54. package/typings/common/literals/chars/lower.d.ts +0 -1
  55. package/typings/common/literals/chars/upper.d.ts +0 -28
  56. package/typings/common/literals/numbers/base32.d.ts +0 -19
  57. package/typings/common/literals/numbers/base64.d.ts +0 -35
  58. package/typings/common/literals/numbers/binary.d.ts +0 -4
  59. package/typings/common/literals/numbers/decimal.d.ts +0 -5
  60. package/typings/common/literals/numbers/hexadecimal.d.ts +0 -10
  61. package/typings/common/literals/numbers/octal.d.ts +0 -7
  62. package/typings/common/literals/numbers/quatral.d.ts +0 -4
  63. package/typings/common/literals/numbers/ternary.d.ts +0 -4
  64. package/typings/common/primitive.d.ts +0 -5
  65. package/typings/common/tester.d.ts +0 -8
  66. package/typings/common/utility/constructor.d.ts +0 -3
  67. package/typings/common/utility/interface/identity.d.ts +0 -11
  68. package/typings/common/utility/interface/identity.spec.d.ts +0 -63
  69. package/typings/common/utility/interface/index.d.ts +0 -5
  70. package/typings/common/utility/interface/keys.d.ts +0 -3
  71. package/typings/common/utility/interface/keys.spec.d.ts +0 -67
  72. package/typings/common/utility/interface/optional.d.ts +0 -7
  73. package/typings/common/utility/interface/optional.spec.d.ts +0 -34
  74. package/typings/common/utility/interface/partially.d.ts +0 -1
  75. package/typings/common/utility/interface/property/index.d.ts +0 -8
  76. package/typings/common/utility/interface/property/properties.d.ts +0 -6
  77. package/typings/common/utility/interface/table/index.d.ts +0 -3
  78. package/typings/common/utility/interface/table/tables.d.ts +0 -5
  79. package/typings/common/utility/iterable/arrayful.d.ts +0 -1
  80. package/typings/common/utility/iterable/flat/index.d.ts +0 -3
  81. package/typings/common/utility/iterable/flat/unflat.d.ts +0 -3
  82. package/typings/common/utility/iterable/identity.d.ts +0 -1
  83. package/typings/common/utility/iterable/identity.spec.d.ts +0 -59
  84. package/typings/common/utility/iterable/index.d.ts +0 -15
  85. package/typings/common/utility/iterable/index.spec.d.ts +0 -18
  86. package/typings/common/utility/iterable/tuple.d.ts +0 -11
  87. package/typings/common/utility/iterable/tuple.spec.d.ts +0 -14
  88. package/typings/common/utility/iterable/tuples.d.ts +0 -10
  89. package/typings/common/utility/null/index.d.ts +0 -1
  90. package/typings/common/utility/null/index.spec.d.ts +0 -13
  91. package/typings/common/utility/null/nullable.d.ts +0 -1
  92. package/typings/common/utility/null/nullable.spec.d.ts +0 -13
  93. package/typings/common/utility/primitive/cast/number.d.ts +0 -13
  94. package/typings/common/utility/primitive/cast/number.spec.d.ts +0 -57
  95. package/typings/common/utility/primitive/index.d.ts +0 -11
  96. package/typings/common/utility/primitive/index.spec.d.ts +0 -27
  97. package/typings/common/utility/primitive/length.d.ts +0 -5
  98. package/typings/common/utility/primitive/length.spec.d.ts +0 -26
  99. package/typings/common/utility/primitive/literal.d.ts +0 -1
  100. package/typings/common/utility/primitive/literal.spec.d.ts +0 -17
  101. package/typings/common/utility/primitive/literalful.d.ts +0 -3
  102. package/typings/common/utility/primitive/literalful.spec.d.ts +0 -20
  103. package/typings/common/utility/primitive/numeric.d.ts +0 -1
  104. package/typings/common/utility/primitive/numeric.spec.d.ts +0 -30
  105. package/typings/common/utility/primitive/truth.d.ts +0 -3
  106. package/typings/common/utility/primitive/truth.spec.d.ts +0 -22
  107. package/typings/common/validated/char.d.ts +0 -1
  108. package/typings/common/validated/index.d.ts +0 -2
  109. package/typings/common/validated/numberful.d.ts +0 -1
  110. package/typings/common/validated/properties/finite.d.ts +0 -2
  111. package/typings/common/validated/properties/int.d.ts +0 -2
  112. package/typings/common/validated/properties/length.d.ts +0 -3
  113. package/typings/common/validated/properties/polarity.d.ts +0 -5
  114. 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,5 +0,0 @@
1
- declare type LengthValue<N extends number> = [N] extends [number]
2
- ? [number] extends [N]
3
- ? 0
4
- : Numeric<N>
5
- : never;
@@ -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,3 +0,0 @@
1
- declare type literalful<S extends string> = "" extends literal<S>
2
- ? never
3
- : literal<S>;
@@ -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,3 +0,0 @@
1
- declare type Truth<B extends boolean> = true extends Primitive<B, boolean>
2
- ? Primitive<B, boolean>
3
- : never;
@@ -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,2 +0,0 @@
1
- declare const ful: unique symbol;
2
- declare type Full<Type extends primitive, Brand> = Type & { [ful]: Brand };
@@ -1 +0,0 @@
1
- declare type numberful = Full<number, "!NaN">;
@@ -1,2 +0,0 @@
1
- declare const finite: unique symbol;
2
- declare type finite<NumberType extends number = numberful> = NumberType & { [finite]: true };
@@ -1,2 +0,0 @@
1
- declare const int: unique symbol;
2
- declare type int = numberful & { [int]: true };
@@ -1,3 +0,0 @@
1
- declare type StringLength<Length extends number> = LengthValue<Length> extends never
2
- ? never
3
- : { length: LengthValue<Length> };
@@ -1,5 +0,0 @@
1
- declare const polarity: unique symbol;
2
- declare type polarity<
3
- P extends "-" | "+" = "+",
4
- NumberType extends number = numberful,
5
- > = NumberType & { [polarity]: P };
@@ -1 +0,0 @@
1
- declare type stringful = Full<string, "length > 0"> & { 0: char };