From be6e4c1bc693b0d6f6bf53ff7bed5909e9c6c39b Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 8 Dec 2024 10:45:29 +0000 Subject: [PATCH] build(deps-dev): replace standard with neostandard --- package.json | 6 +++--- types/FluentJSONSchema.d.ts | 5 ++--- types/FluentJSONSchema.test-d.ts | 16 ++++++++-------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 6f6463f..7fd7513 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "url": "git+https://github.com/fastify/fluent-json-schema.git" }, "scripts": { - "lint": "standard | snazzy", + "lint": "eslint", + "lint:fix": "eslint --fix", "test": "npm run test:unit && npm run test:typescript", "test:unit": "c8 --100 node --test", "test:typescript": "tsd", @@ -41,8 +42,7 @@ "c8": "^10.1.2", "jsdoc-to-markdown": "^9.0.0", "lodash.merge": "^4.6.2", - "snazzy": "^9.0.0", - "standard": "^17.1.0", + "neostandard": "^0.11.9", "tsd": "^0.31.0" }, "dependencies": { diff --git a/types/FluentJSONSchema.d.ts b/types/FluentJSONSchema.d.ts index 58473d6..9cc7ad2 100644 --- a/types/FluentJSONSchema.d.ts +++ b/types/FluentJSONSchema.d.ts @@ -147,7 +147,6 @@ export type MixedSchema = ? InferSchemaMap[First] & MixedSchema : unknown - interface PatternPropertiesOptions { [key: string]: JSONSchema } @@ -162,9 +161,9 @@ type DependentSchemaOptions>> = Par type DependentRequiredOptions>> = Partial> -export function withOptions(options: SchemaOptions): T +export function withOptions (options: SchemaOptions): T -type ObjectPlaceholder = Record; +type ObjectPlaceholder = Record export interface S extends BaseSchema { string: () => StringSchema diff --git a/types/FluentJSONSchema.test-d.ts b/types/FluentJSONSchema.test-d.ts index e8fec27..9a18a1f 100644 --- a/types/FluentJSONSchema.test-d.ts +++ b/types/FluentJSONSchema.test-d.ts @@ -138,10 +138,10 @@ const dependentSchemas = S.object() console.log('dependentRequired:\n', JSON.stringify(dependentSchemas)) -const deprecatedSchema = S.object() - .deprecated() - .prop('foo', S.string().deprecated()) - .valueOf() +const deprecatedSchema = S.object() + .deprecated() + .prop('foo', S.string().deprecated()) + .valueOf() console.log('deprecatedSchema:\n', JSON.stringify(deprecatedSchema)) @@ -169,10 +169,10 @@ const dependentSchemasWithType = S.object() console.log('dependentSchemasWithType:\n', JSON.stringify(dependentSchemasWithType)) -const deprecatedSchemaWithType = S.object() - .deprecated() - .prop('foo', S.string().deprecated()) - .valueOf() +const deprecatedSchemaWithType = S.object() + .deprecated() + .prop('foo', S.string().deprecated()) + .valueOf() console.log('deprecatedSchemaWithType:\n', JSON.stringify(deprecatedSchemaWithType))