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.

62 changes: 1 addition & 61 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,61 +1 @@
package-lock.json
yarn.lock

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
node_modules
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26
94 changes: 94 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"plugins": [
"import",
"jsdoc",
"node",
"oxc",
"promise",
"unicorn"
],
"categories": {
"correctness": "warn",
"suspicious": "warn",
"perf": "warn",
"pedantic": "warn"
},
"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-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
Loading