dfinity / eslint-config-oisy-wallet

Shared ESLint configurations from the Oisy Wallet team
Apache License 2.0
2 stars 0 forks source link

feat: include rule to enforce usage of const #14

Closed AntonioVentilii-DFINITY closed 1 month ago

AntonioVentilii-DFINITY commented 1 month ago

With the aim of helping us making everything more function, we add rule prefer-const.

The rule prevents unnecessary mutable variable when the variable is not reassigned. Note that we use it only in Typescript files because the svelte files require prop and variable declarations to be mutable.