contracts/test/arbitration/index.ts
Multiple variable declarations in the same statement are forbidden Open
Open
let core: KlerosCore, disputeKit: DisputeKitClassic;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Rule: one-variable-per-declaration
Disallows multiple variable definitions in the same declaration statement.
Config
One argument may be optionally provided:
-
ignore-for-loop
allows multiple variable definitions in a for loop declaration.
Examples
"one-variable-per-declaration": true
"one-variable-per-declaration": true,ignore-for-loop
Schema
{
"type": "array",
"items": {
"type": "string",
"enum": [
"ignore-for-loop"
]
},
"minLength": 0,
"maxLength": 1
}
For more information see this page.