eslint-config-cheminfo

9.2.0 • Public • Published

eslint-config-cheminfo

Shared ESLint config for cheminfo and ml.js projects.

Installation

npm i -D eslint-config-cheminfo eslint

Usage

Create a .eslintrc.yml with the following contents:

extends: [cheminfo, cheminfo/jsdoc, cheminfo/unicorn]

You can then customize the config for your project by changing rules in this file.

Create ESLint scripts in your package.json:

{
  "scripts": {
    "eslint": "eslint src",
    "eslint-fix": "npm run eslint -- --fix"
  }
}

Extensions of this config

TypeScript

https://github.com/cheminfo/eslint-config-cheminfo-typescript

React

https://github.com/cheminfo/eslint-config-cheminfo-react

TypeScript and React

You can extend both of the above configurations as they are compatible between each other:

extends:
  - cheminfo-typescript
  - cheminfo-react

/eslint-config-cheminfo/

    Package Sidebar

    Install

    npm i eslint-config-cheminfo

    Weekly Downloads

    2,365

    Version

    9.2.0

    License

    MIT

    Unpacked Size

    15.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • targos
    • lpatiny
    • cheminfo-bot
    • stropitek