@eslinted/core 13.1.0-rc.2 → 13.2.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. package/dist/factory/factory.d.ts +47 -46
  2. package/dist/factory/factory.d.ts.map +1 -1
  3. package/dist/factory/factory.js.map +1 -1
  4. package/dist/factory/ruleset.d.ts +4 -4
  5. package/dist/factory/ruleset.d.ts.map +1 -1
  6. package/dist/factory/ruleset.js.map +1 -1
  7. package/dist/factory/settings/setting.d.ts.map +1 -1
  8. package/dist/factory/settings/setting.js +6 -11
  9. package/dist/factory/settings/setting.js.map +1 -1
  10. package/dist/index.d.ts +3 -2
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/interface/index.d.ts +1 -2
  15. package/dist/interface/index.d.ts.map +1 -1
  16. package/dist/interface/input.d.ts +5 -16
  17. package/dist/interface/input.d.ts.map +1 -1
  18. package/dist/interface/inputs/imports.d.ts +6 -0
  19. package/dist/interface/inputs/imports.d.ts.map +1 -0
  20. package/dist/interface/inputs/imports.js +2 -0
  21. package/dist/interface/inputs/imports.js.map +1 -0
  22. package/dist/interface/inputs/index.d.ts +3 -0
  23. package/dist/interface/inputs/index.d.ts.map +1 -0
  24. package/dist/interface/{config → inputs}/index.js.map +1 -1
  25. package/dist/interface/inputs/options/defaults.d.ts +8 -0
  26. package/dist/interface/inputs/options/defaults.d.ts.map +1 -0
  27. package/dist/interface/inputs/options/defaults.js +2 -0
  28. package/dist/interface/inputs/options/defaults.js.map +1 -0
  29. package/dist/interface/inputs/options/index.d.ts +13 -0
  30. package/dist/interface/inputs/options/index.d.ts.map +1 -0
  31. package/dist/interface/inputs/options/index.js.map +1 -0
  32. package/dist/interface/output.d.ts +6 -6
  33. package/dist/interface/output.d.ts.map +1 -1
  34. package/dist/interface/outputs/common/ignores.d.ts +5 -0
  35. package/dist/interface/outputs/common/ignores.d.ts.map +1 -0
  36. package/dist/interface/outputs/common/ignores.js.map +1 -0
  37. package/dist/interface/{configs/globals → outputs/common}/index.d.ts +0 -1
  38. package/dist/interface/outputs/common/index.d.ts.map +1 -0
  39. package/dist/interface/outputs/common/index.js.map +1 -0
  40. package/dist/interface/outputs/common/plugins.d.ts +5 -0
  41. package/dist/interface/outputs/common/plugins.d.ts.map +1 -0
  42. package/dist/interface/outputs/common/plugins.js.map +1 -0
  43. package/dist/interface/outputs/common/settings.d.ts +5 -0
  44. package/dist/interface/outputs/common/settings.d.ts.map +1 -0
  45. package/dist/interface/outputs/common/settings.js.map +1 -0
  46. package/dist/interface/{configs → outputs}/index.d.ts +1 -1
  47. package/dist/interface/outputs/index.d.ts.map +1 -0
  48. package/dist/interface/{imports → outputs}/index.js.map +1 -1
  49. package/dist/interface/{configs → outputs}/scoped.d.ts +1 -2
  50. package/dist/interface/outputs/scoped.d.ts.map +1 -0
  51. package/dist/interface/{configs → outputs}/scoped.js.map +1 -1
  52. package/dist/interface/{config → shared/config}/index.d.ts +3 -2
  53. package/dist/interface/shared/config/index.d.ts.map +1 -0
  54. package/dist/interface/shared/config/index.js.map +1 -0
  55. package/dist/interface/shared/config/rule/index.d.ts +7 -0
  56. package/dist/interface/shared/config/rule/index.d.ts.map +1 -0
  57. package/dist/interface/shared/config/rule/index.js +2 -0
  58. package/dist/interface/shared/config/rule/index.js.map +1 -0
  59. package/dist/interface/shared/index.d.ts +2 -0
  60. package/dist/interface/shared/index.d.ts.map +1 -0
  61. package/dist/interface/shared/index.js +2 -0
  62. package/dist/interface/{configs → shared}/index.js.map +1 -1
  63. package/dist/scopes/imports/index.d.ts.map +1 -0
  64. package/dist/scopes/imports/index.js +2 -0
  65. package/dist/scopes/imports/index.js.map +1 -0
  66. package/dist/scopes/imports/parsers.d.ts.map +1 -0
  67. package/dist/scopes/imports/parsers.js.map +1 -0
  68. package/dist/scopes/imports/plugins.d.ts.map +1 -0
  69. package/dist/scopes/imports/plugins.js.map +1 -0
  70. package/dist/scopes/index.d.ts +13 -0
  71. package/dist/scopes/index.d.ts.map +1 -0
  72. package/dist/{scopes.js → scopes/index.js} +1 -1
  73. package/dist/scopes/index.js.map +1 -0
  74. package/dist/scopes/index.spec.d.ts +2 -0
  75. package/dist/scopes/index.spec.d.ts.map +1 -0
  76. package/dist/{scopes.spec.js → scopes/index.spec.js} +2 -2
  77. package/dist/scopes/index.spec.js.map +1 -0
  78. package/package.json +1 -1
  79. package/src/factory/factory.ts +7 -6
  80. package/src/factory/ruleset.ts +6 -6
  81. package/src/factory/settings/setting.ts +6 -9
  82. package/src/index.ts +4 -3
  83. package/src/interface/index.ts +1 -2
  84. package/src/interface/input.ts +12 -20
  85. package/src/interface/inputs/imports.ts +12 -0
  86. package/src/interface/inputs/index.ts +2 -0
  87. package/src/interface/inputs/options/defaults.ts +8 -0
  88. package/src/interface/inputs/options/index.ts +19 -0
  89. package/src/interface/output.ts +9 -6
  90. package/src/interface/outputs/common/ignores.ts +6 -0
  91. package/src/interface/{configs/globals → outputs/common}/index.ts +0 -1
  92. package/src/interface/outputs/common/plugins.ts +7 -0
  93. package/src/interface/outputs/common/settings.ts +7 -0
  94. package/src/interface/outputs/index.ts +2 -0
  95. package/src/interface/{configs → outputs}/scoped.ts +1 -2
  96. package/src/interface/{config → shared/config}/index.ts +18 -3
  97. package/src/interface/{config/rule.ts → shared/config/rule/index.ts} +3 -3
  98. package/src/interface/shared/index.ts +1 -0
  99. package/src/{scopes.spec.ts → scopes/index.spec.ts} +1 -1
  100. package/src/{scopes.ts → scopes/index.ts} +1 -0
  101. package/dist/interface/config/index.d.ts.map +0 -1
  102. package/dist/interface/config/rule.d.ts +0 -7
  103. package/dist/interface/config/rule.d.ts.map +0 -1
  104. package/dist/interface/config/rule.js +0 -2
  105. package/dist/interface/config/rule.js.map +0 -1
  106. package/dist/interface/configs/globals/ignores.d.ts +0 -6
  107. package/dist/interface/configs/globals/ignores.d.ts.map +0 -1
  108. package/dist/interface/configs/globals/ignores.js.map +0 -1
  109. package/dist/interface/configs/globals/index.d.ts.map +0 -1
  110. package/dist/interface/configs/globals/index.js.map +0 -1
  111. package/dist/interface/configs/globals/only/index.d.ts +0 -2
  112. package/dist/interface/configs/globals/only/index.d.ts.map +0 -1
  113. package/dist/interface/configs/globals/only/index.js.map +0 -1
  114. package/dist/interface/configs/globals/plugins.d.ts +0 -6
  115. package/dist/interface/configs/globals/plugins.d.ts.map +0 -1
  116. package/dist/interface/configs/globals/plugins.js.map +0 -1
  117. package/dist/interface/configs/globals/settings.d.ts +0 -7
  118. package/dist/interface/configs/globals/settings.d.ts.map +0 -1
  119. package/dist/interface/configs/globals/settings.js.map +0 -1
  120. package/dist/interface/configs/index.d.ts.map +0 -1
  121. package/dist/interface/configs/scoped.d.ts.map +0 -1
  122. package/dist/interface/imports/index.d.ts.map +0 -1
  123. package/dist/interface/imports/parsers.d.ts.map +0 -1
  124. package/dist/interface/imports/parsers.js.map +0 -1
  125. package/dist/interface/imports/plugins.d.ts.map +0 -1
  126. package/dist/interface/imports/plugins.js.map +0 -1
  127. package/dist/scopes.d.ts +0 -3
  128. package/dist/scopes.d.ts.map +0 -1
  129. package/dist/scopes.js.map +0 -1
  130. package/dist/scopes.spec.d.ts +0 -2
  131. package/dist/scopes.spec.d.ts.map +0 -1
  132. package/dist/scopes.spec.js.map +0 -1
  133. package/src/interface/configs/globals/ignores.ts +0 -10
  134. package/src/interface/configs/globals/only/index.ts +0 -4
  135. package/src/interface/configs/globals/plugins.ts +0 -10
  136. package/src/interface/configs/globals/settings.ts +0 -13
  137. package/src/interface/configs/index.ts +0 -2
  138. /package/dist/interface/{config → inputs}/index.js +0 -0
  139. /package/dist/interface/{configs/globals → inputs/options}/index.js +0 -0
  140. /package/dist/interface/{configs/globals → outputs/common}/ignores.js +0 -0
  141. /package/dist/interface/{configs/globals/only → outputs/common}/index.js +0 -0
  142. /package/dist/interface/{configs/globals → outputs/common}/plugins.js +0 -0
  143. /package/dist/interface/{configs/globals → outputs/common}/settings.js +0 -0
  144. /package/dist/interface/{configs → outputs}/index.js +0 -0
  145. /package/dist/interface/{configs → outputs}/scoped.js +0 -0
  146. /package/dist/interface/{imports → shared/config}/index.js +0 -0
  147. /package/dist/{interface → scopes}/imports/index.d.ts +0 -0
  148. /package/dist/{interface → scopes}/imports/parsers.d.ts +0 -0
  149. /package/dist/{interface → scopes}/imports/parsers.js +0 -0
  150. /package/dist/{interface → scopes}/imports/plugins.d.ts +0 -0
  151. /package/dist/{interface → scopes}/imports/plugins.js +0 -0
  152. /package/src/{interface → scopes}/imports/index.ts +0 -0
  153. /package/src/{interface → scopes}/imports/parsers.ts +0 -0
  154. /package/src/{interface → scopes}/imports/plugins.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../src/interface/configs/scoped.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,IAAI,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC,CAAC;CACzF,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/imports/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/interface/imports/parsers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACR,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/interface/imports/parsers.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/interface/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,OAAO,GACP,KAAK,CACR,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/interface/imports/plugins.ts"],"names":[],"mappings":""}
