Skip to content

Commit

Permalink
Require vs import due to file location
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Sep 20, 2024
1 parent d7599c3 commit e66710b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rest-api/src/swagger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import swaggerJsdoc from 'swagger-jsdoc'

import { version } from '../package.json'
const packageJson = require('../package.json')

Check failure on line 3 in packages/rest-api/src/swagger.ts

View workflow job for this annotation

GitHub Actions / lint

Require statement not part of import statement

Check failure on line 3 in packages/rest-api/src/swagger.ts

View workflow job for this annotation

GitHub Actions / lint

Require statement not part of import statement

const isDevelopment = process.env.NODE_ENV === 'development'
const serverUrl = isDevelopment
Expand All @@ -12,7 +12,7 @@ const options: swaggerJsdoc.Options = {
openapi: '3.0.0',
info: {
title: 'Syanpse Protocol REST API',
version,
version: packageJson.version,
description: 'API documentation for the Synapse Protocol REST API',
},
servers: [
Expand Down

0 comments on commit e66710b

Please sign in to comment.