Shared ESLint config for cheminfo and ml.js projects.
npm i -D eslint-config-cheminfo eslint
Create a .eslintrc.yml
with the following contents:
extends: [cheminfo, cheminfo/jsdoc]
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"
}
}
https://github.com/cheminfo/eslint-config-cheminfo-typescript
https://github.com/cheminfo/eslint-config-cheminfo-react
You can extend both of the above configurations as they are compatible between each other:
extends:
- cheminfo-typescript
- cheminfo-react