Skip to content

Commit

Permalink
Fix the Quickstart and updated the tooling
Browse files Browse the repository at this point in the history
- Added Prettier
- Upgraded ESLint to v9
- Improved the TypeScript configuration while keeping some of the old config too
- Fixed the QS by adding routes which is in the .env.sample so the code now reflects that
- Changed the lockfile to pnpm
  • Loading branch information
JacobMGEvans committed Jul 17, 2024
1 parent ab1f5e1 commit 1cc9777
Show file tree
Hide file tree
Showing 11 changed files with 7,351 additions and 12,646 deletions.
83 changes: 0 additions & 83 deletions .eslintrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pnpm-lock.yaml
node_modules
dist
README.md
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 80
}
12 changes: 5 additions & 7 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
UserButton,
SignInButton,
SignUpButton,
} from "@clerk/remix";
} from '@clerk/remix';

export default function Index() {
return (
Expand All @@ -23,12 +23,10 @@ export default function Index() {
</SignedIn>
<SignedOut>
<p>You are signed out</p>
<div>
<SignInButton />
</div>
<div>
<SignUpButton />
</div>

<SignInButton />

<SignUpButton />
</SignedOut>
</div>
);
Expand Down
9 changes: 9 additions & 0 deletions app/routes/sign-in.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { SignIn } from '@clerk/remix';

export default function SignInRoute() {
return (
<>
<SignIn />
</>
);
}
9 changes: 9 additions & 0 deletions app/routes/sign-up.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { SignUp } from '@clerk/remix';

export default function SignUpRoute() {
return (
<>
<SignUp />
</>
);
}
28 changes: 28 additions & 0 deletions eslintrc.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js';
import { fixupConfigRules } from '@eslint/compat';

export default [
{ files: ['**/*.{mjs,ts,jsx,tsx}'] },
{ languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...fixupConfigRules(pluginReactConfig),
{
settings: {
react: {
version: 'detect',
pragma: 'React',
pragmaFrag: 'React.Fragment',
},
},
},
{
rules: {
'react/react-in-jsx-scope': 'off',
},
},
];
Loading

0 comments on commit 1cc9777

Please sign in to comment.