Docs: Snippets (#1729)

* refactor: adds snippets for sendEscrow, claimPayChannel, reliableSubmission, getTransaction, partialPayment, getPaths
This commit is contained in:
Mukul Jangid
2021-10-20 12:29:48 -04:00
committed by GitHub
parent d1b34bb458
commit 910a5999c9
17 changed files with 461 additions and 358 deletions

View File

@@ -62,12 +62,14 @@ module.exports = {
},
},
{
// TODO: remove when snippets are written
files: ['snippets/src/*.ts'],
rules: {
'max-len': 'off',
'import/unambiguous': 'off',
'import/no-unused-modules': 'off',
// Each file has a particular flow.
'max-lines-per-function': 'off',
'max-statements': 'off',
// Snippets have logs on console to better understand the working.
'no-console': 'off',
},
},
{