Skip to content

Commit

Permalink
Warn on import order lint notice
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsilvestre committed Nov 24, 2024
1 parent 51eb003 commit 3021933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = {
rules: {
"import/no-cycle": "error",
"import/order": [
"error",
"warn",
{
alphabetize: { caseInsensitive: true, order: "asc" },
groups: ["builtin", "external", "internal", "parent", "sibling"],
Expand Down
9 changes: 4 additions & 5 deletions app/routes/curate.$courseId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useActionData, useLoaderData, useSubmit } from "@remix-run/react";
import {
ActionFunctionArgs,
LoaderFunctionArgs,
json,
} from "@remix-run/server-runtime";
import {
Fragment,
Expand Down Expand Up @@ -84,9 +83,9 @@ export const action = async ({ request }: ActionFunctionArgs) => {
},
});

return json({
return {
courseId,
});
};
};

export const loader = async ({ request, params }: LoaderFunctionArgs) => {
Expand Down Expand Up @@ -121,7 +120,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
textGroupsCount,
} = await getCurationState(courseId, page);

return json({
return {
course,
page,
seenTexts,
Expand All @@ -148,7 +147,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
},
})
.then((figures) => figures.map((f) => f.key)),
});
};
};

export default function CuratePage() {
Expand Down

0 comments on commit 3021933

Please sign in to comment.