Skip to content

Frontend templates enforce strict linting, but Rust templates don't #933

@hawav

Description

@hawav

I noticed that the TypeScript templates (e.g., template-react-ts) include strict linting configurations in tsconfig.json:

/* Linting */  
"strict": true,  
"noUnusedLocals": true,  
"noUnusedParameters": true,  
"noFallthroughCasesInSwitch": true

This prevents messy code from compiling in release mode, which I think is great!

However, the Rust templates don't have equivalent strictness. I've tried compiling with an unused function and it passed.

In my opinion, adding -D warnings to the Rust templates would achieve consistency and maintain the same code quality standards on both frontend and backend.

Was this inconsistency intentional, or just unnoticed?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions