Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 0 additions & 151 deletions .eslintrc.json

This file was deleted.

96 changes: 96 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"plugins": [
"import",
"jsdoc",
"node",
"oxc",
"promise",
"unicorn"
],
"categories": {
"correctness": "warn",
"suspicious": "warn",
"perf": "warn",
"pedantic": "warn"
},
"files": ["**/*.js"],
"rules": {
"eslint/array-callback-return": ["warn", { "checkForEach": true }],
"eslint/eqeqeq": ["warn", "always", {"null": "ignore"}],
"eslint/func-style": ["off", "expression"],
"eslint/guard-for-in": "warn",
"eslint/no-duplicate-imports": ["warn", { "includeExports": true }],
"eslint/no-empty": "warn",
"eslint/no-empty-function": "warn",
"eslint/no-iterator": "warn",
"eslint/no-lone-blocks": "warn",
"eslint/no-multi-assign": "warn",
"eslint/no-multi-str": "warn",
"eslint/no-nested-ternary": "warn",
"eslint/no-new-func": "warn",
"eslint/no-proto": "warn",
"eslint/no-return-assign": ["warn", "always"],
"eslint/no-script-url": "warn",
"eslint/no-unused-expressions": "warn",
"eslint/no-var": "warn",
"eslint/no-void": "warn",
"eslint/prefer-exponentiation-operator": "warn",
"eslint/prefer-numeric-literals": "warn",
"eslint/prefer-object-has-own": "warn",
"eslint/prefer-object-spread": "warn",
"eslint/prefer-spread": "warn",
"eslint/yoda": "warn",
"eslint/max-depth": "off",
"eslint/max-classes-per-file": "off",
"eslint/max-lines": "off",
"eslint/max-lines-per-function": "off",
"eslint/max-nested-callbacks": "off",
"eslint/new-cap": "off",
"eslint/radix": "off",
"import/consistent-type-specifier-style": "warn",
"import/exports-last": "warn",
"import/first": "warn",
"import/group-exports": "warn",
"import/no-amd": "warn",
"import/no-commonjs": "warn",
"import/no-cycle": "warn",
"import/no-dynamic-require": "warn",
"import/no-mutable-exports": "warn",
"import/no-named-default": "warn",
"import/no-webpack-loader-syntax": "warn",
"import/unambiguous": "warn",
"import/max-dependencies": "off",
"jsdoc/check-access": "warn",
"jsdoc/empty-tags": "warn",
"jsdoc/require-param-description": "off",
"jsdoc/require-returns-description": "off",
"node/no-new-require": "warn",
"oxc/bad-bitwise-operator": "warn",
"oxc/no-barrel-file": "warn",
"promise/prefer-await-to-callbacks": "warn",
"promise/prefer-await-to-then": "warn",
"promise/spec-only": "warn",
"unicorn/no-abusive-eslint-disable": "warn",
"unicorn/no-anonymous-default-export": "warn",
"unicorn/no-array-for-each": "warn",
"unicorn/no-array-method-this-argument": "warn",
"unicorn/no-array-reduce": "warn",
"unicorn/no-document-cookie": "warn",
"unicorn/no-for-loop": "warn",
"unicorn/no-length-as-slice-end": "warn",
"unicorn/no-nested-ternary": "warn",
"unicorn/prefer-array-index-of": "warn",
"unicorn/prefer-global-this": "warn",
"unicorn/prefer-modern-math-apis": "warn",
"unicorn/prefer-node-protocol": "warn",
"unicorn/prefer-number-properties": "warn",
"unicorn/prefer-object-from-entries": "warn"
},
"env": {
"node": true,
"builtin": true
},
"ignorePatterns": [
"node_modules/*"
]
}
10 changes: 0 additions & 10 deletions .prettierrc.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A lightweight and naïve library for decoding lightning network payment requests

It doesn't recover payee from signature, doesn't check signature, doesn't parse fallback addresses and doesn't do any encoding -- therefore dependencies are very minimal (no libsecp256k1 here).

Code derived from [bolt11](https://npmjs.com/package/bolt11), which has the full functionality but it's a pain to run in browsers.
Code derived from [bolt11](https://npmjs.com/package/bolt11), which has the full functionality, but it's a pain to run in browsers.

Spits out "sections" of the invoice, in a way that is used to make visualizations like https://bolt11.org/.

Expand Down
89 changes: 0 additions & 89 deletions bolt11.d.ts

This file was deleted.

Loading