包详细信息

eslint-config-ipfs

ipfs18.3kApache-2.0 OR MIT8.0.0

ESLint Shareable Config for IPFS project

eslint, eslintconfig, ipfs

自述文件

eslint-config-ipfs

ipfs.tech Discuss codecov CI

ESLint Shareable Config for IPFS project

Table of contents

Install

$ npm i eslint-config-ipfs

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"
}

Or a key in your package.json with:

{
  "eslintConfig": {
    "extends": "ipfs"
  }
}

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

License

Licensed under either of

Contribute

Contributions welcome! Please check out the issues.

Also see our contributing document for more information on how we work, and about contributing in general.

Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

更新日志

8.0.0 (2025-04-30)

⚠ BREAKING CHANGES

  • type import style is now specified, re-run linting with --fix to patch up any rule violations

Features

  • define rules for consistent type import style (#263) (948ce47)

Trivial Changes

7.0.6 (2024-07-29)

Bug Fixes

7.0.5 (2024-07-29)

Bug Fixes

7.0.4 (2024-07-23)

Dependencies

  • dev: bump aegir from 43.0.3 to 44.0.1 (#231) (66a69e2)

7.0.3 (2024-07-23)

Bug Fixes

  • allow any args and referencing functions by property name (#232) (27ecf3e)

7.0.2 (2024-06-21)

Bug Fixes

7.0.1 (2024-06-21)

Dependencies

  • dev: bump aegir from 42.2.11 to 43.0.1 (#226) (ae61638)

7.0.0 (2024-05-01)

⚠ BREAKING CHANGES

  • eslint-config-love requires updated peer dependencies

Dependencies

  • upgrade deps, replace eslint-config-standard-with-typescript with eslint-config-love (#218) (a83be5b), closes #217

6.0.2 (2024-05-01)

Bug Fixes

Trivial Changes

  • Update .github/workflows/stale.yml [skip ci] (1f9ebc6)

6.0.1 (2024-01-19)

Dependencies

  • dev: bump aegir from 40.0.13 to 42.2.2 (#203) (ba17326)

6.0.0 (2023-09-29)

⚠ BREAKING CHANGES

  • All interfaces now need to use method signature style rather than property function style

eg: before

interface Foo {
  bar: (baz: number) => void
}

after

interface Foo {
  bar(baz: number): void
}

Features

5.0.1 (2023-07-26)

Dependencies

  • bump eslint-config-standard-with-typescript from 36.1.1 to 37.0.0 (#179) (51d369c)
  • dev: bump aegir from 39.0.13 to 40.0.0 (#178) (42155e8)

5.0.0 (2023-07-19)

⚠ BREAKING CHANGES

  • bump eslint-plugin-jsdoc from 43.2.0 to 46.4.4 (#176)

Trivial Changes

  • restore linting (#148) (b222ba7)
  • Update .github/workflows/stale.yml [skip ci] (b77e8e7)
  • Update .github/workflows/stale.yml [skip ci] (fec2f8f)

Dependencies

  • bump eslint-config-standard-with-typescript from 34.0.1 to 36.1.0 (#175) (2caff0a)
  • bump eslint-plugin-jsdoc from 43.2.0 to 46.4.4 (#176) (4768f37)

4.0.3 (2023-05-11)

Dependencies

  • dev: bump aegir from 38.1.8 to 39.0.6 (#156) (37f2f4e)

4.0.2 (2023-04-27)

Bug Fixes

  • remove import newlines and specify all groups (#149) (70bc250)

4.0.1 (2023-04-27)

Dependencies

  • bump eslint-plugin-jsdoc from 40.3.0 to 43.1.1 (#147) (d95cf23)

4.0.0 (2023-04-05)

⚠ BREAKING CHANGES

  • await is not allowed before return unless it is inside a try/catch in which case it is required

Co-authored-by: Russell Dempsey 1173416+SgtPooki@users.noreply.github.com

  • previously jsx and tsx files were not linted, now they are
  • add import sorting rule (#126)

Features

Bug Fixes

  • only require awaiting promises returned from inside try/catch blocks (#133) (a6e4a7b), closes #130

Trivial Changes

  • convert to aegir project (81d8ba3)
  • deps: bump eslint-config-standard-with-typescript from 27.0.1 to 34.0.1 (#135) (fc9aa6f)
  • deps: bump eslint-plugin-jsdoc from 39.9.1 to 40.1.1 (#139) (bd1422b)
  • fix linting (adffc58)
  • use unified ci (2674c56)