Skip to content

"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 }] } }

πŸ§‘β€πŸ’» Demo ​

Released under the MIT License