eslint-config-cheminfo
Shared ESLint config for cheminfo and ml.js projects
Last updated 4 days ago by targos .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-cheminfo 
SYNC missed versions from official npm registry.

eslint-config-cheminfo

Shared ESLint config for cheminfo and ml.js projects.

Installation

npm i -D eslint-config-cheminfo eslint prettier

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",
    "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"] }] */

Current Tags

  • 5.2.0                                ...           latest (4 days ago)

55 Versions

  • 5.2.0                                ...           4 days ago
  • 5.1.3                                ...           18 days ago
  • 5.1.2                                ...           22 days ago
  • 5.1.1                                ...           a month ago
  • 5.1.0                                ...           a month ago
  • 5.0.0                                ...           2 months ago
  • 4.1.0                                ...           2 months ago
  • 4.0.0                                ...           4 months ago
  • 3.0.0                                ...           6 months ago
  • 2.0.5                                ...           6 months ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.20.1                                ...           2 years ago
  • 1.20.0                                ...           2 years ago
  • 1.19.1                                ...           2 years ago
  • 1.19.0                                ...           2 years ago
  • 1.18.0                                ...           2 years ago
  • 1.17.4                                ...           2 years ago
  • 1.17.3                                ...           2 years ago
  • 1.17.2                                ...           3 years ago
  • 1.17.1                                ...           3 years ago
  • 1.17.0                                ...           3 years ago
  • 1.16.1                                ...           3 years ago
  • 1.16.0                                ...           3 years ago
  • 1.15.1                                ...           3 years ago
  • 1.15.0                                ...           3 years ago
  • 1.14.1                                ...           3 years ago
  • 1.14.0                                ...           3 years ago
  • 1.13.0                                ...           3 years ago
  • 1.12.0                                ...           3 years ago
  • 1.11.0                                ...           3 years ago
  • 1.10.0                                ...           3 years ago
  • 1.9.1                                ...           3 years ago
  • 1.9.0                                ...           3 years ago
  • 1.8.0                                ...           3 years ago
  • 1.7.0                                ...           4 years ago
  • 1.6.0                                ...           4 years ago
  • 1.5.4                                ...           4 years ago
  • 1.5.3                                ...           4 years ago
  • 1.5.2                                ...           4 years ago
  • 1.5.1                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.2                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 34
This Month 97
Last Day 0
Last Week 0
Last Month 197
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |