0.1.0 • Published 2 years ago

eslint-config-codeclimate-default-checks v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

eslint-config-codeclimate-default-checks

This package was created to reproduce the default check items of CodeClimate in ESLint.

CodeClimate default checks and alternatives

The thresholds for each rule are based on this page.

Rules with no alternatives

No alternative rules were found for similar-code and identical-code. These check for similarity or duplication of code between multiple files, but since this comment says

ESLint rules only operate on the context of a single file. So you won’t be able to detect duplicated code across multiple files.

and there does not seem to be a rule in ESLint to replace it completely, unfortunately there are no alternatives for these two items.

Installation

npm

npm install --save-dev eslint-plugin-complex-logic eslint-plugin-max-methods-per-class eslint-plugin-max-return-statements-per-function eslint-plugin-sonarjs eslint-config-codeclimate-default-checks

yarn

yarn add -D eslint-plugin-complex-logic eslint-plugin-max-methods-per-class eslint-plugin-max-return-statements-per-function eslint-plugin-sonarjs eslint-config-codeclimate-default-checks

Usage

in .eslintrc.js:

module.exports = {
  extends: ["codeclimate-default-checks"],
  // other options...
};

License

MIT