1.0.2 • Published 11 months ago
eslint-plugin-nodash v1.0.2
eslint-plugin-nodash
Plugin for finding unnecessary usages of Lodash.
Why such a Lodash hater? Read my rant here!
Installation
- Install using your favourite Node package manager
$ npm install -D eslint-plugin-nodash
- Add nodash to your ESLint config
import nodash from "eslint-plugin-nodash";
export default [
{
plugins: { nodash },
rules: {
"nodash/unnecessary-use-of-get": "error",
"nodash/unnecessary-mapping-function": "error",
},
}
];
- Done 🎉!
Local Setup
Install Nix and nix-direnv, then:
$ direnv allow
$ npm install