Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-cheminfo

Package Overview
Dependencies
Maintainers
8
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-cheminfo

Shared ESLint config for cheminfo and ml.js projects

  • 4.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
8
Created
Source

eslint-config-cheminfo

Shared ESLint config for cheminfo and ml.js projects.

Installation

npx install-peerdeps --dev eslint-config-cheminfo

Usage

Create a .eslintrc.yml with the following contents:

extends: cheminfo

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 --cache",
    "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

FAQ

jest/expect-expect is flagging my test but I assert in an external function

See https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/expect-expect.md#assertfunctionnames

You can override this by adding a comment like this at the top of your test file:

/* eslint jest/expect-expect: ["error", { "assertFunctionNames": ["expect", "functionThatCallsExpect"] }] */

FAQs

Package last updated on 16 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc