@eslinted/core 4.0.5-rc.6 → 4.0.5-rc.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/dist/factory/files.d.ts +8 -0
  2. package/dist/factory/files.d.ts.map +1 -0
  3. package/dist/factory/files.js +19 -0
  4. package/dist/factory/files.js.map +1 -0
  5. package/dist/factory/index.d.ts +6 -0
  6. package/dist/factory/index.d.ts.map +1 -0
  7. package/dist/factory/index.js +5 -0
  8. package/dist/factory/index.js.map +1 -0
  9. package/dist/factory/options/html.d.ts +9 -0
  10. package/dist/factory/options/html.d.ts.map +1 -0
  11. package/dist/factory/options/html.js +10 -0
  12. package/dist/factory/options/html.js.map +1 -0
  13. package/dist/factory/options/index.d.ts +23 -0
  14. package/dist/factory/options/index.d.ts.map +1 -0
  15. package/dist/factory/options/index.js +21 -0
  16. package/dist/factory/options/index.js.map +1 -0
  17. package/dist/factory/options/js.d.ts +10 -0
  18. package/dist/factory/options/js.d.ts.map +1 -0
  19. package/dist/factory/options/js.js +12 -0
  20. package/dist/factory/options/js.js.map +1 -0
  21. package/dist/factory/options/json.d.ts +9 -0
  22. package/dist/factory/options/json.d.ts.map +1 -0
  23. package/dist/factory/options/json.js +10 -0
  24. package/dist/factory/options/json.js.map +1 -0
  25. package/dist/factory/options/jsonc.d.ts +9 -0
  26. package/dist/factory/options/jsonc.d.ts.map +1 -0
  27. package/dist/factory/options/jsonc.js +10 -0
  28. package/dist/factory/options/jsonc.js.map +1 -0
  29. package/dist/factory/options/md.d.ts +9 -0
  30. package/dist/factory/options/md.d.ts.map +1 -0
  31. package/dist/factory/options/md.js +10 -0
  32. package/dist/factory/options/md.js.map +1 -0
  33. package/dist/factory/options/mocha.d.ts +40 -0
  34. package/dist/factory/options/mocha.d.ts.map +1 -0
  35. package/dist/factory/options/mocha.js +17 -0
  36. package/dist/factory/options/mocha.js.map +1 -0
  37. package/dist/factory/options/option/index.d.ts +2986 -0
  38. package/dist/factory/options/option/index.d.ts.map +1 -0
  39. package/dist/factory/options/option/index.js +47 -0
  40. package/dist/factory/options/option/index.js.map +1 -0
  41. package/dist/factory/options/option/template/globals.d.ts +3 -0
  42. package/dist/factory/options/option/template/globals.d.ts.map +1 -0
  43. package/dist/factory/options/option/template/globals.js +1 -0
  44. package/dist/factory/options/option/template/globals.js.map +1 -0
  45. package/dist/factory/options/option/template/index.d.ts +15 -0
  46. package/dist/factory/options/option/template/index.d.ts.map +1 -0
  47. package/dist/factory/options/option/template/index.js +1 -0
  48. package/dist/factory/options/option/template/index.js.map +1 -0
  49. package/dist/factory/options/option/template/language/ecma.d.ts +2 -0
  50. package/dist/factory/options/option/template/language/ecma.d.ts.map +1 -0
  51. package/dist/factory/options/option/template/language/ecma.js +1 -0
  52. package/dist/factory/options/option/template/language/ecma.js.map +1 -0
  53. package/dist/factory/options/option/template/language/index.d.ts +14 -0
  54. package/dist/factory/options/option/template/language/index.d.ts.map +1 -0
  55. package/dist/factory/options/option/template/language/index.js +1 -0
  56. package/dist/factory/options/option/template/language/index.js.map +1 -0
  57. package/dist/factory/options/option/template/language/source.d.ts +2 -0
  58. package/dist/factory/options/option/template/language/source.d.ts.map +1 -0
  59. package/dist/factory/options/option/template/language/source.js +1 -0
  60. package/dist/factory/options/option/template/language/source.js.map +1 -0
  61. package/dist/factory/options/option/template/linter.d.ts +5 -0
  62. package/dist/factory/options/option/template/linter.d.ts.map +1 -0
  63. package/dist/factory/options/option/template/linter.js +1 -0
  64. package/dist/factory/options/option/template/linter.js.map +1 -0
  65. package/dist/factory/options/option/template/plugins.d.ts +6 -0
  66. package/dist/factory/options/option/template/plugins.d.ts.map +1 -0
  67. package/dist/factory/options/option/template/plugins.js +1 -0
  68. package/dist/factory/options/option/template/plugins.js.map +1 -0
  69. package/dist/factory/options/svelte.d.ts +27 -0
  70. package/dist/factory/options/svelte.d.ts.map +1 -0
  71. package/dist/factory/options/svelte.js +21 -0
  72. package/dist/factory/options/svelte.js.map +1 -0
  73. package/dist/factory/options/ts.d.ts +19 -0
  74. package/dist/factory/options/ts.d.ts.map +1 -0
  75. package/dist/factory/options/ts.js +15 -0
  76. package/dist/factory/options/ts.js.map +1 -0
  77. package/dist/factory/options/yml.d.ts +9 -0
  78. package/dist/factory/options/yml.d.ts.map +1 -0
  79. package/dist/factory/options/yml.js +10 -0
  80. package/dist/factory/options/yml.js.map +1 -0
  81. package/dist/factory/rulesets/index.d.ts +10 -0
  82. package/dist/factory/rulesets/index.d.ts.map +1 -0
  83. package/dist/factory/rulesets/index.js +17 -0
  84. package/dist/factory/rulesets/index.js.map +1 -0
  85. package/dist/factory/rulesets/ruleset.d.ts +10 -0
  86. package/dist/factory/rulesets/ruleset.d.ts.map +1 -0
  87. package/dist/factory/rulesets/ruleset.js +20 -0
  88. package/dist/factory/rulesets/ruleset.js.map +1 -0
  89. package/dist/index.d.ts +26 -0
  90. package/dist/index.d.ts.map +1 -0
  91. package/dist/index.js +31 -0
  92. package/dist/index.js.map +1 -0
  93. package/dist/input/files.d.ts +6 -0
  94. package/dist/input/files.d.ts.map +1 -0
  95. package/dist/input/files.js +1 -0
  96. package/dist/input/files.js.map +1 -0
  97. package/dist/input/imports/parsers.d.ts +3 -0
  98. package/dist/input/imports/parsers.d.ts.map +1 -0
  99. package/dist/input/imports/parsers.js +1 -0
  100. package/dist/input/imports/parsers.js.map +1 -0
  101. package/dist/input/imports/plugins.d.ts +2 -0
  102. package/dist/input/imports/plugins.d.ts.map +1 -0
  103. package/dist/input/imports/plugins.js +1 -0
  104. package/dist/input/imports/plugins.js.map +1 -0
  105. package/dist/input/index.d.ts +22 -0
  106. package/dist/input/index.d.ts.map +1 -0
  107. package/dist/input/index.js +1 -0
  108. package/dist/input/index.js.map +1 -0
  109. package/dist/input/parsers.d.ts +3 -0
  110. package/dist/input/parsers.d.ts.map +1 -0
  111. package/dist/input/parsers.js +1 -0
  112. package/dist/input/parsers.js.map +1 -0
  113. package/dist/input/plugins.d.ts +5 -0
  114. package/dist/input/plugins.d.ts.map +1 -0
  115. package/dist/input/plugins.js +1 -0
  116. package/dist/input/plugins.js.map +1 -0
  117. package/dist/input/rules/entry/index.d.ts +7 -0
  118. package/dist/input/rules/entry/index.d.ts.map +1 -0
  119. package/dist/input/rules/entry/index.js +1 -0
  120. package/dist/input/rules/entry/index.js.map +1 -0
  121. package/dist/input/rules/entry/record/index.d.ts +3 -0
  122. package/dist/input/rules/entry/record/index.d.ts.map +1 -0
  123. package/dist/input/rules/entry/record/index.js +1 -0
  124. package/dist/input/rules/entry/record/index.js.map +1 -0
  125. package/dist/input/rules/entry/record/state.d.ts +2 -0
  126. package/dist/input/rules/entry/record/state.d.ts.map +1 -0
  127. package/dist/input/rules/entry/record/state.js +1 -0
  128. package/dist/input/rules/entry/record/state.js.map +1 -0
  129. package/dist/input/rules/index.d.ts +14 -0
  130. package/dist/input/rules/index.d.ts.map +1 -0
  131. package/dist/input/rules/index.js +1 -0
  132. package/dist/input/rules/index.js.map +1 -0
  133. package/dist/output.d.ts +20 -0
  134. package/dist/output.d.ts.map +1 -0
  135. package/dist/output.js +1 -0
  136. package/dist/output.js.map +1 -0
  137. package/dist/scopes.d.ts +3 -0
  138. package/dist/scopes.d.ts.map +1 -0
  139. package/dist/scopes.js +12 -0
  140. package/dist/scopes.js.map +1 -0
  141. package/package.json +4 -4
  142. package/tsconfig.json +5 -6
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/input/plugins.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { RuleRecord } from "./record/index.js";
2
+ export type RuleEntry = readonly [string, RuleRecord];
3
+ export declare namespace RuleEntry {
4
+ type Id = string;
5
+ type Record = RuleRecord;
6
+ }
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input/rules/entry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACtD,yBAAiB,SAAS,CAAC;IACzB,KAAY,EAAE,GAAG,MAAM,CAAC;IACxB,KAAY,MAAM,GAAG,UAAU,CAAC;CACjC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/input/rules/entry/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { RuleState } from "./state.js";
2
+ export type RuleRecord = Table<RuleState | readonly [RuleState, ...unknown[]]>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type RuleState = ("error" | "warn" | "off");
2
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/state.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { Scope } from "../index.js";
2
+ import type { RuleEntry } from "./entry/index.js";
3
+ export interface RulesInput {
4
+ rules: Record<Scope, RuleEntry[]>;
5
+ overrides: Partial<Record<Scope, RuleEntry.Record>>;
6
+ }
7
+ export declare namespace RulesInput {
8
+ type Entry = RuleEntry;
9
+ namespace Entry {
10
+ type Id = RuleEntry.Id;
11
+ type Record = RuleEntry.Record;
12
+ }
13
+ }
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;CACrD;AACD,yBAAiB,UAAU,CAAC;IAC1B,KAAY,KAAK,GAAG,SAAS,CAAC;IAC9B,UAAiB,KAAK,CAAC;QACrB,KAAY,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC;QAC9B,KAAY,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;KACvC;CACF"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/rules/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { Input } from "./index.js";
2
+ export type Output = ({
3
+ name: `linted/${string}`;
4
+ rules: Input["rules"]["rules"]["html"][number][1];
5
+ files: string[];
6
+ linterOptions: {
7
+ noInlineConfig: true;
8
+ reportUnusedDisableDirectives: "error";
9
+ };
10
+ languageOptions: {
11
+ sourceType?: "module" | "script";
12
+ ecmaVersion?: "latest";
13
+ globals?: Table<true>;
14
+ parser?: unknown;
15
+ parserOptions?: Record<string, unknown>;
16
+ };
17
+ plugins: Table<Record<"configs", unknown>>;
18
+ processor?: string;
19
+ })[];
20
+ //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,MAAM,GAAG,CACnB;IACE,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,EAAE,CAAC"}
package/dist/output.js ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type Scope = typeof scopes[number];
2
+ export declare const scopes: readonly ["js", "ts", "svelte", "mocha", "html", "json", "jsonc", "yml", "md"];
3
+ //# sourceMappingURL=scopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,eAAO,MAAM,MAAM,gFAUT,CAAC"}
package/dist/scopes.js ADDED
@@ -0,0 +1,12 @@
1
+ export const scopes = [
2
+ "js",
3
+ "ts",
4
+ "svelte",
5
+ "mocha",
6
+ "html",
7
+ "json",
8
+ "jsonc",
9
+ "yml",
10
+ "md",
11
+ ];
12
+ //# sourceMappingURL=scopes.js.map
@@ -0,0 +1 @@
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;IACL,IAAI;CACI,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "_schemaVersion": "20.18.0-core.0",
2
+ "_schemaVersion": "20.18.0",
3
3
  "name": "@eslinted/core",
4
- "version": "4.0.5-rc.6",
4
+ "version": "4.0.5-rc.7",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -13,8 +13,8 @@
13
13
  "access": "public"
14
14
  },
15
15
  "type": "module",
16
- "main": "./dist/index.js",
17
- "types": "./dist/index.d.ts",
16
+ "main": "dist/index.js",
17
+ "types": "dist/index.d.ts",
18
18
  "config": {
19
19
  "language": "ts",
20
20
  "fix": "true",
package/tsconfig.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
- "display": "@jimbojet/tsc",
2
+ "display": "jimmy/tsc",
3
+ "version": "5.6.2",
4
+ "help": "https://www.typescriptlang.org/tsconfig/#quick-nav-Top%20Level",
3
5
  "$schema": "https://json.schemastore.org/tsconfig",
4
- "_version": "5.6.1-core.1",
5
6
  "include": [
6
7
  "*.config.ts",
7
8
  "src/**/*.ts",
@@ -10,8 +11,6 @@
10
11
  ],
11
12
  "exclude": [],
12
13
  "compilerOptions": {
13
- /* https://www.typescriptlang.org/tsconfig/#quick-nav-Top%20Level */
14
-
15
14
  // #region TYPE CHECKING
16
15
  "allowUnreachableCode": false,
17
16
  "allowUnusedLabels": false,
@@ -41,7 +40,7 @@
41
40
  // "allowUmdGlobalAccess": true,
42
41
  // "baseUrl": "./",
43
42
  // "customConditions": [],
44
- "module": "es2022",
43
+ "module": "preserve",
45
44
  "moduleResolution": "bundler",
46
45
  // "moduleSuffixes": [],
47
46
  // "noResolve": true,
@@ -122,7 +121,7 @@
122
121
  // "noLib": true,
123
122
  // "reactNamespace": "",
124
123
  "target": "es2022",
125
- "useDefineForClassFields": true,
124
+ // "useDefineForClassFields": true /* @default: target > es2022 : true; else : false*/,
126
125
  // #endregion
127
126
 
128
127