Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@chainsafe/eslint-config

ChainSafe2.9kMIT2.2.4

null

readme

@chainsafe/eslint-config

Node.js CI npm version

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

Usage

The provided configuration contains shared ESLint rules for typescript projects across ChainSafe. To use this configuration you'll need .eslintrc.js file in your project root with the following content:

module.exports = {
  extends: "@chainsafe",
}

Monorepo

To make eslint work in monorepo's, make sure tsconfig files are relative to the eslint file. Base eslint file in the root directory should have root: true option set. For example in the package, you would have something like:

const path = require("path")

module.exports = {
    extends: "../../.eslintrc.js",
    parserOptions: {
        project: path.join(__dirname, "tsconfig.json"),
        tsconfigRootDir: path.join(__dirname)
    },
}

With Mocha and Chai

module.exports = {
  extends: "@chainsafe/eslint-config/ts-mocha-chai",
}

Frontend Vanilla

module.exports = {
  extends: "@chainsafe/eslint-config/frontend-vanilla"
}

Frontend React

module.exports = {
  extends: "@chainsafe/eslint-config/frontend-react"
}

changelog

Changelog

2.2.4 (2024-02-16)

Bug Fixes

2.2.3 (2024-02-09)

Bug Fixes

Miscellaneous

  • deps: bump get-func-name from 2.0.0 to 2.0.2 (#19) (98d62c7)
  • deps: bump word-wrap from 1.2.3 to 1.2.5 (#18) (2b42cb7)
  • move plugins/settings to configs (#29) (2d1a859)

2.2.2 (2024-02-08)

Bug Fixes

2.2.1 (2024-02-08)

Bug Fixes

2.2.0 (2024-01-25)

Features

Miscellaneous

  • CI: bump node to v20 and enable corepack (#21) (273dbdd)

2.1.1 (2023-08-18)

Bug Fixes

Miscellaneous

  • deps: bump semver from 6.3.0 to 6.3.1 (#14) (1512a1a)

2.1.0 (2023-07-03)

Features

  • force type imports and removal of unused eslint rules (#11) (14183ab)

Miscellaneous

2.0.0 (2023-03-27)

⚠ BREAKING CHANGES

  • bump dependencies and minimum eslint version (#7)
  • add mocha and chai related rules

Features

  • add mocha and chai related rules (bab756b)
  • add mocha and chai related rules (#4) (bab756b)

Bug Fixes

  • bump dependencies and minimum eslint version (#7) (490e0ed)

1.1.0 (2022-11-02)

Features

  • ignoreRestSibilings in @typescript-eslint/no-unused-vars (#2) (fc6059d)

1.0.0 (2022-06-29)

Features

Bug Fixes

Miscellaneous