corequery 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corequery",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "server/dist",
@@ -1,7 +1,6 @@
1
1
  import type { CorequeryConfig } from "./config/config.js";
2
- type LintableConfig = Omit<CorequeryConfig, "assets" | "port">;
3
- type LintOptions = {
2
+ export type LintableConfig = Omit<CorequeryConfig, "assets" | "port">;
3
+ export type LintOptions = {
4
4
  pass?: boolean;
5
5
  };
6
6
  export declare function lintConfig(_config: LintableConfig, options?: LintOptions): void;
7
- export {};
@@ -5,4 +5,23 @@ export function lintConfig(_config, options = {}) {
5
5
  }
6
6
  throw new Error("Config is invalid - not implemented yet!");
7
7
  }
8
+ /*
9
+
10
+ TODO: To lint:
11
+
12
+ - url names are as expected
13
+ - stops have at least one platform (or none do)
14
+ - no duplicate stop ids, line ids, platform ids within a stop, route ids within
15
+ a line
16
+ - asset paths exist on disk
17
+ - all lines have codes (or none do)
18
+ - no duplicate routes in the same line or across different lines
19
+ - routes have at least two non-hidden stops
20
+ - line diagrams have at least one entry
21
+ - line diagrams cover every non-hidden stop on every route
22
+ - order of stops on line diagram doesn't disagree with any routes
23
+ - all lines are covered by the lines page tags, and none are covered twice
24
+ - all stops have locations (or none do)
25
+
26
+ */
8
27
  //# sourceMappingURL=lint-config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lint-config.js","sourceRoot":"","sources":["../../lint-config.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,UAAU,CAAC,OAAuB,EAAE,UAAuB,EAAE;IAC3E,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAAC;IAEnC,IAAI,IAAI,EAAE,CAAC;QACT,OAAO;IACT,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;AAC9D,CAAC"}
1
+ {"version":3,"file":"lint-config.js","sourceRoot":"","sources":["../../lint-config.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,UAAU,CAAC,OAAuB,EAAE,UAAuB,EAAE;IAC3E,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAAC;IAEnC,IAAI,IAAI,EAAE,CAAC;QACT,OAAO;IACT,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;;;;;;;;;;;;;;EAkBE"}