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
import path from 'path'; | |
import { fileURLToPath } from 'url'; | |
import comments from '@eslint-community/eslint-plugin-eslint-comments/configs'; | |
import { FlatCompat } from '@eslint/eslintrc'; | |
import js from '@eslint/js'; | |
import nextPlugin from '@next/eslint-plugin-next'; | |
import eslintConfigPrettier from 'eslint-config-prettier'; | |
import hooksPlugin from 'eslint-plugin-react-hooks'; | |
import reactRecommended from 'eslint-plugin-react/configs/recommended.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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
@layer base { | |
* { | |
@apply border-border; | |
} | |
body, |
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
[ | |
{ | |
"command": "vscode-neovim.compositeEscape1", | |
"key": "j", | |
"when": "neovim.mode == insert && editorTextFocus", | |
"args": "j" | |
}, | |
{ | |
"command": "vscode-neovim.compositeEscape2", | |
"key": "k", |
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
" packadd quickscope | |
" execute 'luafile ' . stdpath('config') . '/lua/settings.lua' | |
function! s:manageEditorSize(...) | |
let count = a:1 | |
let to = a:2 | |
for i in range(1, count ? count : 1) | |
call VSCodeNotify(to == 'increase' ? 'workbench.action.increaseViewSize' : 'workbench.action.decreaseViewSize') | |
endfor | |
endfunction |
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
{ | |
// open json editor for settings | |
"workbench.settings.editor": "json", | |
// Theme | |
"workbench.colorTheme": "Aura Dark", | |
"workbench.iconTheme": "moxer-icons", | |
// Change font | |
"editor.fontFamily": "Geist Mono", |
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
{ | |
"workbench.startupEditor": "none", | |
"workbench.iconTheme": "moxer-icons", | |
"workbench.colorTheme": "Aura Dark", | |
"workbench.settings.editor": "json", | |
"breadcrumbs.enabled": false, | |
"explorer.compactFolders": false, | |
"editor.wordWrap": "bounded", | |
"editor.tabSize": 2, | |
"editor.inlineSuggest.enabled": true, |
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
import fs from 'fs'; | |
import path from 'path'; | |
import { defineConfig } from 'tsup'; | |
// INFO: This is the only place you need to update when adding new entry folders | |
const entryFolders = ['primitives', 'ui']; | |
function getAllFilesInDirectory(dirPath: string): string[] { | |
return fs.readdirSync(dirPath).reduce<string[]>((allFiles, file) => { |
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
import { AnimatePresence, motion } from "framer-motion"; | |
import { PropsWithChildren } from "react"; | |
import useResizeObserver from "use-resize-observer"; | |
const ignoreCircularReferences = () => { | |
const seen = new WeakSet(); | |
return (key: string, value: Record<string, unknown>) => { | |
if (key.startsWith("_")) return; | |
if (typeof value === "object" && value !== null) { | |
if (seen.has(value)) return; |
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
import * as dotenv from 'dotenv' | |
import * as fs from 'fs' | |
export class ConfigService { | |
private readonly envConfig: { [key: string]: string } | |
constructor(mode: 'development' | 'production') { | |
this.envConfig = dotenv.parse(fs.readFileSync(`${mode}.env`)) | |
} |
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
export type TConfigMode = 'development' | 'production' |
NewerOlder