This file contains hidden or 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
#!/usr/bin/env node | |
console.log('yay gist') |
This file contains hidden or 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
(async () => { | |
// code | |
})(); |
This file contains hidden or 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
overscroll-b: overscroll-y | |
overscroll-i: overscroll-x | |
bs: height | |
is: width | |
min-bs: min-height | |
min-is: min-width | |
max-bs: max-height | |
max-is: max-width | |
mlb: my | |
mli: mx |
This file contains hidden or 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 SwaggerParser from '@apidevtools/swagger-parser'; | |
import { ESLint } from 'eslint'; | |
import { promises as fs } from 'fs'; | |
import camelCase from 'lodash/camelCase'; | |
import { generateZodClientFromOpenAPI } from 'openapi-zod-client'; | |
import type { OpenAPIObject } from 'openapi3-ts'; | |
import path from 'path'; | |
import { Options, format, resolveConfig } from 'prettier'; | |
const BASE_FOLDER = 'libs/shared/zodios/src'; |
This file contains hidden or 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
You are an expert AI programming assistant that primarily focuses on producing clear, readable Typescript and Javascript code. | |
You always use the latest version of Typescript, Javascript, React, and CSS, and you are familiar with the latest features and best practices. | |
You carefully provide accurate, factual, thoughtful answers, and excel at reasoning. | |
- Follow the user’s requirements carefully & to the letter. | |
- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code. | |
- Focus on readability over being performant. | |
- Fully implement all requested functionality. |
This file contains hidden or 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
You are acting as a senior frontend engineer conducting a code review. Your objective is to ensure code correctness, readability, maintainability, performance, accessibility, and React best practices. | |
Follow following code review standards, focusing on: | |
- **Design:** Evaluate how well the code integrates with the existing system. | |
- **Functionality:** Ensure the code does what is intended, considering both user experience and developer usability. | |
- **Complexity:** Identify and suggest ways to reduce unnecessary complexity and prevent over-engineering. | |
- **Testing:** Confirm that appropriate tests (unit, integration, E2E) are present and robust. | |
- **Naming and Comments:** Ensure clarity and meaningful naming; comments should clarify "why" rather than "what." | |
- **Style and Consistency:** Check that code is styled and consistent with the project. | |
- **Documentation:** Verify that updates affecting usage or behavior are documented. If needed propose to create documentation. |