Skip to content

Commit 8568017

Browse files
authored
build(deps-dev): replace standard with neostandard (#138)
1 parent f6de165 commit 8568017

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![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)
44
[![NPM version](https://img.shields.io/npm/v/@fastify/error.svg?style=flat)](https://www.npmjs.com/package/@fastify/error)
5-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
5+
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)
66

77
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
88

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict'
2+
3+
module.exports = require('neostandard')({
4+
ignores: require('neostandard').resolveIgnoresFromGitignore(),
5+
ts: true
6+
})

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"type": "commonjs",
77
"types": "types/index.d.ts",
88
"scripts": {
9-
"lint": "standard",
10-
"lint:fix": "standard --fix",
9+
"lint": "eslint",
10+
"lint:fix": "eslint --fix",
1111
"test": "npm run test:unit && npm run test:typescript",
1212
"test:unit": "c8 --100 node --test",
1313
"test:typescript": "tsd"
@@ -31,7 +31,7 @@
3131
"devDependencies": {
3232
"benchmark": "^2.1.4",
3333
"c8": "^10.1.2",
34-
"standard": "^17.1.0",
34+
"neostandard": "^0.11.9",
3535
"tsd": "^0.31.0"
3636
},
3737
"tsd": {

types/index.test-d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ expectError(new CustomTypedArgError6('a', 'b', 'c'))
6666
CustomTypedArgError6('a', 'b', 'c', 'd')
6767
expectError(new CustomTypedArgError6('a', 'b', 'c', 'd', 'e'))
6868

69-
7069
const CustomErrorWithErrorConstructor = createError('ERROR_CODE', 'message', 500, TypeError)
7170
expectType<FastifyErrorConstructor<{ code: 'ERROR_CODE', statusCode: 500 }>>(CustomErrorWithErrorConstructor)
72-
CustomErrorWithErrorConstructor({cause: new Error('Error')})
71+
CustomErrorWithErrorConstructor({ cause: new Error('Error') })

0 commit comments

Comments
 (0)