Zoranner work-hub-backend .cursorrules file for TypeScript

{
    "typescript": {
        "importOrder": [
            "^@nestjs/(.*)$",
            "^@typeorm/(.*)$",
            "^@/utils/(.*)$",
            "^@/configs/(.*)$",
            "^@/filters/(.*)$",
            "^@/interceptors/(.*)$",
            "^@/auth/(.*)$",
            "^@/users/(.*)$",
            "^@/bridges/(.*)$",
            "^@/(.*)$",
            "^[./]"
        ],
        "importOrderSeparation": true,
        "importOrderSortSpecifiers": true
    },
    "formatter": {
        "indentStyle": "space",
        "indentWidth": 2
    },
    "linter": {
        "rules": {
            "@typescript-eslint/explicit-function-return-type": "warn",
            "@typescript-eslint/explicit-module-boundary-types": "warn",
            "@typescript-eslint/no-explicit-any": "warn",
            "@typescript-eslint/no-unused-vars": "error",
            "no-console": "warn",
            "max-len": ["warn", { "code": 100 }],
            "import/prefer-default-export": "off",
            "@typescript-eslint/naming-convention": [
                "warn",
                {
                    "selector": "interface",
                    "format": ["PascalCase"],
                    "prefix": ["I"]
                },
                {
                    "selector": "enum",
                    "format": ["PascalCase"]
                }
            ]
        }
    },
    "exclude": [
        "node_modules",
        "dist",
        "build",
        "coverage",
        ".pnpm-store",
        "**/*.spec.ts",
        "**/*.test.ts"
    ]
}
eslint
javascript
nestjs
npm
pnpm
typeorm
typescript

First Time Repository

TypeScript

Languages:

JavaScript: 2.0KB
TypeScript: 48.1KB
Created: 1/6/2025
Updated: 1/7/2025

All Repositories (1)