Skip to content

Commit 80e07a7

Browse files
chore: alphabetize imports (#147)
1 parent 4239bb2 commit 80e07a7

File tree

75 files changed

+143
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+143
-142
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
"import/order": [
1919
ERROR,
2020
{
21+
alphabetize: { caseInsensitive: true, order: "asc" },
2122
groups: ["builtin", "external", "internal", "parent", "sibling"],
2223
"newlines-between": "always",
2324
},

_official-blog-tutorial/app/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
ScrollRestoration,
1010
} from "@remix-run/react";
1111

12-
import tailwindStylesheetUrl from "./styles/tailwind.css";
1312
import { getUser } from "./session.server";
13+
import tailwindStylesheetUrl from "./styles/tailwind.css";
1414

1515
export const links: LinksFunction = () => {
1616
return [{ rel: "stylesheet", href: tailwindStylesheetUrl }];

_official-blog-tutorial/app/routes/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { json, redirect } from "@remix-run/node";
33
import { Form, Link, useActionData, useSearchParams } from "@remix-run/react";
44
import * as React from "react";
55

6-
import { createUserSession, getUserId } from "~/session.server";
76
import { verifyLogin } from "~/models/user.server";
7+
import { createUserSession, getUserId } from "~/session.server";
88
import { safeRedirect, validateEmail } from "~/utils";
99

1010
export const loader = async ({ request }: LoaderArgs) => {

_official-blog-tutorial/app/routes/notes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import type { LoaderArgs } from "@remix-run/node";
22
import { json } from "@remix-run/node";
33
import { Form, Link, NavLink, Outlet, useLoaderData } from "@remix-run/react";
44

5+
import { getNoteListItems } from "~/models/note.server";
56
import { requireUserId } from "~/session.server";
67
import { useUser } from "~/utils";
7-
import { getNoteListItems } from "~/models/note.server";
88

99
export const loader = async ({ request }: LoaderArgs) => {
1010
const userId = await requireUserId(request);

_official-blog-tutorial/cypress/support/create-user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// and it will log out the cookie value you can use to interact with the server
55
// as that new user.
66

7-
import { parse } from "cookie";
87
import { installGlobals } from "@remix-run/node";
8+
import { parse } from "cookie";
99

10-
import { createUserSession } from "~/session.server";
1110
import { createUser } from "~/models/user.server";
11+
import { createUserSession } from "~/session.server";
1212

1313
installGlobals();
1414

_official-blog-tutorial/prisma/seed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { PrismaClient } from "@prisma/client";
21
import bcrypt from "@node-rs/bcrypt";
2+
import { PrismaClient } from "@prisma/client";
33

44
const prisma = new PrismaClient();
55

_official-blog-tutorial/vitest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/// <reference types="vitest" />
21
/// <reference types="vite/client" />
2+
/// <reference types="vitest" />
33

4-
import { defineConfig } from "vite";
54
import react from "@vitejs/plugin-react";
5+
import { defineConfig } from "vite";
66
import tsconfigPaths from "vite-tsconfig-paths";
77

88
export default defineConfig({

_official-jokes/app/root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
useCatch,
99
} from "@remix-run/react";
1010

11-
import globalStylesUrl from "./styles/global.css";
12-
import globalMediumStylesUrl from "./styles/global-medium.css";
1311
import globalLargeStylesUrl from "./styles/global-large.css";
12+
import globalMediumStylesUrl from "./styles/global-medium.css";
13+
import globalStylesUrl from "./styles/global.css";
1414

1515
export const links: LinksFunction = () => {
1616
return [

_official-jokes/app/routes/jokes/$jokeId.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import type { ActionArgs, LoaderArgs, MetaFunction } from "@remix-run/node";
22
import { json, redirect } from "@remix-run/node";
33
import { useCatch, useLoaderData, useParams } from "@remix-run/react";
44

5+
import { JokeDisplay } from "~/components/joke";
56
import { db } from "~/utils/db.server";
67
import { getUserId, requireUserId } from "~/utils/session.server";
7-
import { JokeDisplay } from "~/components/joke";
88

99
export const meta: MetaFunction<typeof loader> = ({ data }) => {
1010
if (!data) {

basic/app/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import {
1212
} from "@remix-run/react";
1313
import * as React from "react";
1414

15+
import darkStylesUrl from "~/styles/dark.css";
1516
import deleteMeRemixStyles from "~/styles/demos/remix.css";
1617
import globalStylesUrl from "~/styles/global.css";
17-
import darkStylesUrl from "~/styles/dark.css";
1818

1919
/**
2020
* The `links` export is a function that returns an array of objects that map to

0 commit comments

Comments
 (0)