@planning-inspectorate/data-model 2.51.0 → 2.51.1

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.
Files changed (39) hide show
  1. package/commitlint.config.js +3 -8
  2. package/docs/address.md +1 -1
  3. package/eslint.config.js +3 -20
  4. package/load-test/appeals/generate-appeals-messages.js +1 -1
  5. package/load-test/appeals/run-load-script.js +2 -2
  6. package/load-test/service-bus-client.js +1 -1
  7. package/package.json +5 -2
  8. package/pins_data_model/models/model_address.py +1 -1
  9. package/prettier.config.js +13 -0
  10. package/schemas/address.schema.json +1 -1
  11. package/src/index.cjs +1 -1
  12. package/src/lib/gen-docs.js +1 -1
  13. package/src/lib/gen-enum-impl.test.js +1 -1
  14. package/src/lib/gen-enums.js +1 -1
  15. package/src/lib/gen-types.js +2 -2
  16. package/src/lib/load.js +1 -1
  17. package/src/schemas.d.ts +28 -1
  18. package/tests/appeals/appeal-event.test.js +2 -2
  19. package/tests/appeals/appeal-has.test.js +2 -2
  20. package/tests/appeals/appeal-s78.test.js +2 -2
  21. package/tests/appeals/commands/adverts-questionnaire.test.js +2 -2
  22. package/tests/appeals/commands/adverts-submission.test.js +2 -2
  23. package/tests/appeals/commands/appeal-representation-submission.test.js +2 -2
  24. package/tests/appeals/commands/cas-adverts-questionnaire.test.js +2 -2
  25. package/tests/appeals/commands/cas-adverts-submission.test.js +2 -2
  26. package/tests/appeals/commands/enforcement-listed-questionnaire.test.js +2 -2
  27. package/tests/appeals/commands/enforcement-listed-submission.test.js +2 -2
  28. package/tests/appeals/commands/enforcement-notice-submission.test.js +2 -2
  29. package/tests/appeals/commands/enforcement-questionnaire.test.js +2 -2
  30. package/tests/appeals/commands/has-questionnaire.test.js +2 -2
  31. package/tests/appeals/commands/has-submission.test.js +2 -2
  32. package/tests/appeals/commands/ldc-questionnaire.test.js +2 -2
  33. package/tests/appeals/commands/ldc-submission.test.js +2 -2
  34. package/tests/appeals/commands/s20-questionnaire.test.js +2 -2
  35. package/tests/appeals/commands/s78-questionnaire.test.js +2 -2
  36. package/tests/appeals/commands/s78-submission.test.js +2 -2
  37. package/tests/appeals/expedited-appeals.test.js +2 -2
  38. package/tests/schemas.test.js +1 -1
  39. package/.prettierrc +0 -19
@@ -1,8 +1,3 @@
1
- export default {
2
- extends: ['@commitlint/config-conventional'],
3
- // ignore commits from dependabot
4
- ignores: [
5
- (commit) =>
6
- (commit.startsWith('chore(deps)') || commit.startsWith('chore(deps-dev)')) && commit.includes('dependabot')
7
- ]
8
- };
1
+ import { commitlintConfig } from '@planning-inspectorate/coding-standards';
2
+
3
+ export default commitlintConfig;
package/docs/address.md CHANGED
@@ -327,7 +327,7 @@ Some sites may have a postcode, but do not have postal addresses.
327
327
 
328
328
  ## UPRN
329
329
 
330
- The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location—e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator—in Great Britain.
330
+ The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location - e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator - in Great Britain.
331
331
 
332
332
  `UPRN`
333
333
 
package/eslint.config.js CHANGED
@@ -1,21 +1,4 @@
1
- import js from '@eslint/js';
2
- import eslintConfigPrettier from 'eslint-config-prettier';
3
- import globals from 'globals';
1
+ import { eslintConfig } from '@planning-inspectorate/coding-standards';
2
+ import { defineConfig } from 'eslint/config';
4
3
 
