-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- convert project to ESM - use Remix Vite plugin - use TS Project References feature so that the entire project works both in VS Code and that it can be type checked with a single tsc call - use Lefthook for defining git hooks, fixing staged files and defining custom commands - use SVG sprites instead of icon packages - craft our own ESLint config instead of using Remix config, this approach is recommended by the Remix team in their new templates - handle all MDX via Vite instead of custom scripts, taking advantage of the module system and Vite's glob import feature - implement Utterances ourselves to work the way we want, based on utterances-react-component - convert Cloudinary esbuild plugin to a Vite plugin - load Metronome via its Vite plugin - use native Date over date-fns - check code formatting on CI - use Vite's ?raw import for inlining contents of redirects file - prefer throwing redirects instead of returning them for easier TypeScript serialization
- Loading branch information
Showing
78 changed files
with
9,285 additions
and
10,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
node_modules | ||
*.log | ||
.DS_Store | ||
.env | ||
|
||
.env*.local | ||
|
||
/.cache | ||
/build | ||
/public/build | ||
/app/posts | ||
|
||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CLOUDINARY_URL= | ||
SESSION_SECRET= | ||
GH_TOKEN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
node_modules | ||
|
||
/.cache | ||
/build | ||
|
||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache | ||
|
||
!.server | ||
!.client | ||
|
||
!.prettierrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** @type {import('@types/eslint').Linter.BaseConfig} */ | ||
module.exports = { | ||
root: true, | ||
reportUnusedDisableDirectives: true, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
extends: ['eslint:recommended'], | ||
rules: { | ||
'no-var': 'error', | ||
'prefer-const': 'error', | ||
'no-warning-comments': 'warn', | ||
'no-use-before-define': ['error', { functions: false }], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['.eslintrc.cjs'], | ||
env: { node: true }, | ||
}, | ||
{ | ||
files: ['*.{ts,tsx}'], | ||
extends: ['plugin:@typescript-eslint/recommended'], | ||
parserOptions: { | ||
project: ['./tsconfig.app.json', './integration/tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
rules: { | ||
'no-use-before-define': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
'@typescript-eslint/no-floating-promises': 'error', | ||
}, | ||
}, | ||
{ | ||
files: ['*.tsx'], | ||
extends: [ | ||
'plugin:react/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:jsx-a11y/recommended', | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
rules: { | ||
'react/react-in-jsx-scope': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['*.{test,spec}.{ts,tsx}'], | ||
extends: ['plugin:testing-library/react'], | ||
}, | ||
{ | ||
files: './integration/**/*.spec.ts', | ||
rules: { | ||
'testing-library/prefer-screen-queries': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*'], | ||
extends: ['prettier'], | ||
}, | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.