Skip to content

Commit

Permalink
chore: move to neostandard (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm authored Mar 1, 2025
1 parent 7e248a3 commit beb7c08
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![ci](https://github.com/Eomm/mercurius-logging/actions/workflows/ci.yml/badge.svg)](https://github.com/Eomm/mercurius-logging/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/mercurius-logging)](https://www.npmjs.com/package/mercurius-logging)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)

This plugin add a Log with all the GraphQL details you need.

Expand Down
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict'

module.exports = require('neostandard')({
ignores: require('neostandard').resolveIgnoresFromGitignore(),
ts: true,
})
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"main": "index.js",
"types": "types/index.d.ts",
"scripts": {
"lint": "standard && npm run lint:typescript",
"lint:fix": "standard --fix",
"lint:typescript": "standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts",
"lint": "eslint",
"lint:fix": "eslint --fix",
"test": "tap --show-full-coverage && tsd",
"test:unit": "tap --show-full-coverage",
"test:types": "tsd"
Expand All @@ -34,12 +33,11 @@
},
"homepage": "https://github.com/Eomm/mercurius-logging#readme",
"devDependencies": {
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^9.21.0",
"fastify": "^5.0.0",
"graphql": "^16.8.0",
"mercurius": "^16.0.0",
"neostandard": "^0.12.1",
"split2": "^4.1.0",
"standard": "^17.0.0",
"tap": "^21.0.0",
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ declare namespace mercuriusLogging {
export { mercuriusLogging as default }
}

declare function plugin(...params: Parameters<MercuriusLogging>): ReturnType<MercuriusLogging>
declare function plugin (...params: Parameters<MercuriusLogging>): ReturnType<MercuriusLogging>
export = plugin

0 comments on commit beb7c08

Please sign in to comment.