diff --git a/README.md b/README.md index 4759045..cd262ca 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![CI](https://github.com/fastify/fastify-error/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fastify/fastify-error/actions/workflows/ci.yml) [![NPM version](https://img.shields.io/npm/v/@fastify/error.svg?style=flat)](https://www.npmjs.com/package/@fastify/error) -[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) +[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard) A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins. diff --git a/package.json b/package.json index fe10df5..d8e9194 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "type": "commonjs", "types": "types/index.d.ts", "scripts": { - "lint": "standard", - "lint:fix": "standard --fix", + "lint": "eslint", + "lint:fix": "eslint --fix", "test": "npm run test:unit && npm run test:typescript", "test:unit": "c8 --100 node --test", "test:typescript": "tsd" @@ -31,7 +31,7 @@ "devDependencies": { "benchmark": "^2.1.4", "c8": "^10.1.2", - "standard": "^17.1.0", + "neostandard": "^0.11.9", "tsd": "^0.31.0" }, "tsd": { diff --git a/types/index.test-d.ts b/types/index.test-d.ts index cf5ea56..900ce81 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -66,7 +66,6 @@ expectError(new CustomTypedArgError6('a', 'b', 'c')) CustomTypedArgError6('a', 'b', 'c', 'd') expectError(new CustomTypedArgError6('a', 'b', 'c', 'd', 'e')) - const CustomErrorWithErrorConstructor = createError('ERROR_CODE', 'message', 500, TypeError) expectType>(CustomErrorWithErrorConstructor) -CustomErrorWithErrorConstructor({cause: new Error('Error')}) \ No newline at end of file +CustomErrorWithErrorConstructor({ cause: new Error('Error') })