Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): replace standard with neostandard #195

Merged
merged 2 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/fastify/fastify-env/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fastify/fastify-env/actions/workflows/ci.yml)
[![NPM version](https://img.shields.io/npm/v/@fastify/env.svg?style=flat)](https://www.npmjs.com/package/@fastify/env)
[![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)

Fastify plugin to check environment variables

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
})
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"types": "types/index.d.ts",
"scripts": {
"coverage": "cross-env VALUE_FROM_ENV=pippo c8 --reporter=html node --test",
"lint": "standard | snazzy",
"lint:fix": "standard --fix",
"lint": "eslint",
"lint:fix": "eslint --fix",
"test": "npm run test:unit && npm run test:typescript",
"test:typescript": "tsd",
"test:unit": "c8 --100 cross-env VALUE_FROM_ENV=pippo node --test"
Expand All @@ -33,11 +33,10 @@
"devDependencies": {
"@fastify/pre-commit": "^2.1.0",
"@types/node": "^22.0.0",
"c8": "^10.1.2",
"cross-env": "^7.0.3",
"fastify": "^5.0.0",
"snazzy": "^9.0.0",
"standard": "^17.1.0",
"c8": "^10.1.2",
"neostandard": "^0.11.9",
"tsd": "^0.31.0"
},
"pre-commit": [
Expand Down
7 changes: 3 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EnvSchemaOpt } from "env-schema"
import { FastifyPluginCallback } from "fastify"
import { EnvSchemaOpt } from 'env-schema'
import { FastifyPluginCallback } from 'fastify'

declare module 'fastify' {
export interface FastifyInstance {
Expand Down Expand Up @@ -29,6 +29,5 @@ declare namespace fastifyEnv {
export { fastifyEnv as default }
}

declare function fastifyEnv(...params: Parameters<FastifyEnv>): ReturnType<FastifyEnv>
declare function fastifyEnv (...params: Parameters<FastifyEnv>): ReturnType<FastifyEnv>
export = fastifyEnv

2 changes: 1 addition & 1 deletion types/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Fastify, {FastifyInstance, FastifyRequest} from 'fastify'
import Fastify, { FastifyInstance, FastifyRequest } from 'fastify'
import { expectDeprecated, expectType } from 'tsd'
import fastifyEnv, { FastifyEnvOptions, fastifyEnvOpt } from '..'

Expand Down
Loading