package/dist/scopes.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export type Scopes = typeof scopes[number];
2
- export declare const scopes: readonly ["js", "ts", "svelte", "mocha", "html", "json", "jsonc", "yml"];
3
- //# sourceMappingURL=scopes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC3C,eAAO,MAAM,MAAM,0EAST,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=scopes.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.spec.d.ts","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.spec.js","sourceRoot":"","sources":["../src/scopes.spec.ts"],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AAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAC7B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { Config } from "../..";
2
- import type { Only } from "./only";
3
-
4
- export type Ignores = Only<
5
- Config,
6
- (
7
- & { readonly name: `linted/*/ignores` }
8
- & Pick<Config, "ignores">
9
- )
10
- >;
@@ -1,4 +0,0 @@
1
- export type Only<
2
- Base extends object,
3
- This extends object,
4
- > = This & Readonly<Partial<Record<Exclude<keyof Base, keyof This>, never>>>;
@@ -1,10 +0,0 @@
1
- import type { Config, Imports } from "../..";
2
- import type { Only } from "./only";
3
-
4
- export type Plugins = Only<
5
- Config,
6
- (
7
- & { readonly name: `linted/*/plugins` }
8
- & Pick<Config<Imports.Plugins>, "plugins">
9
- )
10
- >;
@@ -1,13 +0,0 @@
1
- import type { Config } from "../..";
2
- import type { Only } from "./only";
3
-
4
- export type Settings = Only<
5
- Config,
6
- (
7
- & {
8
- readonly name: `linted/*/settings`;
9
- readonly languageOptions: Pick<Config["languageOptions"], "ecmaVersion" | "sourceType">;
10
- }
11
- & Pick<Config, "linterOptions">
12
- )
13
- >;
@@ -1,2 +0,0 @@
1
- export type * as Globals from "./globals";
2
- export type * from "./scoped";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes