while-basic mindcraft-web .cursorrules file for TypeScript

{
  "line_length": 100,
  "format_on_save": true,
  "javascript": {
    "formatter": "prettier",
    "semi": true,
    "singleQuote": true,
    "trailingComma": "es5"
  },
  "typescript": {
    "formatter": "prettier",
    "semi": true,
    "singleQuote": true,
    "trailingComma": "es5",
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitAny": true,
    "exactOptionalPropertyTypes": true
  },
  "tailwind": {
    "sortClasses": true,
    "classRegex": "^[a-zA-Z0-9-]+$"
  },
  "css": {
    "sortProperties": true,
    "indentation": 2
  },
  "markdown": {
    "trailingSpaces": "trim",
    "unorderedListStyle": "-"
  },
  "git": {
    "ignorePatterns": [
      "node_modules",
      ".next",
      "build",
      "*.log",
      ".env*"
    ]
  },
  "imports": {
    "order": [
      "react",
      "next",
      "external-libraries",
      "components",
      "utils",
      "styles"
    ],
    "newlinesBetweenGroups": 1
  },
  "components": {
    "namingConvention": "PascalCase",
    "propsInterface": true,
    "propsNaming": "ComponentNameProps"
  },
  "functions": {
    "namingConvention": "camelCase",
    "maxParameters": 3,
    "maxLines": 50
  },
  "variables": {
    "namingConvention": "camelCase",
    "preferConst": true
  },
  "testing": {
    "required": true,
    "coverage": 80,
    "naming": "*.test.tsx?"
  }
}
css
java
javascript
prettier
react
tailwindcss
typescript

First Time Repository

Website for the popular repo, Mindcraft. Building Minecraft with AI.

TypeScript

Languages:

CSS: 2.8KB
JavaScript: 0.8KB
TypeScript: 51.6KB
Created: 1/19/2025
Updated: 1/19/2025

All Repositories (1)

Website for the popular repo, Mindcraft. Building Minecraft with AI.