@ethereumjs/eslint-config-defaults

2.0.0 • Public • Published

@ethereumjs/eslint-config-defaults

Common linting configuration for EthereumJS libraries utilizing:

Exposed CLI commands:

  • ethereumjs-config-lint
  • ethereumjs-config-lint-fix

Usage

Add .eslintrc.js:

module.exports = {
  extends: "@ethereumjs/eslint-config-defaults"
}

Add prettier.config.js:

module.exports = require('@ethereumjs/eslint-config-defaults/prettier.config.js')

Use CLI commands above in your package.json:

  "scripts": {
    "lint": "ethereumjs-config-lint",
    "lint:fix": "ethereumjs-config-lint-fix",
  }

Getting the most out of linting

This lint package is used as git pre-push hook on EthereumJS VM repo, with the help of Husky.

Note: The name of this package deviates from the standard @ethereumjs/config-xxx, due to an ESLint hard rule on package naming. Reference.

Readme

Keywords

none

Package Sidebar

Install

npm i @ethereumjs/eslint-config-defaults

Weekly Downloads

4

Version

2.0.0

License

MIT

Unpacked Size

8.4 kB

Total Files

7

Last publish

Collaborators

  • acolytec3
  • g11tech
  • axic
  • holgerd77