5
- export default [
6
- {
7
- ...js.configs.recommended,
8
- ignores: ['**/*.cjs', 'node_modules/**']
9
- },
10
- {
11
- ignores: ['node_modules/**', '**/*.cjs'],
12
- languageOptions: {
13
- ecmaVersion: 2025,
14
- sourceType: 'module',
15
- globals: {
16
- ...globals.node
17
- }
18
- }
19
- },
20
- eslintConfigPrettier
21
- ];
4
+ export default defineConfig(eslintConfig);
@@ -1,6 +1,6 @@
1
- import crypto from 'node:crypto';
2
1
  import Ajv from 'ajv';
3
2
  import addFormats from 'ajv-formats';
3
+ import crypto from 'node:crypto';
4
4
  import { loadAllSchemasSync } from '../../src/index.js';
5
5
 
6
6
  const HAS_SCHEMA = 'appeal-has.schema.json';
@@ -1,6 +1,6 @@
1
- import { generateAppealsLoadTestMessages } from './generate-appeals-messages.js';
2
- import { ServiceBusEventClient } from '../service-bus-client.js';
3
1
  import { MESSAGE_EVENT_TYPE } from '../../src/enums.js';
2
+ import { ServiceBusEventClient } from '../service-bus-client.js';
3
+ import { generateAppealsLoadTestMessages } from './generate-appeals-messages.js';
4
4
 
5
5
  /** @type {'HAS'|'S78'} */ //@ts-ignore
6
6
  const caseType = process.env.APPEALS_LOAD_TEST_CASE_TYPE || 'HAS'; // 'HAS' or 'S78'
@@ -1,5 +1,5 @@
1
- import { ServiceBusClient } from '@azure/service-bus';
2
1
  import { DefaultAzureCredential } from '@azure/identity';
2
+ import { ServiceBusClient } from '@azure/service-bus';
3
3
 
