eslint-config-ipfs

    2.1.0 • Public • Published

    eslint-config-ipfs

    Node.js CI package styled with prettier

    This package provides IPFS's .eslintrc as an extensible shared config.

    Usage

    Provided configuration contains ESLint rules followed by JS libraries in the JS IPFS ecosystem. It provides slightly separate rule sets for .js and .ts files. To use this configuration you'll need .eslintrc file in your project root with a following content:

    {
      "extends": "ipfs"
    }

    If you use AEgir this config will comes with it, so above .eslintrc is only thing you'll need. If you choose to use ESLint directly, you'll need to add this package to your (dev) dependcies and satisfy "typescript" optional peer dependency yourself.

    JS only setup

    If you do not have .ts files in your tree chances are you don't care about typescript and don't want to add "typescript" dependency. In that case you can use another .eslintrc configuration with a following content:

    {
      "extends": "ipfs/js"
    }

    Install

    npm i eslint-config-ipfs

    DownloadsWeekly Downloads

    1,442

    Version

    2.1.0

    License

    (Apache-2.0 AND MIT)

    Unpacked Size

    11.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • gozala
    • achingbrain
    • hugomrdias
    • ipfs-npm-publisher-bot