"Not only does God play dice, butβ¦ he sometimes throws them where they cannot be seen." β Stephen Hawking
Require luck (lottery
) β
πΌ This rule is enabled in the following configs: π all
, β
recommended
.
βοΈ Options β
probability β
(default: '0.99'
)
In [0, 1]
- The chances for the linting to succeed.
π§ Config β
js
{ rules: { 'ninja/lottery': [2, { probability: 0.1 }] } }