mirror of
https://github.com/pinojs/pino.git
synced 2025-12-08 20:36:13 +00:00
chore(lint): migrate from standard to neostandard & upgrade eslint to v9 (#2316)
This commit is contained in:
parent
2b0bd9f6e4
commit
b2c1408701
@ -1,2 +0,0 @@
|
||||
pino.d.ts
|
||||
test/types/pino.test-d.ts
|
||||
19
eslint.config.js
Normal file
19
eslint.config.js
Normal file
@ -0,0 +1,19 @@
|
||||
'use strict'
|
||||
|
||||
const { defineConfig, globalIgnores } = require('eslint/config')
|
||||
const neostandard = require('neostandard')
|
||||
|
||||
module.exports = defineConfig([
|
||||
neostandard({}),
|
||||
globalIgnores([
|
||||
'pino.d.ts',
|
||||
'test/types/pino.test-d.ts',
|
||||
'test/fixtures/syntax-error-esm.mjs',
|
||||
'test/fixtures/ts/*cjs',
|
||||
]),
|
||||
{
|
||||
rules: {
|
||||
'no-var': 'off',
|
||||
},
|
||||
},
|
||||
])
|
||||
@ -204,7 +204,6 @@ function _asJson (obj, msg, num, time) {
|
||||
case 'function':
|
||||
break
|
||||
case 'number':
|
||||
/* eslint no-fallthrough: "off" */
|
||||
if (Number.isFinite(value) === false) {
|
||||
value = null
|
||||
}
|
||||
|
||||
@ -71,8 +71,7 @@
|
||||
"bunyan": "^1.8.14",
|
||||
"debug": "^4.3.4",
|
||||
"docsify-cli": "^4.4.4",
|
||||
"eslint": "^8.17.0",
|
||||
"eslint-config-standard": "^17.0.0",
|
||||
"eslint": "^9.37.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-n": "15.7.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
@ -85,6 +84,7 @@
|
||||
"log": "^6.0.0",
|
||||
"loglevel": "^1.6.7",
|
||||
"midnight-smoker": "1.1.1",
|
||||
"neostandard": "^0.12.2",
|
||||
"pino-pretty": "^13.0.0",
|
||||
"pre-commit": "^1.2.2",
|
||||
"proxyquire": "^2.1.3",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user