#Why does bun turn off some strict checks?

1 messages · Page 1 of 1 (latest)

teal kestrel
#

When initializing a new project iwth Bun, some strict options are enabled, while others are disabled, The following is generated by Bun when initializing a new project,

    // Some stricter flags (disabled by default)
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "noPropertyAccessFromIndexSignature": false,

The comment isn't clear either, saying they're disabled by default, yet they continued to be disabled when set to false? This is all a bit confusing

abstract sand
#

it’s meant as example of what you can enable

teal kestrel
#

Got it, thanks for clarifying, may be worth improving? few suggestions

  1. Describing it as an example in the comment
  2. Just enabling them if they're typically useful
  3. Omit this section entirely