@scottnonnenberg/eslint-plugin-thehelp

A set of rules for me!

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@scottnonnenberg/eslint-plugin-thehelp
Minified + gzip package size for @scottnonnenberg/eslint-plugin-thehelp in KB

Readme

eslint-plugin-thehelp

A collection of rules with no other good place.

Install

npm install eslint-plugin-thehelp --save-dev

In your eslint configuration:

{
  "plugins": ["thehelp"],
  "rules": {
    "thehelp/absolute-or-current-dir": "error",
  },
}

And that's it! Details for each rule below.

Rules:

  • thehelp/absolute-or-current-dir - all require() or import calls must either refer to absolute paths or the current directory ('./peer'). Goodbye ../../../!
  • thehelp/no-mutation - prevents mutation of object values, pushing you to a more functional style. exceptions configuration allows CommonJS compatibility.
  • thehelp/no-array-mutation - looks for object calls (obj.call()) with function names taken from the list of mutating array methods.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.