You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Uses shared eslint config `eslint-config-ipfs` by integrating ipfs/aegir#638. Shared config uses new jsdoc plugin enabling use to remove bunch of `eslint-disable-next-line valid-jsdoc` comments. On the flip side it adds bit more requirements for structuring jsdoc comments. Most changes are generated automatically by eslint with `--fix` flag.
This change also intentionally adds `.eslintrc` files to every package with content `{ "extends": "ipfs" }`, so that all the tools that support eslint pick up desired configuration. `eslint-config-ipfs` package itself isn't added to dependencies, because it gets installed as `aegir` dependency.
Co-authored-by: achingbrain <[email protected]>
Copy file name to clipboardExpand all lines: packages/ipfs-core/src/components/add.js
+2-2
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,15 @@ const last = require('it-last')
14
14
* @property {string} [hashAlg] - multihash hashing algorithm to use (default: `'sha2-256'`)
15
15
* @property {boolean} [onlyHash] - If true, will not add blocks to the blockstore (default: `false`)
16
16
* @property {boolean} [pin] - pin this object when adding (default: `true`)
17
-
* @property {function} [progress] - a function that will be called with the byte length of chunks as a file is added to ipfs (default: `undefined`)
17
+
* @property {Function} [progress] - a function that will be called with the byte length of chunks as a file is added to ipfs (default: `undefined`)
18
18
* @property {boolean} [rawLeaves] - if true, DAG leaves will contain raw file data and not be wrapped in a protobuf (default: `false`)
19
19
* @property {boolean} [trickle] - if true will use the [trickle DAG](https://godoc.org/github.com./ipsn/go-ipfs/gxlibs/github.com./ipfs/go-unixfs/importer/trickle) format for DAG generation (default: `false`)
20
20
* @property {boolean} [wrapWithDirectory] - Adds a wrapping node around the content (default: `false`)
0 commit comments