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

chore: fix lint for updated eslint config #153

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@
"express": "^4.18.2",
"ipfs-http-client": "^56.0.0",
"multer": "^1.4.5-lts.1",
"nodemon": "^3.0.1",
"sharp": "^0.32.4",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"web3.storage": "^4.2.0"
},
"devDependencies": {
"@snapshot-labs/eslint-config": "^0.1.0-beta.9",
"@snapshot-labs/eslint-config": "https://gitpkg.now.sh/snapshot-labs/config/packages/eslint-config-base?d6d73e38e47650002cc7086ea6ea935dd95e0711",
"@snapshot-labs/prettier-config": "^0.1.0-beta.7",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.3",
Expand All @@ -47,11 +45,12 @@
"@types/sharp": "^0.32.0",
"dotenv-cli": "^7.2.1",
"eslint": "^8.45.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.2",
"nodemon": "^3.0.1",
"prettier": "^3.0.1",
"start-server-and-test": "^2.0.0",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1"
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1"
}
}
2 changes: 1 addition & 1 deletion src/aws.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as AWS from '@aws-sdk/client-s3';
import { Readable } from 'stream';
import * as AWS from '@aws-sdk/client-s3';

let client;
const region = process.env.AWS_REGION;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import 'dotenv/config';
import express from 'express';
import { initLogger, fallbackLogger } from '@snapshot-labs/snapshot-sentry';
import cors from 'cors';
import { version } from '../package.json';
import rpc from './rpc';
import upload from './upload';
import proxy from './proxy';
import { version } from '../package.json';
import initMetrics from './metrics';

const app = express();
Expand Down
2 changes: 1 addition & 1 deletion src/providers/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { timeProvidersUpload, providersUploadSize } from '../metrics';
import * as fleek from './fleek';
import * as infura from './infura';
import * as pinata from './pinata';
import * as web3Storage from './web3storage';
import * as fourEverland from './4everland';
import { timeProvidersUpload, providersUploadSize } from '../metrics';

// List of providers used for pinning images
export const IMAGE_PROVIDERS = ['fleek', 'infura', 'pinata', '4everland'];
Expand Down
2 changes: 1 addition & 1 deletion src/providers/pinata.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pinataSDK from '@pinata/sdk';
import { randomUUID } from 'crypto';
import { Readable } from 'stream';
import pinataSDK from '@pinata/sdk';

const { PINATA_API_KEY, PINATA_API_SECRET } = process.env;

Expand Down
2 changes: 1 addition & 1 deletion src/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import express from 'express';
import { capture } from '@snapshot-labs/snapshot-sentry';
import { MAX, rpcError, rpcSuccess } from './utils';
import { set as setAws } from './aws';
import uploadToProviders, { JSON_PROVIDERS } from './providers/';
import uploadToProviders, { JSON_PROVIDERS } from './providers';
import { providersInstrumentation } from './metrics';

const router = express.Router();
Expand Down
2 changes: 1 addition & 1 deletion src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import multer from 'multer';
import sharp from 'sharp';
import { capture } from '@snapshot-labs/snapshot-sentry';
import { rpcError, rpcSuccess } from './utils';
import uploadToProviders, { IMAGE_PROVIDERS } from './providers/';
import uploadToProviders, { IMAGE_PROVIDERS } from './providers';
import { providersInstrumentation } from './metrics';

const MAX_INPUT_SIZE = 1024 * 1024;
Expand Down
Loading