8000 Merge pull request #194 from junhoyeo/junhoyeo/fix-prettierrc · enggaraziz/threads-api@e15769f · GitHub
[go: up one dir, main page]

Skip to content

Commit e15769f

Browse files
authored
Merge pull request junhoyeo#194 from junhoyeo/junhoyeo/fix-prettierrc
[root] Fix .prettierrc to work inside VSCode
2 parents b91fb3a + cc8b695 commit e15769f

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

.prettierrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ module.exports = {
1313
'@/(.*)$',
1414
'^[./](.*)$',
1515
],
16-
plugins: [require('@trivago/prettier-plugin-sort-imports')],
16+
importOrderSeparation: true,
17+
importOrderSortSpecifiers: true,
1718
};

threads-api/__test__/getUserIDfromUsername.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import axios from 'axios';
2+
23
import { ThreadsAPI } from '../src/threads-api';
34

45
describe('getUserIDfromUsername', () => {

threads-api/src/cli.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { program } from 'commander';
2+
23
import { ThreadsAPI } from './threads-api';
34

45
const Threads = new ThreadsAPI();

threads-api/src/threads-api.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ import * as crypto from 'crypto';
33
import 'dotenv/config';
44
import * as mimeTypes from 'mrmime';
55
import { v4 as uuidv4 } from 'uuid';
6+
67
import {
7-
POST_URL,
8-
POST_WITH_IMAGE_URL,
9-
DEFAULT_LSD_TOKEN,
108
BASE_API_URL,
11-
LOGIN_EXPERIMENTS,
12-
SIGNATURE_KEY,
139
BASE_FOLLOW_PARAMS,
1410
BLOKS_VERSION,
15-
IG_APP_ID,
11+
DEFAULT_LSD_TOKEN,
1612
FOLLOW_NAV_CHAIN,
13+
IG_APP_ID,
14+
LOGIN_EXPERIMENTS,
15+
POST_URL,
16+
POST_WITH_IMAGE_URL,
17+
SIGNATURE_KEY,
1718
} from './constants';
1819
import { LATEST_ANDROID_APP_VERSION } from './dynamic-data';
1920
import { Extensions, Thread, ThreadsUser } from './threads-types';

threads-web-ui/app/layout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata } from 'next';
22
import { Inter } from 'next/font/google';
3+
34
import './globals.css';
45

56
const inter = Inter({ subsets: ['latin'] });

threads-web-ui/app/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { BookOpen, Star, Zap } from 'lucide-react';
2+
23
import { Globe } from '@/components/Globe';
4+
35
import './globals.css';
46

57
const getStargazersCount = async (): Promise<number> => {

0 commit comments

Comments
 (0)
0