chore: update project dependencies and configuration

- Migrated ESLint configuration from Next.js to SolidJS
- Removed React-specific ESLint plugins
- Updated Turbo configuration with global dependencies
- Simplified Prisma scripts in API package
- Added shared ESLint and TypeScript configs to web and API packages
- Cleaned up unnecessary dependencies and configurations
This commit is contained in:
Juan Sebastián Montoya 2025-03-06 18:59:11 -05:00
parent 19bb0b5bdf
commit a3700a0068
16 changed files with 130 additions and 1948 deletions

View file

@ -1,27 +1,27 @@
import type { PlopTypes } from "@turbo/gen";
import type { PlopTypes } from '@turbo/gen';
// Learn more about Turborepo Generators at https://turbo.build/repo/docs/core-concepts/monorepos/code-generation
export default function generator(plop: PlopTypes.NodePlopAPI): void {
// A simple generator to add a new React component to the internal UI library
plop.setGenerator("react-component", {
description: "Adds a new react component",
plop.setGenerator('solid-component', {
description: 'Adds a new solid component',
prompts: [
{
type: "input",
name: "name",
message: "What is the name of the component?",
type: 'input',
name: 'name',
message: 'What is the name of the component?',
},
],
actions: [
{
type: "add",
path: "src/{{kebabCase name}}.tsx",
templateFile: "templates/component.hbs",
type: 'add',
path: 'src/{{kebabCase name}}.tsx',
templateFile: 'templates/component.hbs',
},
{
type: "append",
path: "package.json",
type: 'append',
path: 'package.json',
pattern: /"exports": {(?<insertion>)/g,
template: ' "./{{kebabCase name}}": "./src/{{kebabCase name}}.tsx",',
},

View file

@ -1,4 +1,4 @@
export const {{ pascalCase name }} = ({ children }: { children: React.ReactNode }) => {
export const {{ pascalCase name }} = ({ children }: { children: JSX.Element }) => {
return (
<div>
<h1>{{ pascalCase name }} Component</h1>