4
4
  /**
5
5
  * @typedef {object} ServiceBusEventClientOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planning-inspectorate/data-model",
3
- "version": "2.51.0",
3
+ "version": "2.51.1",
4
4
  "description": "JSON Schemas for the Planning Inspectorate's Data Model",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -36,6 +36,7 @@
36
36
  "@commitlint/cli": "^21.0.0",
37
37
  "@commitlint/config-conventional": "^21.0.0",
38
38
  "@eslint/js": "^10.0.1",
39
+ "@planning-inspectorate/coding-standards": "^1.1.1",
39
40
  "ajv": "^8.17.1",
40
41
  "ajv-formats": "^3.0.1",
41
42
  "conventional-changelog-conventionalcommits": "^10.2.0",
@@ -43,10 +44,12 @@
43
44
  "eslint-config-prettier": "^10.1.5",
44
45
  "globals": "^17.3.0",
45
46
  "husky": "^9.1.7",
46
- "json-schema-to-typescript": "^15.0.4",
47
+ "json-schema-to-typescript": "^16.0.0",
47
48
  "lint-staged": "^17.0.4",
48
49
  "lodash.snakecase": "^4.1.1",
49
50
  "prettier": "^3.6.2",
51
+ "prettier-plugin-organize-imports": "^4.3.0",
52
+ "prettier-plugin-prisma": "^5.0.0",
50
53
  "rollup": "^4.44.2",
51
54
  "semantic-release": "^25.0.1"
52
55
  },
@@ -64,6 +64,6 @@ class PinsAddressSchema(BaseModel):
64
64
  longitudeWGS84: float | None = Field(None, examples=[-2.6019821])
65
65
  UPRN: str | None = Field(None, examples=[100023336956])
66
66
  """
67
- The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location—e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator—in Great Britain.
67
+ The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location - e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator - in Great Britain.
68
68
  """
69
69
  dependentRequired: Any | None = None
@@ -0,0 +1,13 @@
1
+ import { prettierConfig } from '@planning-inspectorate/coding-standards';
2
+
3
+ export default {
4
+ ...prettierConfig,
5
+ overrides: [
6
+ {
7
+ files: '*.json',
8
+ options: {
9
+ useTabs: false
10
+ }
11
+ }
12
+ ]
13
+ };
@@ -75,7 +75,7 @@
75
75
  "UPRN": {
76
76
  "type": ["string", "null"],
77
77
  "example": 100023336956,
78
- "description": "The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location—e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator—in Great Britain."
78
+ "description": "The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location - e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator - in Great Britain."
79
79
  },
80
80
  "dependentRequired": {
81
81
  "easting": ["northing"],
package/src/index.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  var path = require('path');
4
4
  var url = require('url');
5
- var promises = require('fs/promises');
6
5
  var fs = require('fs');
6
+ var promises = require('fs/promises');
7
7
  var jsoncParser = require('jsonc-parser');
8
8
 
9
9
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
@@ -1,6 +1,6 @@
1
1
  import { jsonschema2md } from '@adobe/jsonschema2md';
2
- import { loadAllSchemas } from '../index.js';
3
2
  import fs from 'fs/promises';
3
+ import { loadAllSchemas } from '../index.js';
4
4
 
5
5
  /**
6
6
  * @typedef {import('@adobe/jsonschema2md').SchemaFiles} SchemaFiles
@@ -1,6 +1,6 @@
1
+ import assert from 'node:assert';
1
2
  import { describe, it } from 'node:test';
2
3
  import { collectEnumProps, generateConstants, generateEnumMap } from './gen-enum-impl.js';
3
- import assert from 'node:assert';
4
4
 
5
5
  describe('gen-enum-impl', () => {
6
6
  describe('generateConstants', () => {
@@ -1,8 +1,8 @@
1
1
  import fs from 'fs/promises';
2
2
  import path from 'path';
3
3
  import { loadAllSchemas } from '../index.js';
4
- import { loadSchema } from './load.js';
5
4
  import { collectEnumProps, generateConstants, generateEnumMap } from './gen-enum-impl.js';
5
+ import { loadSchema } from './load.js';
6
6
 
7
7
  const __dirname = import.meta.dirname;
8
8
 
@@ -1,9 +1,9 @@
1
1
  import fs from 'fs/promises';
2
+ import { compile } from 'json-schema-to-typescript';
3
+ import { generateName } from 'json-schema-to-typescript/dist/src/utils.js';
2
4
  import path from 'path';
3
5
  import url from 'url';
4
6
  import { commandsPath, loadAllSchemas, schemasPath } from '../index.js';
5
- import { compile } from 'json-schema-to-typescript';
6
- import { generateName } from 'json-schema-to-typescript/dist/src/utils.js';
7
7
 
8
8
  const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
9
9
 
package/src/lib/load.js CHANGED
@@ -1,5 +1,5 @@
1
- import { readFile, readdir } from 'fs/promises';
2
1
  import { readFileSync, readdirSync } from 'fs';
2
+ import { readFile, readdir } from 'fs/promises';
3
3
  import { parse } from 'jsonc-parser';
4
4
  import path from 'path';
5
5
 
package/src/schemas.d.ts CHANGED
@@ -44,7 +44,7 @@ export interface PINSAddressSchema {
44
44
  latitudeWGS84?: number | null;
45
45
  longitudeWGS84?: number | null;
46
46
  /**
47
- * The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location—e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator—in Great Britain.
47
+ * The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location - e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator - in Great Britain.
48
48
  */
49
49
  UPRN?: string | null;
