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))