Skip to content

Commit 80496e1

Browse files
committed
chore: move to neostandard
1 parent 7e248a3 commit 80496e1

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

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/Eomm/mercurius-logging/actions/workflows/ci.yml/badge.svg)](https://github.com/Eomm/mercurius-logging/actions/workflows/ci.yml)
44
[![npm](https://img.shields.io/npm/v/mercurius-logging)](https://www.npmjs.com/package/mercurius-logging)
5-
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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
This plugin add a Log with all the GraphQL details you need.
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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"main": "index.js",
66
"types": "types/index.d.ts",
77
"scripts": {
8-
"lint": "standard && npm run lint:typescript",
9-
"lint:fix": "standard --fix",
10-
"lint:typescript": "standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts",
8+
"lint": "eslint",
9+
"lint:fix": "eslint --fix",
1110
"test": "tap --show-full-coverage && tsd",
1211
"test:unit": "tap --show-full-coverage",
1312
"test:types": "tsd"
@@ -37,9 +36,11 @@
3736
"@types/node": "^22.0.0",
3837
"@typescript-eslint/eslint-plugin": "^7.0.0",
3938
"@typescript-eslint/parser": "^7.0.0",
39+
"eslint": "^9.21.0",
4040
"fastify": "^5.0.0",
4141
"graphql": "^16.8.0",
4242
"mercurius": "^16.0.0",
43+
"neostandard": "^0.12.1",
4344
"split2": "^4.1.0",
4445
"standard": "^17.0.0",
4546
"tap": "^21.0.0",

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ declare namespace mercuriusLogging {
1919
export { mercuriusLogging as default }
2020
}
2121

22-
declare function plugin(...params: Parameters<MercuriusLogging>): ReturnType<MercuriusLogging>
22+
declare function plugin (...params: Parameters<MercuriusLogging>): ReturnType<MercuriusLogging>
2323
export = plugin

0 commit comments

Comments
 (0)