50
50
  dependentRequired?: {
@@ -3290,6 +3290,9 @@ export interface NSIPProject {
3290
3290
  * PINS Project email address pubished on website
3291
3291
  */
3292
3292
  projectEmailAddress: string | null;
3293
+ /**
3294
+ * Items: Geographical region of UK. Applications can cover multiple regions.
3295
+ */
3293
3296
  regions: (
3294
3297
  | 'east_midlands'
3295
3298
  | 'eastern'
@@ -3475,12 +3478,21 @@ export interface NSIPProject {
3475
3478
  * Maps to [Employee].[EmployeeID]
3476
3479
  */
3477
3480
  caseManagerId: string | null;
3481
+ /**
3482
+ * Items: Maps to [Employee].[EmployeeID].
3483
+ */
3478
3484
  nsipOfficerIds: string[];
3485
+ /**
3486
+ * Items: Maps to [Employee].[EmployeeID].
3487
+ */
3479
3488
  nsipAdministrationOfficerIds: string[];
3480
3489
  /**
3481
3490
  * Maps to [Employee].[EmployeeID]
3482
3491
  */
3483
3492
  leadInspectorId: string | null;
3493
+ /**
3494
+ * Items: Maps to [Employee].[EmployeeID]
3495
+ */
3484
3496
  inspectorIds: string[];
3485
3497
  /**
3486
3498
  * Maps to [Employee].[EmployeeID]
@@ -3696,26 +3708,38 @@ export interface NSIPProject {
3696
3708
  estimatedPrelimMeetingDate?: string | null;
3697
3709
  /**
3698
3710
  * Maps to [Employee].[EmployeeID].
3711
+ *
3712
+ * Items: Maps to [Employee].[EmployeeID].
3699
3713
  */
3700
3714
  operationsLeadIds?: string[];
3701
3715
  /**
3702
3716
  * New NSIP role, Maps to [Employee].[EmployeeID]
3717
+ *
3718
+ * Items: Maps to [Employee].[EmployeeID].
3703
3719
  */
3704
3720
  operationsManagerIds?: string[];
3705
3721
  /**
3706
3722
  * Maps to [Employee].[EmployeeID].
3723
+ *
3724
+ * Items: Maps to [Employee].[EmployeeID].
3707
3725
  */
3708
3726
  caseManagerIds?: string[];
3709
3727
  /**
3710
3728
  * Maps to [Employee].[EmployeeID].
3729
+ *
3730
+ * Items: Maps to [Employee].[EmployeeID].
3711
3731
  */
3712
3732
  leadInspectorIds?: string[];
3713
3733
  /**
3714
3734
  * Maps to [Employee].[EmployeeID].
3735
+ *
3736
+ * Items: Maps to [Employee].[EmployeeID].
3715
3737
  */
3716
3738
  environmentalServicesOfficerIds?: string[];
3717
3739
  /**
3718
3740
  * Maps to [Employee].[EmployeeID].
3741
+ *
3742
+ * Items: Maps to [Employee].[EmployeeID].
3719
3743
  */
3720
3744
  legalOfficerIds?: string[];
3721
3745
  /**
@@ -4098,6 +4122,9 @@ export interface S51Advice {
4098
4122
  adviceDetailsWelsh?: string | null;
4099
4123
  status: 'checked' | 'unchecked' | 'readytopublish' | 'published' | 'donotpublish' | null;
4100
4124
  redactionStatus: 'unredacted' | 'redacted' | null;
4125
+ /**
4126
+ * Items: Collection of document IDs which are related to the S51 Advice
4127
+ */
4101
4128
  attachmentIds: string[];
4102
4129
  [k: string]: unknown;
4103
4130
  }
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-event.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-has.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-s78.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'commands/appeal-representation-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-s78.schema.json';
@@ -1,6 +1,6 @@
1
- import { describe, it } from 'node:test';
2
1
  import Ajv from 'ajv';
3
2
  import addFormats from 'ajv-formats';
3
+ import { describe, it } from 'node:test';
4
4
  import { loadAllSchemasSync } from '../src/index.js';
5
5
 
6
6
  describe('schemas', () => {
package/.prettierrc DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "printWidth": 120,
3
- "tabWidth": 2,
4
- "singleQuote": true,
5
- "useTabs": true,
6
- "semi": true,
7
- "trailingComma": "none",
8
- "bracketSpacing": true,
9
- "arrowParens": "always",
10
- "plugins": [],
11
- "overrides": [
12
- {
13
- "files": "*.json",
14
- "options": {
15
- "useTabs": false
16
- }
17
- }
18
- ]
19
- }