8000 [root] Enable `importOrderSeparation` and `importOrderSortSpecifiers`… · enggaraziz/threads-api@cc8b695 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc8b695

Browse files
committed
[root] Enable importOrderSeparation and importOrderSortSpecifiers, Format files
1 parent 415e622 commit cc8b695

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

.prettierrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ module.exports = {
1313
'@/(.*)$',
1414
'^[./](.*)$',
1515
],
16+
importOrderSeparation: true,
17+
importOrderSortSpecifiers: true,
1618
};

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